diff --git a/NoNameSpace/.vscode/launch.template.json b/NoNameSpace/.vscode/launch.template.json new file mode 100644 index 0000000000000..afce2ea2ce06a --- /dev/null +++ b/NoNameSpace/.vscode/launch.template.json @@ -0,0 +1,29 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Current TS File", + "type": "node", + "request": "launch", + "args": [ + "${relativeFile}" + ], + "runtimeArgs": [ + "--nolazy", + "-r", + "ts-node/register" + ], + "sourceMaps": true, + "cwd": "${workspaceRoot}", + "protocol": "inspector", + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "env": { + "TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json" + } + } + ] +} \ No newline at end of file diff --git a/NoNameSpace/README.md b/NoNameSpace/README.md new file mode 100644 index 0000000000000..4afabfa4945f6 --- /dev/null +++ b/NoNameSpace/README.md @@ -0,0 +1,4 @@ +1. rename many symbol to avoid conflict, all renamed are added "NamespaceLocal" +2. remove deep namespace property + +3. how to merge namespace? \ No newline at end of file diff --git a/NoNameSpace/continueRemoveNamespace.ts b/NoNameSpace/continueRemoveNamespace.ts new file mode 100644 index 0000000000000..2ff000884384e --- /dev/null +++ b/NoNameSpace/continueRemoveNamespace.ts @@ -0,0 +1,35 @@ +import { walkFolder, tsMatch, srcFolder } from "."; +import fs from "fs"; +import readline from "readline"; + +async function fileCB(filePath: string) { + const fileStream = fs.createReadStream(filePath); + + const rl = readline.createInterface({ + input: fileStream, + // crlfDelay: Infinity + }); + let newFileContent = ""; + let removeNamespaceFlag = false; + for await (const line of rl) { + const namespaceRE = RegExp("^(declare )?namespace .*?\\{$"); + const namespaceEndRE = RegExp("^\\}$"); + // const noNamespaceTsdotRE = /(? { }); +} + +walkFolder(srcFolder, tsMatch, fileCB); \ No newline at end of file diff --git a/NoNameSpace/createNamespaceLikeFile.ts b/NoNameSpace/createNamespaceLikeFile.ts new file mode 100644 index 0000000000000..c7def8c160276 --- /dev/null +++ b/NoNameSpace/createNamespaceLikeFile.ts @@ -0,0 +1,100 @@ +// import readline from "readline"; +import fs from "fs"; +import path from "path"; +import { srcFolder } from "."; +import namespaceInfo from './namespacePath.json'; + +/** + * namespace name: {position:,times:} + */ + +const namespaceLikeFilesFolderPath = path.resolve(srcFolder, "namespaceLike"); +if (!fs.existsSync(namespaceLikeFilesFolderPath)) { + fs.mkdirSync(namespaceLikeFilesFolderPath); +} + +function getRelativePathFromAbsolutePath(filePath: string) { + const relativePath = filePath.replace(/^.*?src\\/, "../").replace(/\\/g, "/").slice(0, -3); + return relativePath; +} + +/** + * + * @param filePath + * @param rename rename is for optimise + */ +function createFirstLevel(relativePath: string, rename?: string) { + let result = ""; + result += "\r\n"; + result += `export *${rename ? ` as ${rename}` : ""} from "${relativePath}";`; + return result; +} + +function createSecondLevel(relativePath: string, rename: string) { + let result = ""; + result += "\r\n"; + result += `import * as ${rename} from "${relativePath}"`; + result += "\r\n"; + result += `export {${rename}}`; + return result; +} + +// delete namespaceInfo.A; +// delete namespaceInfo.Foo; +// delete namespaceInfo.normalN; +// delete namespaceInfo.M; +// delete namespaceInfo.myapp; + +function main(namespaceInfo: { [namespacePath: string]: { [filePath: string]: number } }) { + const namespaceNames = Object.keys(namespaceInfo); + namespaceNames.forEach(n => { + const namespacePathAccess = n.split("."); + let fileContent = ""; + if (namespacePathAccess.length === 1) { + const namespaceFilePaths = namespaceInfo[n]; + Object.keys(namespaceFilePaths).forEach(nfp => { + fileContent += createFirstLevel(getRelativePathFromAbsolutePath(nfp)); + }); + const nextNamespacePaths = namespaceNames.filter(nsn => RegExp(`${n.replace("/\./g", "\\.")}\\.(?!\\w+\\.)`).test(nsn)); + nextNamespacePaths.forEach((nnp) => { + const afterNamespacePaths = namespaceNames.filter(nsn => RegExp(`${nnp.replace("/\./g", "\\.")}\\.`).test(nsn)); + if (Object.keys(namespaceInfo[nnp]).length > 1 || afterNamespacePaths.length > 1) { + fileContent += createSecondLevel("./" + nnp, nnp.split(".").pop()!); + } else { + const theFilePath = Object.keys(namespaceInfo[nnp])[0]; + fileContent += createFirstLevel(getRelativePathFromAbsolutePath(theFilePath), nnp.split(".").pop()); + } + }); + } else { + const namespaceFilePaths = namespaceInfo[n]; + let skipFlag1 = false; + let skipFlag2 = false; + + if (Object.keys(namespaceFilePaths).length === 1) { + skipFlag1 = true; + } + Object.keys(namespaceFilePaths).forEach(nfp => { + fileContent += createFirstLevel(getRelativePathFromAbsolutePath(nfp)); + }); + const nextNamespacePaths = namespaceNames.filter(nt => RegExp(`${n.replace("/\./g", "\\.")}\\.(?!\\w+\\.)`).test(nt)); + if (nextNamespacePaths.length === 0) { + skipFlag2 = true; + } + nextNamespacePaths.forEach((nnp) => { + const afterNamespacePaths = namespaceNames.filter(nsn => RegExp(`${nnp.replace("/\./g", "\\.")}\\.`).test(nsn)); + if (Object.keys(namespaceInfo[nnp]).length > 1 || afterNamespacePaths.length > 1) { + fileContent += createSecondLevel("./" + nnp, nnp.split(".").pop()!); + } else { + const theFilePath = Object.keys(namespaceInfo[nnp])[0]; + fileContent += createFirstLevel(getRelativePathFromAbsolutePath(theFilePath), nnp.split(".").pop()); + } + }); + if (skipFlag1 && skipFlag2) { + return; + } + } + fs.writeFile(path.resolve(namespaceLikeFilesFolderPath, n + ".ts"), fileContent, () => { }); + }); +} + +main(namespaceInfo); diff --git a/NoNameSpace/index.ts b/NoNameSpace/index.ts new file mode 100644 index 0000000000000..b5715007e7ad3 --- /dev/null +++ b/NoNameSpace/index.ts @@ -0,0 +1,89 @@ + +/** + * steps to remove namespace + * 1. remove namespaces in all ts files in src/*. + * 2. use add all missing imports to auto-fix + */ + +/** + * Details about step1: + * 1. ts.A.B + * 1. ts.A.B + * 2. namespace merge like partial keyword in c# + * 3. + */ +import readline from "readline"; +import path from "path"; +import fs from "fs"; + +export const srcFolder = path.resolve(__dirname, "../src"); + +export async function walkFolder(filePath: string, match: (s: string) => boolean, fileCallback: (s: string) => void, finalCallback?: () => void) { + let counter = 0; + return (async function walker(filePath: string, match: (s: string) => boolean, fileCallback: (s: string) => void) { + counter = counter + 1; + const isDirectory = fs.lstatSync(filePath).isDirectory(); + if (!isDirectory) { + if (match(filePath)) { + await fileCallback(filePath); + } + } + else { + const subFileNames = fs.readdirSync(filePath); + subFileNames.forEach(subFileName => walker(path.resolve(filePath, subFileName), match, fileCallback)); + } + counter = counter - 1; + if (counter === 0) { + if (finalCallback){ + finalCallback(); + } + } + + })(filePath, match, fileCallback); +} + +async function fileCB(filePath: string) { + const fileStream = fs.createReadStream(filePath); + + const rl = readline.createInterface({ + input: fileStream, + // crlfDelay: Infinity + }); + let newFileContent = ""; + let removeNamespaceFlag = false; + for await (const line of rl) { + const namespaceRE = RegExp("^(declare )?namespace .*?\\{$"); + // const namespaceTsRE = RegExp("^(declare )?namespace ts \\{$"); + const namespaceEndRE = RegExp("^\\}$"); + // const noNamespaceTsdotRE = /(? { }); +} + +export function tsMatch(filepath: string) { + const tsAndNotDeclaration = RegExp("(? { + fs.writeFile(path.resolve(__dirname, "namespacePath.json"), JSON.stringify(nameSpaceMap), () => { }); +}); diff --git a/NoNameSpace/package.json b/NoNameSpace/package.json new file mode 100644 index 0000000000000..39ef2866c7761 --- /dev/null +++ b/NoNameSpace/package.json @@ -0,0 +1,16 @@ +{ + "name": "nonamespace", + "version": "1.0.0", + "description": "", + "main": "index.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "@types/node": "^14.0.14", + "ts-node": "^8.10.2", + "typescript": "^3.9.5" + } +} diff --git a/NoNameSpace/tsconfig.json b/NoNameSpace/tsconfig.json new file mode 100644 index 0000000000000..98ea38ac016b8 --- /dev/null +++ b/NoNameSpace/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "pretty": true, + "lib": ["es2015.iterable", "es2015.generator", "es5"], + "target": "ESNext", + "rootDir": ".", + "module": "commonjs", + "moduleResolution": "Node", + "outDir": "out", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "composite": true, + "noEmitOnError": true, + "resolveJsonModule": true, + "strictNullChecks": true, + "noImplicitAny": true, + "noImplicitThis": true, + "strictPropertyInitialization": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "skipLibCheck": true, + "alwaysStrict": true, + "preserveConstEnums": true, + "esModuleInterop":true, + } +} diff --git a/NoNameSpace/vscodeFixAutoImports.js b/NoNameSpace/vscodeFixAutoImports.js new file mode 100644 index 0000000000000..04fb2fd299dab --- /dev/null +++ b/NoNameSpace/vscodeFixAutoImports.js @@ -0,0 +1,141 @@ +/* eslint-disable no-var */ +// this should be used in vscode developper tools. + +// rowElement means the whole row element + +// https://stackoverflow.com/questions/52926371/vscode-typescript-add-all-missing-imports-shortcut +var triggerEvent = new KeyboardEvent("keydown", { + // code: "KeyS", + // key: "s", + bubbles: true, + composed: true, + ctrlKey: true, + keyCode: 83, +}); + +// ATTENTION!!!!!! +// this event could not be triggered normally +// you need to copy one global event and rename it to arrowDownEvent +// +// function l(e){console.log(e)};document.addEventListener('keydown',l); +// arrowDownEvent = temp1;document.removeEventListener('keydown',l); +var arrowDownEventFALSE = new KeyboardEvent("keyDown", { + altKey: false, + bubbles: true, + cancelBubble: false, + cancelable: true, + charCode: 0, + code: "ArrowDown", + composed: true, + ctrlKey: false, + defaultPrevented: true, + detail: 0, + eventPhase: 0, + isComposing: false, + isTrusted: true, + key: "ArrowDown", + keyCode: 40, + location: 0, + metaKey: false, + repeat: false, + returnValue: false, + shiftKey: false, + timeStamp: 9281411.61000001, + type: "keydown", + which: 40, + srcElement:document.querySelector(".monaco-list.list_id_3"), + target:document.querySelector(".monaco-list.list_id_3"), + sourceCapabilities: new InputDeviceCapabilities() +}); + +function isFolder(rowElement) { + const twistie = rowElement.querySelector(".monaco-tl-twistie"); + const classNames = twistie.className.split(" "); + return classNames.some(n => n === "collapsible"); +} + +function isCollpasedFolder(rowElement) { + const twistie = rowElement.querySelector(".monaco-tl-twistie"); + const classNames = twistie.className.split(" "); + return classNames.some(n => n === "collapsible") && classNames.some(n => n === "collapsed"); +} + +// aria-level -- which could be used to determinated contain relation. + +async function ExpandIfElementIsCollapsedFolder(rowElement) { + if (isCollpasedFolder(rowElement)) { + rowElement.click(); + await waitForRenderResponse(); + } +} + +var notImportInTimeFilesName = []; + +async function worker(startElementIdPrefix, startElementIdIndex) { + console.log("start"); + let curRawElement = document.querySelector("#" + startElementIdPrefix + startElementIdIndex); + const startLevel = curRawElement.attributes["aria-level"].value; + function condition() { + let curLevel = curRawElement && curRawElement.attributes &&curRawElement.attributes["aria-level"].value; + while(!curLevel){ + waitForRenderResponse(1); + debugger; + curRawElement = document.querySelector(selector); + curLevel = curRawElement && curRawElement.attributes &&curRawElement.attributes["aria-level"].value; + } + if (curLevel !== startLevel) { + return true; + } + return false; + } + let i = startElementIdIndex; + let selector; + do { + await ExpandIfElementIsCollapsedFolder(curRawElement); + await triggerImportAllMissingImports(curRawElement); + i++; + selector = "#" + startElementIdPrefix + i; + curRawElement = document.querySelector(selector); + document.activeElement.dispatchEvent(arrowDownEvent); + document.activeElement.dispatchEvent(arrowDownEvent); + document.activeElement.dispatchEvent(arrowDownEvent); + } + while (condition()); +} + +async function triggerImportAllMissingImports(rawElement) { + const tsAndNotDeclaration = RegExp("(?l.textContent.startsWith("import")); + } + let importFixedFlag = false; + let count = 0; + const waitInternal = 1000 ; // ms + const totalWaitTime = 20; // s + const waitTimes = totalWaitTime*1000/waitInternal; + while(!importFixedFlag && count < waitTimes){ + document.activeElement.dispatchEvent(triggerEvent); + count+=1; + await waitForRenderResponse(1000); + importFixedFlag = getFixedFlag(); + } + if(count>=waitTimes){ + notImportInTimeFilesName.push(rawElement.textContent); + } + } +} + +async function waitForRenderResponse(time = 0) { + return new Promise(resolve => { + setTimeout(() => { + resolve(); + }, time); + }); +} + +worker("list_id_3_", 11); diff --git a/scripts/generateEnumType.ts b/scripts/generateEnumType.ts new file mode 100644 index 0000000000000..8cca85d64eedf --- /dev/null +++ b/scripts/generateEnumType.ts @@ -0,0 +1,57 @@ +import readline from "readline"; +import fs from "fs"; +import path from "path"; + +const enumConstConvert = [ + "SyntaxKind", + "NodeFlags", + "ModifierFlags", + "TransformFlags", + "EmitFlags", + "SymbolFlags", + "TypeFlags", + "ObjectFlags" +]; + +// wish this is /src/compiler/types.ts +// const inputFilePath = path.resolve(__dirname, "../src/compiler/types.ts"); +const inputFilePath = process.argv[2].replace(/\\/g, "/"); + +function writeFile(fileName: string, contents: string) { + fs.writeFile(path.join(path.dirname(inputFilePath), fileName), contents, { encoding: "utf-8" }, err => { + if (err) throw err; + }); +} + +function isThisLineConstEnumRegenerated(line: string) { + return enumConstConvert.some(e => RegExp(`export const enum ${e}`).test(line)); +} + +async function generateFile(filePath: string) { + const fileStream = fs.createReadStream(filePath); + + const rl = readline.createInterface({ + input: fileStream, + // crlfDelay: Infinity + }); + let newFileContent = ""; + let acceptThisLineFlag = false; + for await (const line of rl) { + if (isThisLineConstEnumRegenerated(line)) { + acceptThisLineFlag = true; + const newLine = line.replace("export", "").replace("const", ""); + newFileContent += newLine; + newFileContent += "\r\n"; + } else if (acceptThisLineFlag) { + newFileContent += line; + newFileContent += "\r\n"; + } + if (line.includes("}")) { + acceptThisLineFlag = false; + } + } + newFileContent += `export const EnumType = {${enumConstConvert.join(",")}}`; + writeFile("types.generated.ts", newFileContent); +} + +generateFile(inputFilePath); \ No newline at end of file diff --git a/scripts/request-pr-review.ts b/scripts/request-pr-review.ts index fd9cf016e6ef3..a9f83ee7e4f28 100644 --- a/scripts/request-pr-review.ts +++ b/scripts/request-pr-review.ts @@ -42,7 +42,7 @@ main().catch(console.error); async function main() { const gh = new Octokit({ auth: options.token }); - const response = await gh.pulls.requestReviewers({ + const response = await gh.pulls.createReviewRequest({ owner: options.owner, repo: options.repo, pull_number, diff --git a/src/compat/deprecations.ts b/src/compat/deprecations.ts index e9a6dc3b9a878..fb152c4b89796 100644 --- a/src/compat/deprecations.ts +++ b/src/compat/deprecations.ts @@ -1,4 +1,4 @@ -namespace ts { + // The following are deprecations for the public API. Deprecated exports are removed from the compiler itself // and compatible implementations are added here, along with an appropriate deprecation warning using // the `@deprecated` JSDoc tag as well as the `Debug.deprecate` API. @@ -9,6 +9,14 @@ namespace ts { // * "warn" - Warning deprecations are indicated with the `@deprecated` JSDoc Tag and a diagnostic message (assuming a compatible host) // * "error" - Error deprecations are indicated with the `@deprecated` JSDoc tag and will throw a `TypeError` when invoked. +import { Debug, DeprecationOptions } from "../compiler/debug"; +import { SyntaxKind, Token, Identifier, Node, GeneratedIdentifierFlags, Decorator, Modifier, ParameterDeclaration, TypeNode, IndexSignatureDeclaration, ThisTypeNode, TypePredicateNode, PseudoBigInt, StringLiteral, NoSubstitutionTemplateLiteral, NumericLiteral, PrimaryExpression, BooleanLiteral, TypeParameterDeclaration, PropertyName, QuestionToken, MethodSignature, NodeArray, TypeOperatorNode, Expression, TemplateLiteral, TaggedTemplateExpression, BinaryExpression, BinaryOperator, BinaryOperatorToken, ColonToken, ConditionalExpression, AsteriskToken, YieldExpression, HeritageClause, ClassElement, ClassExpression, PropertySignature, ExpressionWithTypeArguments, ConciseBody, EqualsGreaterThanToken, ArrowFunction, BindingName, ExclamationToken, VariableDeclaration, NamedImportBindings, ImportClause, NamedExportBindings, ExportDeclaration, EntityName, JSDocTypeExpression, JSDocParameterTag, PostfixUnaryExpression, PrefixUnaryExpression, TypeAssertion } from "../compiler/types"; +import { setTextRangePosEnd, setParent } from "../compiler/utilities"; +import { parseBaseNodeFactory } from "../compiler/parser"; +import { factory } from "../compiler/factory/nodeFactory"; +import { setTextRange } from "../compiler/factory/utilitiesPublic"; +import { isNodeKind } from "../compiler/utilitiesPublic"; + // DEPRECATION: Node factory top-level exports // DEPRECATION PLAN: // - soft: 4.0 @@ -17,7 +25,7 @@ namespace ts { // #region Node factory top-level exports // NOTE: These exports are deprecated in favor of using a `NodeFactory` instance and exist here purely for backwards compatibility reasons. - const factoryDeprecation: DeprecationOptions = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead." }; + const factoryDeprecation: DeprecationOptions = { since: "4.0", warnAfter: "4.1", message: "Use the appropriate method on 'factory' or the 'factory' supplied by your transformation context instead." }; /** @deprecated Use `factory.createNodeArray` or the factory supplied by your transformation context instead. */ export const createNodeArray = Debug.deprecate(factory.createNodeArray, factoryDeprecation); @@ -1321,4 +1329,4 @@ namespace ts { }); // #endregion Renamed node Tests -} \ No newline at end of file + diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index ca3399375a28a..da51a2b2577dc 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1,6 +1,17 @@ /* @internal */ -namespace ts { + +import { __String, Symbol, FlowLabel, ModuleDeclaration, Node, SyntaxKind, EnumDeclaration, ModifierFlags, ExportDeclaration, Identifier, ExportSpecifier, FlowNode, SourceFile, CompilerOptions, ScriptTarget, JSDocTypedefTag, JSDocCallbackTag, JSDocEnumTag, NodeFlags, SymbolFlags, UnderscoreEscapedMap, FlowFlags, DiagnosticMessage, DiagnosticWithLocation, Declaration, ExportAssignment, InternalSymbolName, StringLiteral, PropertyAccessExpression, BinaryExpression, AssignmentDeclarationKind, JSDocFunctionType, ParameterDeclaration, SymbolTable, DiagnosticRelatedInformation, FunctionLikeDeclaration, FunctionExpression, ArrowFunction, MethodDeclaration, NodeArray, WhileStatement, DoStatement, ForStatement, ForInOrOfStatement, IfStatement, ReturnStatement, ThrowStatement, BreakOrContinueStatement, TryStatement, SwitchStatement, CaseBlock, CaseClause, ExpressionStatement, LabeledStatement, PrefixUnaryExpression, PostfixUnaryExpression, DeleteExpression, ConditionalExpression, VariableDeclaration, AccessExpression, CallExpression, NonNullExpression, Block, Expression, ParenthesizedExpression, TypeOfExpression, FlowReduceLabel, ArrayBindingElement, Statement, ArrayLiteralExpression, SpreadElement, ObjectLiteralExpression, ElementAccessExpression, JSDocClassTag, OptionalChain, NonNullChain, PropertyAccessChain, ElementAccessChain, CallChain, PropertyDeclaration, PatternAmbientModule, SignatureDeclaration, JSDocSignature, JsxAttributes, JsxAttribute, PrivateIdentifier, CatchClause, FunctionDeclaration, NumericLiteral, TokenFlags, WithStatement, TextRange, DiagnosticCategory, BindableStaticPropertyAssignmentExpression, BindablePropertyAssignmentExpression, TypeParameterDeclaration, BindingElement, PropertySignature, TypeLiteralNode, MappedTypeNode, JSDocTypeLiteral, BindableObjectDefinePropertyCall, ClassLikeDeclaration, NamespaceExportDeclaration, ImportClause, ModuleBlock, JSDocParameterTag, JSDocPropertyLikeTag, LiteralLikeElementAccessExpression, DynamicNamedDeclaration, EntityNameExpression, BindableStaticAccessExpression, BindableStaticNameExpression, BindableAccessExpression, ConditionalTypeNode, JSDoc } from "./types"; +import { setParent, setParentRecursive, isEnumConst, hasSyntacticModifier, createDiagnosticForNodeInSourceFile, getSourceFileOfNode, getEmitScriptTarget, createUnderscoreEscapedMap, objectAllocator, getStrictOptionValue, createSymbolTable, setValueDeclaration, isAmbientModule, getTextOfIdentifierOrLiteral, isGlobalScopeAugmentation, isStringOrNumericLiteralLike, isSignedNumericLiteral, isWellKnownSymbolSyntactically, getPropertyNameForKnownSymbolName, getContainingClass, getSymbolNameForPrivateIdentifier, isPropertyNameLiteral, getEscapedTextOfIdentifierOrLiteral, getAssignmentDeclarationKind, isJSDocConstructSignature, declarationNameToString, hasDynamicName, nodeIsMissing, addRelatedInfo, isJSDocTypeAlias, isInJSFile, Mutable, getImmediatelyInvokedFunctionExpression, nodeIsPresent, skipParentheses, isLogicalOrCoalescingAssignmentOperator, isDottedName, unusedLabelIsError, isAssignmentOperator, isAssignmentTarget, getHostSignatureFromJSDoc, isPushOrUnshiftIdentifier, isObjectLiteralOrClassExpressionMethod, isModuleAugmentationExternal, hasZeroOrOneAsteriskCharacter, tryParsePattern, getErrorSpanForNode, createFileDiagnostic, isExternalOrCommonJsModule, getJSDocHost, findAncestor, getEnclosingBlockScopeContainer, isPropertyAccessEntityNameExpression, getAssignmentDeclarationPropertyAccessKind, isIdentifierName, isInTopLevelContext, getSpanOfTokenAtPosition, getTokenPosOfNode, isPrologueDirective, getSourceTextOfNodeFromSourceFile, isSpecialPropertyDeclaration, isModuleExportsAccessExpression, isObjectLiteralMethod, isJsonSourceFile, removeFileExtension, exportAssignmentIsAlias, getRightMostAssignedExpression, isEmptyObjectLiteral, getThisContainer, isBindableStaticAccessExpression, isPrototypeAccess, isFunctionSymbol, isBindableStaticNameExpression, getAssignedExpandoInitializer, isBindableObjectDefinePropertyCall, getExpandoInitializer, getElementOrPropertyAccessName, getNameOrArgument, isRequireCall, isBlockOrCatchScoped, isParameterDeclaration, isAsyncFunction, unreachableCodeIsError, sliceAfter, isExportsIdentifier, isAssignmentExpression } from "./utilities"; +import { getNodeId } from "./checker"; +import { forEachChild, isExternalModule } from "./parser"; +import { Debug } from "./debug"; +import { isBlock, isModuleBlock, isSourceFile, isPrivateIdentifier, isExportSpecifier, isTypeAliasDeclaration, isPropertyAccessExpression, isNonNullExpression, isParenthesizedExpression, isElementAccessExpression, isTypeOfExpression, isBinaryExpression, isPrefixUnaryExpression, isOmittedExpression, isIdentifier, isExportDeclaration, isExportAssignment, isJSDocEnumTag, isVariableStatement, isNamespaceExport, isClassExpression, isCallExpression, isVariableDeclaration, isConditionalTypeNode, isJSDocTemplateTag, isFunctionDeclaration, isEnumDeclaration } from "./factory/nodeTests"; +import { nodeHasName, getNameOfDeclaration, escapeLeadingUnderscores, idText, isNamedDeclaration, unescapeLeadingUnderscores, getCombinedModifierFlags, isOptionalChain, isStringLiteralLike, isExpressionOfOptionalChainRoot, isNullishCoalesce, isOutermostOptionalChain, isBindingPattern, isForInOrOfStatement, isOptionalChainRoot, isFunctionLike, isLeftHandSideExpression, isDeclarationStatement, hasJSDocNodes, isExpression, isFunctionLikeDeclaration, symbolName, isParameterPropertyDeclaration, isStatementButNotDeclaration, getCombinedNodeFlags, isStatement } from "./utilitiesPublic"; +import { perfLogger } from "./perfLogger"; +import { appendIfUnique, forEach, contains, concatenate, tryCast, Pattern, append, cast, some, find, getRangesWhere, length } from "./core"; +import { tokenToString } from "./scanner"; +import { performance } from "perf_hooks"; export const enum ModuleInstanceState { NonInstantiated = 0, Instantiated = 1, @@ -217,7 +228,7 @@ namespace ts { let symbolCount = 0; - let Symbol: new (flags: SymbolFlags, name: __String) => Symbol; + let SymbolConstructor: new (flags: SymbolFlags, name: __String) => Symbol; let classifiableNames: UnderscoreEscapedMap; const unreachableFlow: FlowNode = { flags: FlowFlags.Unreachable }; @@ -240,7 +251,7 @@ namespace ts { classifiableNames = createUnderscoreEscapedMap(); symbolCount = 0; - Symbol = objectAllocator.getSymbolConstructor(); + SymbolConstructor = objectAllocator.getSymbolConstructor(); // Attach debugging information if necessary Debug.attachFlowNodeDebugInfo(unreachableFlow); @@ -289,7 +300,7 @@ namespace ts { function createSymbol(flags: SymbolFlags, name: __String): Symbol { symbolCount++; - return new Symbol(flags, name); + return new SymbolConstructor(flags, name); } function addDeclarationToSymbol(symbol: Symbol, node: Declaration, symbolFlags: SymbolFlags) { @@ -3423,4 +3434,4 @@ namespace ts { } return container.symbol && container.symbol.exports && container.symbol.exports.get(name); } -} + diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index ea92c99c5172f..584340daaa9c0 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -1,5 +1,20 @@ /*@internal*/ -namespace ts { + +import { CompilerOptions, DiagnosticCategory, DiagnosticMessageChain, Path, Diagnostic, SourceFile, Program, DiagnosticRelatedInformation, CancellationToken, EmitResult, CompilerOptionsValue, CommandLineOption, CompilerHost, ProjectReference, WriteFileCallback, CustomTransformers, SourceMapEmitResult } from "./types"; +import { ReusableBuilderState, BuilderState } from "./builderState"; +import { ReadonlyCollection, MapLike } from "./corePublic"; +import { forEachKey, outFile, compilerOptionsAffectSemanticDiagnostics, forEachEntry, compilerOptionsAffectEmit, skipTypeChecking, getEmitDeclarations } from "./utilities"; +import { GetCanonicalFileName, neverArray, forEach, tryAddToSet, concatenate, arrayFrom, compareStringsCaseSensitive, hasProperty, createGetCanonicalFileName, notImplemented, maybeBind, addRange, arrayToMap, map, noop, returnUndefined } from "./core"; +import { Debug } from "./debug"; +import { getDirectoryPath, getNormalizedAbsolutePath, toPath, ensurePathIsNonModuleName, getRelativePathFromDirectory } from "./path"; +import { getTsBuildInfoEmitOutputFilePath } from "./emitter"; +import { AffectedFileResult, BuilderProgramHost, BuilderProgram, SemanticDiagnosticsBuilderProgram, EmitAndSemanticDiagnosticsBuilderProgram } from "./builderPublic"; +import { filterSemanticDiagnotics, createProgram, emitSkippedWithNoDiagnostics, handleNoEmitOptions } from "./program"; +import { getOptionsNameMap, convertToOptionsWithAbsolutePaths } from "./commandLineParser"; +import { isArray, isString } from "util"; +import { generateDjb2Hash } from "./sys"; +import { ReadBuildProgramHost } from "./watchPublic"; + export interface ReusableDiagnostic extends ReusableDiagnosticRelatedInformation { /** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */ reportsUnnecessary?: {}; @@ -262,10 +277,10 @@ namespace ts { } function convertToDiagnostics(diagnostics: readonly ReusableDiagnostic[], newProgram: Program, getCanonicalFileName: GetCanonicalFileName): readonly Diagnostic[] { - if (!diagnostics.length) return emptyArray; + if (!diagnostics.length) return neverArray; const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions())!, newProgram.getCurrentDirectory())); return diagnostics.map(diagnostic => { - const result: Diagnostic = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath); + const result: Diagnostic = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPathNameSpaceLocal); result.reportsUnnecessary = diagnostic.reportsUnnecessary; result.reportsDeprecated = diagnostic.reportDeprecated; result.source = diagnostic.source; @@ -273,14 +288,14 @@ namespace ts { const { relatedInformation } = diagnostic; result.relatedInformation = relatedInformation ? relatedInformation.length ? - relatedInformation.map(r => convertToDiagnosticRelatedInformation(r, newProgram, toPath)) : - emptyArray : + relatedInformation.map(r => convertToDiagnosticRelatedInformation(r, newProgram, toPathNameSpaceLocal)) : + neverArray : undefined; return result; }); - function toPath(path: string) { - return ts.toPath(path, buildInfoDirectory, getCanonicalFileName); + function toPathNameSpaceLocal(path: string) { + return toPath(path, buildInfoDirectory, getCanonicalFileName); } } @@ -824,7 +839,7 @@ namespace ts { result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map(r => convertToReusableDiagnosticRelatedInformation(r, relativeToBuildInfo)) : - emptyArray : + neverArray : undefined; return result; }); @@ -879,7 +894,7 @@ namespace ts { oldProgram = oldProgramOrHost as BuilderProgram; configFileParsingDiagnostics = configFileParsingDiagnosticsOrOldProgram as readonly Diagnostic[]; } - return { host, newProgram, oldProgram, configFileParsingDiagnostics: configFileParsingDiagnostics || emptyArray }; + return { host, newProgram, oldProgram, configFileParsingDiagnostics: configFileParsingDiagnostics || neverArray }; } export function createBuilderProgram(kind: BuilderProgramKind.SemanticDiagnosticsBuilderProgram, builderCreationParameters: BuilderCreationParameters): SemanticDiagnosticsBuilderProgram; @@ -1039,7 +1054,7 @@ namespace ts { } return { emitSkipped, - diagnostics: diagnostics || emptyArray, + diagnostics: diagnostics || neverArray, emittedFiles, sourceMaps }; @@ -1119,7 +1134,7 @@ namespace ts { for (const sourceFile of Debug.checkDefined(state.program).getSourceFiles()) { diagnostics = addRange(diagnostics, getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken)); } - return diagnostics || emptyArray; + return diagnostics || neverArray; } } @@ -1160,19 +1175,19 @@ namespace ts { const fileInfos = new Map(); for (const key in program.fileInfos) { if (hasProperty(program.fileInfos, key)) { - fileInfos.set(toPath(key), program.fileInfos[key]); + fileInfos.set(toPathNameSpaceLocal(key), program.fileInfos[key]); } } const state: ReusableBuilderProgramState = { fileInfos, compilerOptions: convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath), - referencedMap: getMapOfReferencedSet(program.referencedMap, toPath), - exportedModulesMap: getMapOfReferencedSet(program.exportedModulesMap, toPath), - semanticDiagnosticsPerFile: program.semanticDiagnosticsPerFile && arrayToMap(program.semanticDiagnosticsPerFile, value => toPath(isString(value) ? value : value[0]), value => isString(value) ? emptyArray : value[1]), + referencedMap: getMapOfReferencedSet(program.referencedMap, toPathNameSpaceLocal), + exportedModulesMap: getMapOfReferencedSet(program.exportedModulesMap, toPathNameSpaceLocal), + semanticDiagnosticsPerFile: program.semanticDiagnosticsPerFile && arrayToMap(program.semanticDiagnosticsPerFile, value => toPathNameSpaceLocal(isString(value) ? value : value[0]), value => isString(value) ? neverArray : value[1]), hasReusableDiagnostic: true, - affectedFilesPendingEmit: map(program.affectedFilesPendingEmit, value => toPath(value[0])), - affectedFilesPendingEmitKind: program.affectedFilesPendingEmit && arrayToMap(program.affectedFilesPendingEmit, value => toPath(value[0]), value => value[1]), + affectedFilesPendingEmit: map(program.affectedFilesPendingEmit, value => toPathNameSpaceLocal(value[0])), + affectedFilesPendingEmitKind: program.affectedFilesPendingEmit && arrayToMap(program.affectedFilesPendingEmit, value => toPathNameSpaceLocal(value[0]), value => value[1]), affectedFilesPendingEmitIndex: program.affectedFilesPendingEmit && 0, }; return { @@ -1200,8 +1215,8 @@ namespace ts { close: noop, }; - function toPath(path: string) { - return ts.toPath(path, buildInfoDirectory, getCanonicalFileName); + function toPathNameSpaceLocal(path: string) { + return toPath(path, buildInfoDirectory, getCanonicalFileName); } function toAbsolutePath(path: string) { @@ -1237,4 +1252,4 @@ namespace ts { return Debug.checkDefined(state.program); } } -} + diff --git a/src/compiler/builderPublic.ts b/src/compiler/builderPublic.ts index e7b7aff636366..7d13a0f994b7a 100644 --- a/src/compiler/builderPublic.ts +++ b/src/compiler/builderPublic.ts @@ -1,4 +1,6 @@ -namespace ts { +import { SourceFile, Program, WriteFileCallback, CompilerOptions, CancellationToken, Diagnostic, DiagnosticWithLocation, CustomTransformers, EmitResult, CompilerHost, ProjectReference } from "./types"; +import { ReusableBuilderProgramState, createBuilderProgram, BuilderProgramKind, getBuilderCreationParameters, createRedirectedBuilderProgram } from "./builder"; + export type AffectedFileResult = { result: T; affected: SourceFile | Program; } | undefined; export interface BuilderProgramHost { @@ -161,4 +163,4 @@ namespace ts { const { newProgram, configFileParsingDiagnostics: newConfigFileParsingDiagnostics } = getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences); return createRedirectedBuilderProgram({ program: newProgram, compilerOptions: newProgram.getCompilerOptions() }, newConfigFileParsingDiagnostics); } -} + diff --git a/src/compiler/builderState.ts b/src/compiler/builderState.ts index 311f92ceabe12..e9bff962bdecf 100644 --- a/src/compiler/builderState.ts +++ b/src/compiler/builderState.ts @@ -1,5 +1,14 @@ /*@internal*/ -namespace ts { + +import { Program, SourceFile, CancellationToken, CustomTransformers, Path, TypeChecker, StringLiteralLike, ModuleKind, Extension, ExportedModulesFromDeclarationEmit, ModuleDeclaration } from "./types"; +import { EmitOutput, OutputFile } from "./builderStatePublic"; +import { getSourceFileOfNode, outFile, isModuleWithStringLiteralName, isGlobalScopeAugmentation } from "./utilities"; +import { GetCanonicalFileName, neverArray, arrayFrom, mapDefinedIterator, some } from "./core"; +import { toPath, getDirectoryPath, fileExtensionIs, getAnyExtensionFromPath } from "./path"; +import { isStringLiteral } from "./factory/nodeTests"; +import { Debug } from "./debug"; +import { isExternalModule } from "./parser"; + export function getFileEmitOutput(program: Program, sourceFile: SourceFile, emitOnlyDtsFiles: boolean, cancellationToken?: CancellationToken, customTransformers?: CustomTransformers, forceDtsEmit?: boolean): EmitOutput { const outputFiles: OutputFile[] = []; @@ -266,7 +275,7 @@ namespace ts { const signatureCache = cacheToUpdateSignature || new Map(); const sourceFile = programOfThisState.getSourceFileByPath(path); if (!sourceFile) { - return emptyArray; + return neverArray; } if (!updateShapeSignature(state, programOfThisState, sourceFile, signatureCache, cancellationToken, computeHash, exportedModulesMapCache)) { @@ -431,7 +440,7 @@ namespace ts { function getAllFileNames(state: BuilderState, programOfThisState: Program): readonly string[] { if (!state.allFileNames) { const sourceFiles = programOfThisState.getSourceFiles(); - state.allFileNames = sourceFiles === emptyArray ? emptyArray : sourceFiles.map(file => file.fileName); + state.allFileNames = sourceFiles === neverArray ? neverArray : sourceFiles.map(file => file.fileName); } return state.allFileNames; } @@ -492,7 +501,7 @@ namespace ts { addSourceFile(sourceFile); } } - state.allFilesExcludingDefaultLibraryFile = result || emptyArray; + state.allFilesExcludingDefaultLibraryFile = result || neverArray; return state.allFilesExcludingDefaultLibraryFile; function addSourceFile(sourceFile: SourceFile) { @@ -552,4 +561,4 @@ namespace ts { return arrayFrom(mapDefinedIterator(seenFileNamesMap.values(), value => value)); } } -} + diff --git a/src/compiler/builderStatePublic.ts b/src/compiler/builderStatePublic.ts index ce542b0825b80..850b08388b42b 100644 --- a/src/compiler/builderStatePublic.ts +++ b/src/compiler/builderStatePublic.ts @@ -1,4 +1,5 @@ -namespace ts { +import { Diagnostic, ExportedModulesFromDeclarationEmit } from "./types"; + export interface EmitOutput { outputFiles: OutputFile[]; emitSkipped: boolean; @@ -11,4 +12,4 @@ namespace ts { writeByteOrderMark: boolean; text: string; } -} + diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index aa0091f99523a..8849b1b28a8a8 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -1,5 +1,5 @@ /* @internal */ -namespace ts { + const ambientModuleSymbolRegex = /^".+"$/; const anon = "(anonymous)" as __String & string; @@ -635,7 +635,7 @@ namespace ts { getSuggestionDiagnostics: (fileIn, ct) => { const file = getParseTreeNode(fileIn, isSourceFile) || Debug.fail("Could not determine parsed source file."); if (skipTypeChecking(file, compilerOptions, host)) { - return emptyArray; + return neverArray; } let diagnostics: DiagnosticWithLocation[] | undefined; @@ -656,7 +656,7 @@ namespace ts { } }); - return diagnostics || emptyArray; + return diagnostics || neverArray; } finally { cancellationToken = undefined; @@ -744,25 +744,25 @@ namespace ts { const restrictiveMapper: TypeMapper = makeFunctionTypeMapper(t => t.flags & TypeFlags.TypeParameter ? getRestrictiveTypeParameter(t) : t); const permissiveMapper: TypeMapper = makeFunctionTypeMapper(t => t.flags & TypeFlags.TypeParameter ? wildcardType : t); - const emptyObjectType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); - const emptyJsxObjectType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); + const emptyObjectType = createAnonymousType(undefined, emptySymbols, neverArray, neverArray, undefined, undefined); + const emptyJsxObjectType = createAnonymousType(undefined, emptySymbols, neverArray, neverArray, undefined, undefined); emptyJsxObjectType.objectFlags |= ObjectFlags.JsxAttributes; const emptyTypeLiteralSymbol = createSymbol(SymbolFlags.TypeLiteral, InternalSymbolName.Type); emptyTypeLiteralSymbol.members = createSymbolTable(); - const emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, emptyArray, emptyArray, undefined, undefined); + const emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, neverArray, neverArray, undefined, undefined); - const emptyGenericType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); + const emptyGenericType = createAnonymousType(undefined, emptySymbols, neverArray, neverArray, undefined, undefined); emptyGenericType.instantiations = createMap(); - const anyFunctionType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); + const anyFunctionType = createAnonymousType(undefined, emptySymbols, neverArray, neverArray, undefined, undefined); // The anyFunctionType contains the anyFunctionType by definition. The flag is further propagated // in getPropagatingFlagsOfTypes, and it is checked in inferFromTypes. anyFunctionType.objectFlags |= ObjectFlags.NonInferrableType; - const noConstraintType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); - const circularConstraintType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); - const resolvingDefaultType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); + const noConstraintType = createAnonymousType(undefined, emptySymbols, neverArray, neverArray, undefined, undefined); + const circularConstraintType = createAnonymousType(undefined, emptySymbols, neverArray, neverArray, undefined, undefined); + const resolvingDefaultType = createAnonymousType(undefined, emptySymbols, neverArray, neverArray, undefined, undefined); const markerSuperType = createTypeParameter(); const markerSubType = createTypeParameter(); @@ -771,10 +771,10 @@ namespace ts { const noTypePredicate = createTypePredicate(TypePredicateKind.Identifier, "<>", 0, anyType); - const anySignature = createSignature(undefined, undefined, undefined, emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); - const unknownSignature = createSignature(undefined, undefined, undefined, emptyArray, errorType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); - const resolvingSignature = createSignature(undefined, undefined, undefined, emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); - const silentNeverSignature = createSignature(undefined, undefined, undefined, emptyArray, silentNeverType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); + const anySignature = createSignature(undefined, undefined, undefined, neverArray, anyType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); + const unknownSignature = createSignature(undefined, undefined, undefined, neverArray, errorType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); + const resolvingSignature = createSignature(undefined, undefined, undefined, neverArray, anyType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); + const silentNeverSignature = createSignature(undefined, undefined, undefined, neverArray, silentNeverType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); const enumNumberIndexInfo = createIndexInfo(stringType, /*isReadonly*/ true); @@ -1212,7 +1212,7 @@ namespace ts { function addDuplicateDeclarationError(node: Declaration, message: DiagnosticMessage, symbolName: string, relatedNodes: readonly Declaration[] | undefined) { const errorNode = (getExpandoInitializer(node, /*isPrototypeAssignment*/ false) ? getNameOfExpando(node) : getNameOfDeclaration(node)) || node; const err = lookupOrIssueError(errorNode, message, symbolName); - for (const relatedNode of relatedNodes || emptyArray) { + for (const relatedNode of relatedNodes || neverArray) { const adjustedNode = (getExpandoInitializer(relatedNode, /*isPrototypeAssignment*/ false) ? getNameOfExpando(relatedNode) : getNameOfDeclaration(relatedNode)) || relatedNode; if (adjustedNode === errorNode) continue; err.relatedInformation = err.relatedInformation || []; @@ -3303,7 +3303,7 @@ namespace ts { if (symbol.members) result.members = cloneMap(symbol.members); if (symbol.exports) result.exports = cloneMap(symbol.exports); const resolvedModuleType = resolveStructuredTypeMembers(moduleType as StructuredType); // Should already be resolved from the signature checks above - result.type = createAnonymousType(result, resolvedModuleType.members, emptyArray, emptyArray, resolvedModuleType.stringIndexInfo, resolvedModuleType.numberIndexInfo); + result.type = createAnonymousType(result, resolvedModuleType.members, neverArray, neverArray, resolvedModuleType.stringIndexInfo, resolvedModuleType.numberIndexInfo); return result; } } @@ -3505,7 +3505,7 @@ namespace ts { if (!ref) continue; results = append(results, sym); } - return links.extendedContainers = results || emptyArray; + return links.extendedContainers = results || neverArray; } /** @@ -3679,12 +3679,12 @@ namespace ts { (result || (result = [])).push(symbol); } }); - return result || emptyArray; + return result || neverArray; } function setStructuredTypeMembers(type: StructuredType, members: SymbolTable, callSignatures: readonly Signature[], constructSignatures: readonly Signature[], stringIndexInfo: IndexInfo | undefined, numberIndexInfo: IndexInfo | undefined): ResolvedType { (type).members = members; - (type).properties = members === emptySymbols ? emptyArray : getNamedMembers(members); + (type).properties = members === emptySymbols ? neverArray : getNamedMembers(members); (type).callSignatures = callSignatures; (type).constructSignatures = constructSignatures; (type).stringIndexInfo = stringIndexInfo; @@ -4688,7 +4688,7 @@ namespace ts { } let typeArgumentNodes: readonly TypeNode[] | undefined; if (typeArguments.length > 0) { - const typeParameterCount = (type.target.typeParameters || emptyArray).length; + const typeParameterCount = (type.target.typeParameters || neverArray).length; typeArgumentNodes = mapToTypeNodes(typeArguments.slice(i, typeParameterCount), context); } const flags = context.flags; @@ -6375,8 +6375,8 @@ namespace ts { const members = getNamespaceMembersForSerialization(symbol); // Split NS members up by declaration - members whose parent symbol is the ns symbol vs those whose is not (but were added in later via merging) const locationMap = arrayToMultiMap(members, m => m.parent && m.parent === symbol ? "real" : "merged"); - const realMembers = locationMap.get("real") || emptyArray; - const mergedMembers = locationMap.get("merged") || emptyArray; + const realMembers = locationMap.get("real") || neverArray; + const mergedMembers = locationMap.get("merged") || neverArray; // TODO: `suppressNewPrivateContext` is questionable -we need to simply be emitting privates in whatever scope they were declared in, rather // than whatever scope we traverse to them in. That's a bit of a complex rewrite, since we're not _actually_ tracking privates at all in advance, // so we don't even have placeholders to fill in. @@ -6455,7 +6455,7 @@ namespace ts { getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration!) ) ? "local" : "remote" ); - const localProps = localVsRemoteMap.get("local") || emptyArray; + const localProps = localVsRemoteMap.get("local") || neverArray; // handle remote props first - we need to make an `import` declaration that points at the module containing each remote // prop in the outermost scope (TODO: a namespace within a namespace would need to be appropriately handled by this) // Example: @@ -6553,7 +6553,7 @@ namespace ts { /*type*/ undefined, /*initializer*/ undefined, )] : - emptyArray; + neverArray; const publicProperties = flatMap(publicSymbolProps, p => serializePropertySymbolForClass(p, /*isStatic*/ false, baseTypes[0])); // Consider static members empty if symbol also has function or module meaning - function namespacey emit will handle statics const staticMembers = flatMap( @@ -7454,7 +7454,7 @@ namespace ts { function findResolutionCycleStartIndex(target: TypeSystemEntity, propertyName: TypeSystemPropertyName): number { for (let i = resolutionTargets.length - 1; i >= 0; i--) { - if (hasType(resolutionTargets[i], resolutionPropertyNames[i])) { + if (hasTypeNameSpaceLocal(resolutionTargets[i], resolutionPropertyNames[i])) { return -1; } if (resolutionTargets[i] === target && resolutionPropertyNames[i] === propertyName) { @@ -7464,7 +7464,7 @@ namespace ts { return -1; } - function hasType(target: TypeSystemEntity, propertyName: TypeSystemPropertyName): boolean { + function hasTypeNameSpaceLocal(target: TypeSystemEntity, propertyName: TypeSystemPropertyName): boolean { switch (propertyName) { case TypeSystemPropertyName.Type: return !!getSymbolLinks(target).type; @@ -7570,7 +7570,7 @@ namespace ts { } const stringIndexInfo = getIndexInfoOfType(source, IndexKind.String); const numberIndexInfo = getIndexInfoOfType(source, IndexKind.Number); - const result = createAnonymousType(symbol, members, emptyArray, emptyArray, stringIndexInfo, numberIndexInfo); + const result = createAnonymousType(symbol, members, neverArray, neverArray, stringIndexInfo, numberIndexInfo); result.objectFlags |= ObjectFlags.ObjectRestType; return result; } @@ -7994,7 +7994,7 @@ namespace ts { if (s && hasEntries(s.exports)) { mergeSymbolTable(exports, s.exports); } - const type = createAnonymousType(symbol, exports, emptyArray, emptyArray, undefined, undefined); + const type = createAnonymousType(symbol, exports, neverArray, neverArray, undefined, undefined); type.objectFlags |= ObjectFlags.JSLiteral; return type; } @@ -8189,7 +8189,7 @@ namespace ts { symbol.bindingElement = e; members.set(symbol.escapedName, symbol); }); - const result = createAnonymousType(undefined, members, emptyArray, emptyArray, stringIndexInfo, undefined); + const result = createAnonymousType(undefined, members, neverArray, neverArray, stringIndexInfo, undefined); result.objectFlags |= objectFlags; if (includePatternInType) { result.pattern = pattern; @@ -8310,7 +8310,7 @@ namespace ts { const fileSymbol = getSymbolOfNode(getSourceFileOfNode(symbol.valueDeclaration)); const members = createSymbolTable(); members.set("exports" as __String, fileSymbol); - return createAnonymousType(symbol, members, emptyArray, emptyArray, undefined, undefined); + return createAnonymousType(symbol, members, neverArray, neverArray, undefined, undefined); } // Handle catch clause variables const declaration = symbol.valueDeclaration; @@ -8878,14 +8878,14 @@ namespace ts { } function getImplementsTypes(type: InterfaceType): BaseType[] { - let resolvedImplementsTypes: BaseType[] = emptyArray; + let resolvedImplementsTypes: BaseType[] = neverArray; for (const declaration of type.symbol.declarations) { const implementsTypeNodes = getEffectiveImplementsTypeNodes(declaration as ClassLikeDeclaration); if (!implementsTypeNodes) continue; for (const node of implementsTypeNodes) { const implementsType = getTypeFromTypeNode(node); if (implementsType !== errorType) { - if (resolvedImplementsTypes === emptyArray) { + if (resolvedImplementsTypes === neverArray) { resolvedImplementsTypes = [implementsType]; } else { @@ -8919,14 +8919,14 @@ namespace ts { function getTupleBaseType(type: TupleType) { const elementTypes = sameMap(type.typeParameters, (t, i) => type.elementFlags[i] & ElementFlags.Variadic ? getIndexedAccessType(t, numberType) : t); - return createArrayType(getUnionType(elementTypes || emptyArray), type.readonly); + return createArrayType(getUnionType(elementTypes || neverArray), type.readonly); } function resolveBaseTypesOfClass(type: InterfaceType) { type.resolvedBaseTypes = resolvingEmptyArray; const baseConstructorType = getApparentType(getBaseConstructorTypeOfClass(type)); if (!(baseConstructorType.flags & (TypeFlags.Object | TypeFlags.Intersection | TypeFlags.Any))) { - return type.resolvedBaseTypes = emptyArray; + return type.resolvedBaseTypes = neverArray; } const baseTypeNode = getBaseTypeNodeOfClass(type)!; let baseType: Type; @@ -8948,25 +8948,25 @@ namespace ts { const constructors = getInstantiatedConstructorsForTypeArguments(baseConstructorType, baseTypeNode.typeArguments, baseTypeNode); if (!constructors.length) { error(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments); - return type.resolvedBaseTypes = emptyArray; + return type.resolvedBaseTypes = neverArray; } baseType = getReturnTypeOfSignature(constructors[0]); } if (baseType === errorType) { - return type.resolvedBaseTypes = emptyArray; + return type.resolvedBaseTypes = neverArray; } const reducedBaseType = getReducedType(baseType); if (!isValidBaseType(reducedBaseType)) { const elaboration = elaborateNeverIntersection(/*errorInfo*/ undefined, baseType); const diagnostic = chainDiagnosticMessages(elaboration, Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members, typeToString(reducedBaseType)); diagnostics.add(createDiagnosticForNodeFromMessageChain(baseTypeNode.expression, diagnostic)); - return type.resolvedBaseTypes = emptyArray; + return type.resolvedBaseTypes = neverArray; } if (type === reducedBaseType || hasBaseType(reducedBaseType, type)) { error(type.symbol.valueDeclaration, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, /*enclosingDeclaration*/ undefined, TypeFormatFlags.WriteArrayAsGenericType)); - return type.resolvedBaseTypes = emptyArray; + return type.resolvedBaseTypes = neverArray; } if (type.resolvedBaseTypes === resolvingEmptyArray) { // Circular reference, likely through instantiation of default parameters @@ -9005,7 +9005,7 @@ namespace ts { } function resolveBaseTypesOfInterface(type: InterfaceType): void { - type.resolvedBaseTypes = type.resolvedBaseTypes || emptyArray; + type.resolvedBaseTypes = type.resolvedBaseTypes || neverArray; for (const declaration of type.symbol.declarations) { if (declaration.kind === SyntaxKind.InterfaceDeclaration && getInterfaceBaseTypeNodes(declaration)) { for (const node of getInterfaceBaseTypeNodes(declaration)!) { @@ -9013,7 +9013,7 @@ namespace ts { if (baseType !== errorType) { if (isValidBaseType(baseType)) { if (type !== baseType && !hasBaseType(baseType, type)) { - if (type.resolvedBaseTypes === emptyArray) { + if (type.resolvedBaseTypes === neverArray) { type.resolvedBaseTypes = [baseType]; } else { @@ -9378,8 +9378,8 @@ namespace ts { const members = getMembersOfSymbol(symbol); (type).declaredProperties = getNamedMembers(members); // Start with signatures at empty array in case of recursive types - (type).declaredCallSignatures = emptyArray; - (type).declaredConstructSignatures = emptyArray; + (type).declaredCallSignatures = neverArray; + (type).declaredConstructSignatures = neverArray; (type).declaredCallSignatures = getSignaturesOfSymbol(members.get(InternalSymbolName.Call)); (type).declaredConstructSignatures = getSignaturesOfSymbol(members.get(InternalSymbolName.New)); @@ -9690,7 +9690,7 @@ namespace ts { } function resolveClassOrInterfaceMembers(type: InterfaceType): void { - resolveObjectTypeMembers(type, resolveDeclaredMembers(type), emptyArray, emptyArray); + resolveObjectTypeMembers(type, resolveDeclaredMembers(type), neverArray, neverArray); } function resolveTypeReferenceMembers(type: TypeReference): void { @@ -9797,7 +9797,7 @@ namespace ts { const baseConstructorType = getBaseConstructorTypeOfClass(classType); const baseSignatures = getSignaturesOfType(baseConstructorType, SignatureKind.Construct); if (baseSignatures.length === 0) { - return [createSignature(undefined, classType.localTypeParameters, undefined, emptyArray, classType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None)]; + return [createSignature(undefined, classType.localTypeParameters, undefined, neverArray, classType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None)]; } const baseTypeNode = getBaseTypeNodeOfClass(classType)!; const isJavaScript = isInJSFile(baseTypeNode); @@ -9860,7 +9860,7 @@ namespace ts { let result: Signature[] | undefined; let indexWithLengthOverOne: number | undefined; for (let i = 0; i < signatureLists.length; i++) { - if (signatureLists[i].length === 0) return emptyArray; + if (signatureLists[i].length === 0) return neverArray; if (signatureLists[i].length > 1) { indexWithLengthOverOne = indexWithLengthOverOne === undefined ? i : -1; // -1 is a signal there are multiple overload sets } @@ -9905,7 +9905,7 @@ namespace ts { } result = results; } - return result || emptyArray; + return result || neverArray; } function combineUnionThisParam(left: Symbol | undefined, right: Symbol | undefined): Symbol | undefined { @@ -10070,7 +10070,7 @@ namespace ts { stringIndexInfo = intersectIndexInfos(stringIndexInfo, getIndexInfoOfType(t, IndexKind.String)); numberIndexInfo = intersectIndexInfos(numberIndexInfo, getIndexInfoOfType(t, IndexKind.Number)); } - setStructuredTypeMembers(type, emptySymbols, callSignatures || emptyArray, constructSignatures || emptyArray, stringIndexInfo, numberIndexInfo); + setStructuredTypeMembers(type, emptySymbols, callSignatures || neverArray, constructSignatures || neverArray, stringIndexInfo, numberIndexInfo); } function appendSignatures(signatures: Signature[] | undefined, newSignatures: readonly Signature[]) { @@ -10088,7 +10088,7 @@ namespace ts { function resolveAnonymousTypeMembers(type: AnonymousType) { const symbol = getMergedSymbol(type.symbol); if (type.target) { - setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, undefined, undefined); + setStructuredTypeMembers(type, emptySymbols, neverArray, neverArray, undefined, undefined); const members = createInstantiatedSymbolTable(getPropertiesOfObjectType(type.target), type.mapper!, /*mappingThisOnly*/ false); const callSignatures = instantiateSignatures(getSignaturesOfType(type.target, SignatureKind.Call), type.mapper!); const constructSignatures = instantiateSignatures(getSignaturesOfType(type.target, SignatureKind.Construct), type.mapper!); @@ -10097,7 +10097,7 @@ namespace ts { setStructuredTypeMembers(type, members, callSignatures, constructSignatures, stringIndexInfo, numberIndexInfo); } else if (symbol.flags & SymbolFlags.TypeLiteral) { - setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, undefined, undefined); + setStructuredTypeMembers(type, emptySymbols, neverArray, neverArray, undefined, undefined); const members = getMembersOfSymbol(symbol); const callSignatures = getSignaturesOfSymbol(members.get(InternalSymbolName.Call)); const constructSignatures = getSignaturesOfSymbol(members.get(InternalSymbolName.New)); @@ -10121,7 +10121,7 @@ namespace ts { members = varsOnly; } } - setStructuredTypeMembers(type, members, emptyArray, emptyArray, undefined, undefined); + setStructuredTypeMembers(type, members, neverArray, neverArray, undefined, undefined); if (symbol.flags & SymbolFlags.Class) { const classType = getDeclaredTypeOfClassOrInterface(symbol); const baseConstructorType = getBaseConstructorTypeOfClass(classType); @@ -10135,7 +10135,7 @@ namespace ts { } const numberIndexInfo = symbol.flags & SymbolFlags.Enum && (getDeclaredTypeOfSymbol(symbol).flags & TypeFlags.Enum || some(type.properties, prop => !!(getTypeOfSymbol(prop).flags & TypeFlags.NumberLike))) ? enumNumberIndexInfo : undefined; - setStructuredTypeMembers(type, members, emptyArray, emptyArray, stringIndexInfo, numberIndexInfo); + setStructuredTypeMembers(type, members, neverArray, neverArray, stringIndexInfo, numberIndexInfo); // We resolve the members before computing the signatures because a signature may use // typeof with a qualified name expression that circularly references the type we are // in the process of resolving (see issue #6072). The temporarily empty signature list @@ -10146,7 +10146,7 @@ namespace ts { // And likewise for construct signatures for classes if (symbol.flags & SymbolFlags.Class) { const classType = getDeclaredTypeOfClassOrInterface(symbol); - let constructSignatures = symbol.members ? getSignaturesOfSymbol(symbol.members.get(InternalSymbolName.Constructor)) : emptyArray; + let constructSignatures = symbol.members ? getSignaturesOfSymbol(symbol.members.get(InternalSymbolName.Constructor)) : neverArray; if (symbol.flags & SymbolFlags.Function) { constructSignatures = addRange(constructSignatures.slice(), mapDefined( type.callSignatures, @@ -10179,7 +10179,7 @@ namespace ts { inferredProp.constraintType = type.constraintType; members.set(prop.escapedName, inferredProp); } - setStructuredTypeMembers(type, members, emptyArray, emptyArray, stringIndexInfo, undefined); + setStructuredTypeMembers(type, members, neverArray, neverArray, stringIndexInfo, undefined); } // Return the lower bound of the key type in a mapped type. Intuitively, the lower @@ -10218,7 +10218,7 @@ namespace ts { let stringIndexInfo: IndexInfo | undefined; let numberIndexInfo: IndexInfo | undefined; // Resolve upfront such that recursive references see an empty object type. - setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, undefined, undefined); + setStructuredTypeMembers(type, emptySymbols, neverArray, neverArray, undefined, undefined); // In { [P in K]: T }, we refer to P as the type parameter type, K as the constraint type, // and T as the template type. const typeParameter = getTypeParameterFromMappedType(type); @@ -10242,7 +10242,7 @@ namespace ts { else { forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType); } - setStructuredTypeMembers(type, members, emptyArray, emptyArray, stringIndexInfo, numberIndexInfo); + setStructuredTypeMembers(type, members, neverArray, neverArray, stringIndexInfo, numberIndexInfo); function addMemberForKeyType(t: Type) { // Create a mapper from T to the current iteration type constituent. Then, if the @@ -10413,7 +10413,7 @@ namespace ts { if (type.flags & TypeFlags.Object) { return resolveStructuredTypeMembers(type).properties; } - return emptyArray; + return neverArray; } /** If the given type is an object type and that type has a property by the given name, @@ -11068,7 +11068,7 @@ namespace ts { const resolved = resolveStructuredTypeMembers(type); return kind === SignatureKind.Call ? resolved.callSignatures : resolved.constructSignatures; } - return emptyArray; + return neverArray; } /** @@ -11392,7 +11392,7 @@ namespace ts { } function getSignaturesOfSymbol(symbol: Symbol | undefined): Signature[] { - if (!symbol) return emptyArray; + if (!symbol) return neverArray; const result: Signature[] = []; for (let i = 0; i < symbol.declarations.length; i++) { const decl = symbol.declarations[i]; @@ -11629,9 +11629,9 @@ namespace ts { const isConstructor = kind === SyntaxKind.Constructor || kind === SyntaxKind.ConstructSignature || kind === SyntaxKind.ConstructorType; const type = createObjectType(ObjectFlags.Anonymous); type.members = emptySymbols; - type.properties = emptyArray; - type.callSignatures = !isConstructor ? [signature] : emptyArray; - type.constructSignatures = isConstructor ? [signature] : emptyArray; + type.properties = neverArray; + type.callSignatures = !isConstructor ? [signature] : neverArray; + type.constructSignatures = isConstructor ? [signature] : neverArray; signature.isolatedSignatureType = type; } @@ -11830,10 +11830,10 @@ namespace ts { function getTypeArguments(type: TypeReference): readonly Type[] { if (!type.resolvedTypeArguments) { if (!pushTypeResolution(type, TypeSystemPropertyName.ResolvedTypeArguments)) { - return type.target.localTypeParameters?.map(() => errorType) || emptyArray; + return type.target.localTypeParameters?.map(() => errorType) || neverArray; } const node = type.node; - const typeArguments = !node ? emptyArray : + const typeArguments = !node ? neverArray : node.kind === SyntaxKind.TypeReference ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments(node, type.target.localTypeParameters!)) : node.kind === SyntaxKind.ArrayType ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); @@ -11841,7 +11841,7 @@ namespace ts { type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments; } else { - type.resolvedTypeArguments = type.target.localTypeParameters?.map(() => errorType) || emptyArray; + type.resolvedTypeArguments = type.target.localTypeParameters?.map(() => errorType) || neverArray; error( type.node || currentNode, type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves, @@ -12111,7 +12111,7 @@ namespace ts { const indexed = getTypeFromTypeNode(typeArgs[0]); const target = getTypeFromTypeNode(typeArgs[1]); const index = createIndexInfo(target, /*isReadonly*/ false); - return createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, indexed === stringType ? index : undefined, indexed === numberType ? index : undefined); + return createAnonymousType(undefined, emptySymbols, neverArray, neverArray, indexed === stringType ? index : undefined, indexed === numberType ? index : undefined); } return anyType; } @@ -12529,8 +12529,8 @@ namespace ts { type.thisType.isThisType = true; type.thisType.constraint = type; type.declaredProperties = properties; - type.declaredCallSignatures = emptyArray; - type.declaredConstructSignatures = emptyArray; + type.declaredCallSignatures = neverArray; + type.declaredConstructSignatures = neverArray; type.declaredStringIndexInfo = undefined; type.declaredNumberIndexInfo = undefined; type.elementFlags = elementFlags; @@ -12632,7 +12632,7 @@ namespace ts { function sliceTupleType(type: TupleTypeReference, index: number, endSkipCount = 0) { const target = type.target; const endIndex = getTypeReferenceArity(type) - endSkipCount; - return index > target.fixedLength ? getRestArrayTypeOfTupleType(type) || createTupleType(emptyArray) : + return index > target.fixedLength ? getRestArrayTypeOfTupleType(type) || createTupleType(neverArray) : createTupleType(getTypeArguments(type).slice(index, endIndex), target.elementFlags.slice(index, endIndex), /*readonly*/ false, target.labeledElementDeclarations && target.labeledElementDeclarations.slice(index, endIndex)); } @@ -13996,8 +13996,8 @@ namespace ts { const spread = createAnonymousType( type.symbol, members, - emptyArray, - emptyArray, + neverArray, + neverArray, getIndexInfoOfType(type, IndexKind.String), getIndexInfoOfType(type, IndexKind.Number)); spread.objectFlags |= ObjectFlags.ObjectLiteral | ObjectFlags.ContainsObjectOrArrayLiteral; @@ -14108,8 +14108,8 @@ namespace ts { const spread = createAnonymousType( symbol, members, - emptyArray, - emptyArray, + neverArray, + neverArray, getIndexInfoWithReadonly(stringIndexInfo, readonly), getIndexInfoWithReadonly(numberIndexInfo, readonly)); spread.objectFlags |= ObjectFlags.ObjectLiteral | ObjectFlags.ContainsObjectOrArrayLiteral | ObjectFlags.ContainsSpread | objectFlags; @@ -14583,7 +14583,7 @@ namespace ts { const templateTagParameters = getTypeParametersFromDeclaration(declaration as DeclarationWithTypeParameters); outerTypeParameters = addRange(outerTypeParameters, templateTagParameters); } - typeParameters = outerTypeParameters || emptyArray; + typeParameters = outerTypeParameters || neverArray; typeParameters = (target.objectFlags & ObjectFlags.Reference || target.symbol.flags & SymbolFlags.TypeLiteral) && !target.aliasTypeArguments ? filter(typeParameters, tp => isTypeParameterPossiblyReferenced(tp, declaration)) : typeParameters; @@ -14980,8 +14980,8 @@ namespace ts { const result = createObjectType(ObjectFlags.Anonymous, type.symbol); result.members = resolved.members; result.properties = resolved.properties; - result.callSignatures = emptyArray; - result.constructSignatures = emptyArray; + result.callSignatures = neverArray; + result.constructSignatures = neverArray; return result; } } @@ -15164,7 +15164,7 @@ namespace ts { return false; } // Or functions with annotated parameter types - if (some(node.parameters, ts.hasType)) { + if (some(node.parameters, hasType)) { return false; } const sourceSig = getSingleCallSignature(source); @@ -16280,7 +16280,7 @@ namespace ts { const isPerformingCommonPropertyChecks = relation !== comparableRelation && !(intersectionState & IntersectionState.Target) && source.flags & (TypeFlags.Primitive | TypeFlags.Object | TypeFlags.Intersection) && source !== globalObjectType && target.flags & (TypeFlags.Object | TypeFlags.Intersection) && isWeakType(target) && - (getPropertiesOfType(source).length > 0 || typeHasCallOrConstructSignatures(source)); + (getPropertiesOfType(source).length > 0 || typeHasCallOrConstructSignaturesNameSpaceLocal(source)); if (isPerformingCommonPropertyChecks && !hasCommonProperties(source, target, isComparingJsxAttributes)) { if (reportErrors) { const calls = getSignaturesOfType(source, SignatureKind.Call); @@ -16453,7 +16453,7 @@ namespace ts { const propType = prop && getTypeOfSymbol(prop) || isNumericLiteralName(name) && getIndexTypeOfType(type, IndexKind.Number) || getIndexTypeOfType(type, IndexKind.String) || undefinedType; return append(propTypes, propType); }; - return getUnionType(reduceLeft(types, appendPropType, /*initial*/ undefined) || emptyArray); + return getUnionType(reduceLeft(types, appendPropType, /*initial*/ undefined) || neverArray); } function hasExcessProperties(source: FreshObjectLiteralType, target: Type, reportErrors: boolean): boolean { @@ -16623,7 +16623,7 @@ namespace ts { return result; } - function typeArgumentsRelatedTo(sources: readonly Type[] = emptyArray, targets: readonly Type[] = emptyArray, variances: readonly VarianceFlags[] = emptyArray, reportErrors: boolean, intersectionState: IntersectionState): Ternary { + function typeArgumentsRelatedTo(sources: readonly Type[] = neverArray, targets: readonly Type[] = neverArray, variances: readonly VarianceFlags[] = neverArray, reportErrors: boolean, intersectionState: IntersectionState): Ternary { if (sources.length !== targets.length && relation === identityRelation) { return Ternary.False; } @@ -16817,7 +16817,7 @@ namespace ts { source.aliasTypeArguments && source.aliasSymbol === target.aliasSymbol && !(source.aliasTypeArgumentsContainsMarker || target.aliasTypeArgumentsContainsMarker)) { const variances = getAliasVariances(source.aliasSymbol); - if (variances === emptyArray) { + if (variances === neverArray) { return Ternary.Maybe; } const varianceResult = relateVariances(source.aliasTypeArguments, target.aliasTypeArguments, variances, intersectionState); @@ -17040,7 +17040,7 @@ namespace ts { // We return Ternary.Maybe for a recursive invocation of getVariances (signalled by emptyArray). This // effectively means we measure variance only from type parameter occurrences that aren't nested in // recursive instantiations of the generic type. - if (variances === emptyArray) { + if (variances === neverArray) { return Ternary.Maybe; } const varianceResult = relateVariances(getTypeArguments(source), getTypeArguments(target), variances, intersectionState); @@ -17129,7 +17129,7 @@ namespace ts { // (in which case any type argument is permitted on the source side). In those cases we proceed // with a structural comparison. Otherwise, we know for certain the instantiations aren't // related and we can return here. - if (variances !== emptyArray && !allowStructuralFallback) { + if (variances !== neverArray && !allowStructuralFallback) { // In some cases generic types that are covariant in regular type checking mode become // invariant in --strictFunctionTypes mode because one or more type parameters are used in // both co- and contravariant positions. In order to make it easier to diagnose *why* such @@ -17922,11 +17922,11 @@ namespace ts { // generic type are structurally compared. We infer the variance information by comparing // instantiations of the generic type for type arguments with known relations. The function // returns the emptyArray singleton when invoked recursively for the given generic type. - function getVariancesWorker(typeParameters: readonly TypeParameter[] = emptyArray, cache: TCache, createMarkerType: (input: TCache, param: TypeParameter, marker: Type) => Type): VarianceFlags[] { + function getVariancesWorker(typeParameters: readonly TypeParameter[] = neverArray, cache: TCache, createMarkerType: (input: TCache, param: TypeParameter, marker: Type) => Type): VarianceFlags[] { let variances = cache.variances; if (!variances) { // The emptyArray singleton is used to signal a recursive invocation. - cache.variances = emptyArray; + cache.variances = neverArray; variances = []; for (const tp of typeParameters) { let unmeasurable = false; @@ -18608,7 +18608,7 @@ namespace ts { function isObjectTypeWithInferableIndex(type: Type): boolean { return type.flags & TypeFlags.Intersection ? every((type).types, isObjectTypeWithInferableIndex) : !!(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)); + !typeHasCallOrConstructSignaturesNameSpaceLocal(type)) || !!(getObjectFlags(type) & ObjectFlags.ReverseMapped && isObjectTypeWithInferableIndex((type as ReverseMappedType).source)); } function createSymbolWithType(source: Symbol, type: Type | undefined) { @@ -18739,7 +18739,7 @@ namespace ts { } const stringIndexInfo = getIndexInfoOfType(type, IndexKind.String); const numberIndexInfo = getIndexInfoOfType(type, IndexKind.Number); - const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, + const result = createAnonymousType(type.symbol, members, neverArray, neverArray, stringIndexInfo && createIndexInfo(getWidenedType(stringIndexInfo.type), stringIndexInfo.isReadonly), numberIndexInfo && createIndexInfo(getWidenedType(numberIndexInfo.type), numberIndexInfo.isReadonly)); result.objectFlags |= (getObjectFlags(type) & (ObjectFlags.JSLiteral | ObjectFlags.NonInferrableType)); // Retain js literal flag through widening @@ -19076,7 +19076,7 @@ namespace ts { members.set(name, literalProp); }); const indexInfo = type.flags & TypeFlags.String ? createIndexInfo(emptyObjectType, /*isReadonly*/ false) : undefined; - return createAnonymousType(undefined, members, emptyArray, emptyArray, indexInfo, undefined); + return createAnonymousType(undefined, members, neverArray, neverArray, indexInfo, undefined); } /** @@ -20112,6 +20112,7 @@ namespace ts { ((prop).checkFlags & CheckFlags.Discriminant) === CheckFlags.Discriminant && !maybeTypeOfKind(getTypeOfSymbol(prop), TypeFlags.Instantiable); } + return !!(prop).isDiscriminantProperty; } } @@ -20464,7 +20465,7 @@ namespace ts { witnesses.push(clause.expression.text); continue; } - return emptyArray; + return neverArray; } if (retainDefault) witnesses.push(/*explicitDefaultStatement*/ undefined); } @@ -24031,7 +24032,7 @@ namespace ts { function createObjectLiteralType() { const stringIndexInfo = hasComputedStringProperty ? getObjectLiteralIndexInfo(node, offset, propertiesArray, IndexKind.String) : undefined; const numberIndexInfo = hasComputedNumberProperty ? getObjectLiteralIndexInfo(node, offset, propertiesArray, IndexKind.Number) : undefined; - const result = createAnonymousType(node.symbol, propertiesTable, emptyArray, emptyArray, stringIndexInfo, numberIndexInfo); + const result = createAnonymousType(node.symbol, propertiesTable, neverArray, neverArray, stringIndexInfo, numberIndexInfo); result.objectFlags |= objectFlags | ObjectFlags.ObjectLiteral | ObjectFlags.ContainsObjectOrArrayLiteral; if (isJSObjectLiteral) { result.objectFlags |= ObjectFlags.JSLiteral; @@ -24222,7 +24223,7 @@ namespace ts { childrenPropSymbol.valueDeclaration.symbol = childrenPropSymbol; const childPropMap = createSymbolTable(); childPropMap.set(jsxChildrenPropertyName, childrenPropSymbol); - spread = getSpreadType(spread, createAnonymousType(attributes.symbol, childPropMap, emptyArray, emptyArray, /*stringIndexInfo*/ undefined, /*numberIndexInfo*/ undefined), + spread = getSpreadType(spread, createAnonymousType(attributes.symbol, childPropMap, neverArray, neverArray, /*stringIndexInfo*/ undefined, /*numberIndexInfo*/ undefined), attributes.symbol, objectFlags, /*readonly*/ false); } @@ -24243,7 +24244,7 @@ namespace ts { */ function createJsxAttributesType() { objectFlags |= freshObjectLiteralFlag; - const result = createAnonymousType(attributes.symbol, attributesTable, emptyArray, emptyArray, /*stringIndexInfo*/ undefined, /*numberIndexInfo*/ undefined); + const result = createAnonymousType(attributes.symbol, attributesTable, neverArray, neverArray, /*stringIndexInfo*/ undefined, /*numberIndexInfo*/ undefined); result.objectFlags |= objectFlags | ObjectFlags.ObjectLiteral | ObjectFlags.ContainsObjectOrArrayLiteral; return result; } @@ -24416,7 +24417,7 @@ namespace ts { const intrinsicType = getIntrinsicAttributesTypeFromStringLiteralType(elementType as StringLiteralType, caller); if (!intrinsicType) { error(caller, Diagnostics.Property_0_does_not_exist_on_type_1, (elementType as StringLiteralType).value, "JSX." + JsxNames.IntrinsicElements); - return emptyArray; + return neverArray; } else { const fakeSignature = createSignatureForJSXIntrinsic(caller, intrinsicType); @@ -24535,7 +24536,7 @@ namespace ts { */ function getJsxIntrinsicTagNamesAt(location: Node): Symbol[] { const intrinsics = getJsxType(JsxNames.IntrinsicElements, location); - return intrinsics ? getPropertiesOfType(intrinsics) : emptyArray; + return intrinsics ? getPropertiesOfType(intrinsics) : neverArray; } function checkJsxPreconditions(errorNode: Node) { @@ -26009,7 +26010,7 @@ namespace ts { if (isJsxOpeningLikeElement(node)) { if (!checkApplicableSignatureForJsxOpeningLikeElement(node, signature, relation, checkMode, reportErrors, containingMessageChain, errorOutputContainer)) { Debug.assert(!reportErrors || !!errorOutputContainer.errors, "jsx should have errors when reporting errors"); - return errorOutputContainer.errors || emptyArray; + return errorOutputContainer.errors || neverArray; } return undefined; } @@ -26037,7 +26038,7 @@ namespace ts { const headMessage = Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1; if (!checkTypeRelatedTo(thisArgumentType, thisType, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer)) { Debug.assert(!reportErrors || !!errorOutputContainer.errors, "this parameter should have errors when reporting errors"); - return errorOutputContainer.errors || emptyArray; + return errorOutputContainer.errors || neverArray; } } const headMessage = Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1; @@ -26055,7 +26056,7 @@ namespace ts { if (!checkTypeRelatedToAndOptionallyElaborate(checkArgType, paramType, relation, reportErrors ? arg : undefined, arg, headMessage, containingMessageChain, errorOutputContainer)) { Debug.assert(!reportErrors || !!errorOutputContainer.errors, "parameter should have errors when reporting errors"); maybeAddMissingAwaitInfo(arg, checkArgType, paramType); - return errorOutputContainer.errors || emptyArray; + return errorOutputContainer.errors || neverArray; } } } @@ -26065,7 +26066,7 @@ namespace ts { if (!checkTypeRelatedTo(spreadType, restType, relation, errorNode, headMessage, /*containingMessageChain*/ undefined, errorOutputContainer)) { Debug.assert(!reportErrors || !!errorOutputContainer.errors, "rest parameter should have errors when reporting errors"); maybeAddMissingAwaitInfo(errorNode, spreadType, restType); - return errorOutputContainer.errors || emptyArray; + return errorOutputContainer.errors || neverArray; } } return undefined; @@ -26121,9 +26122,9 @@ namespace ts { return getEffectiveDecoratorArguments(node); } if (isJsxOpeningLikeElement(node)) { - return node.attributes.properties.length > 0 || (isJsxOpeningElement(node) && node.parent.children.length > 0) ? [node.attributes] : emptyArray; + return node.attributes.properties.length > 0 || (isJsxOpeningElement(node) && node.parent.children.length > 0) ? [node.attributes] : neverArray; } - const args = node.arguments || emptyArray; + const args = node.arguments || neverArray; const spreadIndex = getSpreadArgumentIndex(args); if (spreadIndex >= 0) { // Create synthetic arguments from spreads of tuple types. @@ -27453,7 +27454,7 @@ namespace ts { if (decl) { const jsSymbol = getSymbolOfNode(decl); if (jsSymbol && hasEntries(jsSymbol.exports)) { - const jsAssignmentType = createAnonymousType(jsSymbol, jsSymbol.exports, emptyArray, emptyArray, undefined, undefined); + const jsAssignmentType = createAnonymousType(jsSymbol, jsSymbol.exports, neverArray, neverArray, undefined, undefined); jsAssignmentType.objectFlags |= ObjectFlags.JSLiteral; return getIntersectionType([returnType, jsAssignmentType]); } @@ -27524,7 +27525,7 @@ namespace ts { newSymbol.target = resolveSymbol(symbol); memberTable.set(InternalSymbolName.Default, newSymbol); const anonymousSymbol = createSymbol(SymbolFlags.TypeLiteral, InternalSymbolName.Type); - const defaultContainingObject = createAnonymousType(anonymousSymbol, memberTable, emptyArray, emptyArray, /*stringIndexInfo*/ undefined, /*numberIndexInfo*/ undefined); + const defaultContainingObject = createAnonymousType(anonymousSymbol, memberTable, neverArray, neverArray, /*stringIndexInfo*/ undefined, /*numberIndexInfo*/ undefined); anonymousSymbol.type = defaultContainingObject; synthType.syntheticType = isValidSpreadType(type) ? getSpreadType(type, defaultContainingObject, anonymousSymbol, /*objectFlags*/ 0, /*readonly*/ false) : defaultContainingObject; } @@ -28334,8 +28335,8 @@ namespace ts { return links.contextFreeType; } const returnType = getReturnTypeFromBody(node, checkMode); - const returnOnlySignature = createSignature(undefined, undefined, undefined, emptyArray, returnType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); - const returnOnlyType = createAnonymousType(node.symbol, emptySymbols, [returnOnlySignature], emptyArray, undefined, undefined); + const returnOnlySignature = createSignature(undefined, undefined, undefined, neverArray, returnType, /*resolvedTypePredicate*/ undefined, 0, SignatureFlags.None); + const returnOnlyType = createAnonymousType(node.symbol, emptySymbols, [returnOnlySignature], neverArray, undefined, undefined); returnOnlyType.objectFlags |= ObjectFlags.NonInferrableType; return links.contextFreeType = returnOnlyType; } @@ -28796,7 +28797,7 @@ namespace ts { error(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); } // NOTE: do not raise error if right is unknown as related error was already reported - if (!(isTypeAny(rightType) || typeHasCallOrConstructSignatures(rightType) || isTypeSubtypeOf(rightType, globalFunctionType))) { + if (!(isTypeAny(rightType) || typeHasCallOrConstructSignaturesNameSpaceLocal(rightType) || isTypeSubtypeOf(rightType, globalFunctionType))) { error(right, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); } return booleanType; @@ -30615,6 +30616,7 @@ namespace ts { // Private class fields transformation relies on WeakMaps. if (isPrivateIdentifier(node.name) && languageVersion < ScriptTarget.ESNext) { + for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) { getNodeLinks(lexicalScope).flags |= NodeCheckFlags.ContainsClassWithPrivateIdentifiers; } @@ -31436,7 +31438,7 @@ namespace ts { return undefined; } - const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, SignatureKind.Call) : emptyArray; + const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, SignatureKind.Call) : neverArray; if (thenSignatures.length === 0) { if (errorNode) { error(errorNode, Diagnostics.A_promise_must_have_a_then_method); @@ -33669,7 +33671,7 @@ namespace ts { } // Both async and non-async iterators *must* have a `next` method. - const methodSignatures = methodType ? getSignaturesOfType(methodType, SignatureKind.Call) : emptyArray; + const methodSignatures = methodType ? getSignaturesOfType(methodType, SignatureKind.Call) : neverArray; if (methodSignatures.length === 0) { if (errorNode) { const diagnostic = methodName === "next" @@ -35831,7 +35833,7 @@ namespace ts { } function getPotentiallyUnusedIdentifiers(sourceFile: SourceFile): readonly PotentiallyUnusedIdentifier[] { - return allPotentiallyUnusedIdentifiers.get(sourceFile.path) || emptyArray; + return allPotentiallyUnusedIdentifiers.get(sourceFile.path) || neverArray; } // Fully type check a source file and collect the relevant diagnostics. @@ -36581,8 +36583,8 @@ namespace ts { return getNamedMembers(propsByName); } - function typeHasCallOrConstructSignatures(type: Type): boolean { - return ts.typeHasCallOrConstructSignatures(type, checker); + function typeHasCallOrConstructSignaturesNameSpaceLocal(type: Type): boolean { + return typeHasCallOrConstructSignatures(type, checker); } function getRootSymbols(symbol: Symbol): readonly Symbol[] { @@ -36912,10 +36914,10 @@ namespace ts { function getPropertiesOfContainerFunction(node: Declaration): Symbol[] { const declaration = getParseTreeNode(node, isFunctionDeclaration); if (!declaration) { - return emptyArray; + return neverArray; } const symbol = getSymbolOfNode(declaration); - return symbol && getPropertiesOfType(getTypeOfSymbol(symbol)) || emptyArray; + return symbol && getPropertiesOfType(getTypeOfSymbol(symbol)) || neverArray; } function getNodeCheckFlags(node: Node): NodeCheckFlags { @@ -37469,7 +37471,7 @@ namespace ts { autoArrayType = createArrayType(autoType); if (autoArrayType === emptyObjectType) { // autoArrayType is used as a marker, so even if global Array type is not defined, it needs to be a unique type - autoArrayType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); + autoArrayType = createAnonymousType(undefined, emptySymbols, neverArray, neverArray, undefined, undefined); } globalReadonlyArrayType = getGlobalTypeOrUndefined("ReadonlyArray" as __String, /*arity*/ 1) || globalArrayType; @@ -39224,4 +39226,4 @@ namespace ts { return !!(s.flags & SignatureFlags.HasLiteralTypes); } -} + diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index b2884340dfce0..bb246d5d44521 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -1,4 +1,18 @@ -namespace ts { +import { CommandLineOption, WatchFileKind, WatchDirectoryKind, PollingWatchKind, ScriptTarget, ModuleKind, JsxEmit, ImportsNotUsedAsValues, ModuleResolutionKind, NewLineKind, CompilerOptions, TypeAcquisition, CommandLineOptionOfCustomType, Diagnostic, DiagnosticMessage, CommandLineOptionOfListType, CompilerOptionsValue, TsConfigSourceFile, DidYouMeanOptionsDiagnostics, WatchOptions, CharacterCodes, ParsedCommandLine, ParseConfigHost, FileExtensionInfo, TsConfigOnlyOption, PropertyName, Expression, JsonSourceFile, ObjectLiteralExpression, SyntaxKind, NodeArray, StringLiteral, NumericLiteral, PrefixUnaryExpression, ArrayLiteralExpression, Node, ProjectReference, Path, ExpandResult, ConfigFileSpecs, Extension, WatchDirectoryFlags } from "./types"; +import { createMapFromTemplate, hasProperty, createMap, forEach, arrayFrom, startsWith, map, mapDefined, getSpellingSuggestion, createGetCanonicalFileName, arrayToMap, filter, extend, createMultiMap, firstDefined, filterMutate, assign, endsWith, toFileNameLowerCase, identity, neverArray, findIndex } from "./core"; +import { createCompilerDiagnostic, createDiagnosticForNodeInSourceFile, isComputedNonLiteralName, getTextOfPropertyName, isStringDoubleQuoted, getFileMatcherPatterns, getRegexFromPattern, forEachEntry, getLocaleSpecificMessage, getTsConfigPropArray, getSupportedExtensions, getSuppoertedExtensionsWithJsonIfResolveJsonModule, getRegularExpressionsForWildcards, getRegularExpressionForWildcard, getTsConfigPropArrayElementValue, isImplicitGlob, getExtensionPriority, adjustExtensionPriority, ExtensionPriority, changeExtension, getNextLowestExtensionPriority } from "./utilities"; +import { Push, MapLike } from "./corePublic"; +import { sys } from "./sys"; +import { isString, isArray } from "util"; +import { BuildOptions } from "./tsbuildPublic"; +import { parseJsonText } from "./parser"; +import { toPath, getNormalizedAbsolutePath, getDirectoryPath, getRelativePathFromFile, normalizeSlashes, isRootedDiskPath, combinePaths, getBaseFileName, convertToRelativePath, normalizePath, fileExtensionIs, hasExtension, ensureTrailingDirectorySeparator, containsPath } from "./path"; +import { unescapeLeadingUnderscores } from "./utilitiesPublic"; +import { isStringLiteral } from "./factory/nodeTests"; +import { length } from "module"; +import { Debug } from "./debug"; +import { nodeModuleNameResolver } from "./moduleNameResolver"; + /* @internal */ export const compileOnSaveCommandLineOption: CommandLineOption = { name: "compileOnSave", type: "boolean" }; @@ -2953,7 +2967,7 @@ namespace ts { basePath: string, options: CompilerOptions, host: ParseConfigHost, - extraFileExtensions: readonly FileExtensionInfo[] = emptyArray + extraFileExtensions: readonly FileExtensionInfo[] = neverArray ): ExpandResult { basePath = normalizePath(basePath); @@ -2997,7 +3011,7 @@ namespace ts { if (!jsonOnlyIncludeRegexes) { const includes = validatedIncludeSpecs.filter(s => endsWith(s, Extension.Json)); const includeFilePatterns = map(getRegularExpressionsForWildcards(includes, basePath, "files"), pattern => `^${pattern}$`); - jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(pattern => getRegexFromPattern(pattern, host.useCaseSensitiveFileNames)) : emptyArray; + jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(pattern => getRegexFromPattern(pattern, host.useCaseSensitiveFileNames)) : neverArray; } const includeIndex = findIndex(jsonOnlyIncludeRegexes, re => re.test(file)); if (includeIndex !== -1) { @@ -3245,4 +3259,4 @@ namespace ts { })!; // TODO: GH#18217 } } -} + diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 573a45b9f3b1d..711e46ecc3069 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -1,5 +1,10 @@ /* @internal */ -namespace ts { + +import { MatchingKeys, UnderscoreEscapedMap, __String, TextSpan } from "./types"; +import { NativeCollections, MapLike, EqualityComparer, Comparer, SortedReadonlyArray, Comparison, SortedArray, Push } from "./corePublic"; +import { ShimCollections } from "../../built/local/shims"; +import { Debug } from "./debug"; + type GetIteratorCallback = | ReadonlyMap | undefined>(iterable: I) => Iterator< I extends ReadonlyMap ? [K, V] : I extends ReadonlySet ? T : @@ -11,7 +16,7 @@ namespace ts { K1 extends MatchingKeys any>, K2 extends MatchingKeys ReturnType<(typeof NativeCollections)[K1]>> >(name: string, nativeFactory: K1, shimFactory: K2): NonNullable> { - // NOTE: ts.ShimCollections will be defined for typescriptServices.js but not for tsc.js, so we must test for it. + // NOTE: ShimCollections will be defined for typescriptServices.js but not for tsc.js, so we must test for it. const constructor = NativeCollections[nativeFactory]() ?? ShimCollections?.[shimFactory](getIterator); if (constructor) return constructor as NonNullable>; throw new Error(`TypeScript requires an environment that provides a compatible native ${name} implementation.`); @@ -39,7 +44,7 @@ namespace ts { } } - export const emptyArray: never[] = [] as never[]; + export const neverArray: never[] = [] as never[]; /** Create a new map. */ export function createMap(): Map; @@ -432,7 +437,7 @@ namespace ts { } } } - return result || emptyArray; + return result || neverArray; } export function flatMapToMutable(array: readonly T[] | undefined, mapfn: (x: T, i: number) => U | readonly U[] | undefined): U[] { @@ -775,7 +780,7 @@ namespace ts { * Deduplicates an array that has already been sorted. */ function deduplicateSorted(array: SortedReadonlyArray, comparer: EqualityComparer | Comparer): SortedReadonlyArray { - if (array.length === 0) return emptyArray as any as SortedReadonlyArray; + if (array.length === 0) return neverArray as any as SortedReadonlyArray; let last = array[0]; const deduplicated: T[] = [last]; @@ -2220,4 +2225,4 @@ namespace ts { return s; } -} + diff --git a/src/compiler/corePublic.ts b/src/compiler/corePublic.ts index f580dc5b92451..290939d0ff62c 100644 --- a/src/compiler/corePublic.ts +++ b/src/compiler/corePublic.ts @@ -1,4 +1,4 @@ -namespace ts { + // WARNING: The script `configurePrerelease.ts` uses a regexp to parse out these values. // If changing the text in this section, be sure to test `configurePrerelease` too. export const versionMajorMinor = "4.0"; @@ -121,4 +121,4 @@ namespace ts { return typeof Set !== "undefined" && "entries" in Set.prototype && new Set([0]).size === 1 ? Set : undefined; } } -} \ No newline at end of file + diff --git a/src/compiler/debug.ts b/src/compiler/debug.ts index 62b01e816a977..50811a8e1b9b3 100644 --- a/src/compiler/debug.ts +++ b/src/compiler/debug.ts @@ -1,5 +1,16 @@ /* @internal */ -namespace ts { + +import { Version } from "./semver"; +import { AssertionLevel, AnyFunction, getOwnKeys, noop, hasProperty, every, map, stableSort, compareValues } from "./core"; +import { MatchingKeys, Node, NodeArray, SyntaxKind, NodeFlags, ModifierFlags, TransformFlags, EmitFlags, SymbolFlags, TypeFlags, ObjectFlags, FlowNode, Type, ObjectType, RequireResult, Symbol } from "./types"; +import { unescapeLeadingUnderscores, isParseTreeNode, getParseTreeNode } from "./utilitiesPublic"; +import { objectAllocator, getEffectiveModifierFlagsNoCache, getEmitFlags, nodeIsSynthesized, getSourceFileOfNode, getSourceTextOfNodeFromSourceFile, formatStringFromArgs } from "./utilities"; +import { sys } from "./sys"; +import { getDirectoryPath, resolvePath } from "./path"; +import { version } from "./corePublic"; +import { EnumType } from "./types.generated"; +import { DeprecationOptions } from "../compat/types"; + export enum LogLevel { Off, Error, @@ -95,7 +106,7 @@ namespace ts { } /** - * Tests whether an assertion function should be executed. If it shouldn't, it is cached and replaced with `ts.noop`. + * Tests whether an assertion function should be executed. If it shouldn't, it is cached and replaced with `noop`. * Replaced assertion functions are restored when `Debug.setAssertionLevel` is set to a high enough level. * @param level The minimum assertion level required. * @param name The name of the current assertion function. @@ -340,35 +351,35 @@ namespace ts { } export function formatSyntaxKind(kind: SyntaxKind | undefined): string { - return formatEnum(kind, (ts).SyntaxKind, /*isFlags*/ false); + return formatEnum(kind, EnumType.SyntaxKind, /*isFlags*/ false); } export function formatNodeFlags(flags: NodeFlags | undefined): string { - return formatEnum(flags, (ts).NodeFlags, /*isFlags*/ true); + return formatEnum(flags, EnumType.NodeFlags, /*isFlags*/ true); } export function formatModifierFlags(flags: ModifierFlags | undefined): string { - return formatEnum(flags, (ts).ModifierFlags, /*isFlags*/ true); + return formatEnum(flags, EnumType.ModifierFlags, /*isFlags*/ true); } export function formatTransformFlags(flags: TransformFlags | undefined): string { - return formatEnum(flags, (ts).TransformFlags, /*isFlags*/ true); + return formatEnum(flags, EnumType.TransformFlags, /*isFlags*/ true); } export function formatEmitFlags(flags: EmitFlags | undefined): string { - return formatEnum(flags, (ts).EmitFlags, /*isFlags*/ true); + return formatEnum(flags, EnumType.EmitFlags, /*isFlags*/ true); } export function formatSymbolFlags(flags: SymbolFlags | undefined): string { - return formatEnum(flags, (ts).SymbolFlags, /*isFlags*/ true); + return formatEnum(flags, EnumType.SymbolFlags, /*isFlags*/ true); } export function formatTypeFlags(flags: TypeFlags | undefined): string { - return formatEnum(flags, (ts).TypeFlags, /*isFlags*/ true); + return formatEnum(flags, EnumType.TypeFlags, /*isFlags*/ true); } export function formatObjectFlags(flags: ObjectFlags | undefined): string { - return formatEnum(flags, (ts).ObjectFlags, /*isFlags*/ true); + return formatEnum(flags, EnumType.ObjectFlags, /*isFlags*/ true); } let isDebugInfoEnabled = false; @@ -522,4 +533,4 @@ namespace ts { return wrapFunction(deprecation, func); } } -} + diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 8fec41fba5fce..df0b8a0da70f0 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -1,4 +1,31 @@ -namespace ts { +import { TextRange, Extension, EmitHost, SourceFile, Bundle, CompilerOptions, SyntaxKind, JsxEmit, LanguageVariant, ParsedCommandLine, EmitResolver, EmitTransformers, EmitResult, SourceMapEmitResult, BundleBuildInfo, ExportedModulesFromDeclarationEmit, PrinterOptions, Node, Identifier, Printer, SourceMapGenerator, BuildInfo, LateBoundDeclaration, ModuleResolutionHost, NodeFlags, ProjectReference, CustomTransformers, PrintHandlers, EmitTextWriter, BundleFileInfo, BundleFileTextLikeKind, BundleFileSectionKind, SourceMapSource, EmitHint, UnparsedSource, ListFormat, NodeArray, TypeNode, BundleFileTextLike, Expression, StringLiteral, JsxExpression, EmitFlags, LiteralExpression, UnparsedNode, UnparsedTextLike, UnparsedSyntheticReference, PrivateIdentifier, QualifiedName, ComputedPropertyName, TypeParameterDeclaration, ParameterDeclaration, Decorator, PropertySignature, PropertyDeclaration, MethodSignature, MethodDeclaration, ConstructorDeclaration, AccessorDeclaration, CallSignatureDeclaration, ConstructSignatureDeclaration, IndexSignatureDeclaration, TypePredicateNode, TypeReferenceNode, FunctionTypeNode, JSDocFunctionType, ConstructorTypeNode, TypeQueryNode, TypeLiteralNode, ArrayTypeNode, TupleTypeNode, OptionalTypeNode, UnionTypeNode, IntersectionTypeNode, ConditionalTypeNode, InferTypeNode, ParenthesizedTypeNode, ExpressionWithTypeArguments, TypeOperatorNode, IndexedAccessTypeNode, MappedTypeNode, LiteralTypeNode, ImportTypeNode, JSDocNullableType, JSDocNonNullableType, JSDocOptionalType, RestTypeNode, JSDocVariadicType, NamedTupleMember, ObjectBindingPattern, ArrayBindingPattern, BindingElement, TemplateSpan, Block, VariableStatement, ExpressionStatement, IfStatement, DoStatement, WhileStatement, ForStatement, ForInStatement, ForOfStatement, ContinueStatement, BreakStatement, ReturnStatement, WithStatement, SwitchStatement, LabeledStatement, ThrowStatement, TryStatement, DebuggerStatement, VariableDeclaration, VariableDeclarationList, FunctionDeclaration, ClassDeclaration, InterfaceDeclaration, TypeAliasDeclaration, EnumDeclaration, ModuleDeclaration, ModuleBlock, CaseBlock, NamespaceExportDeclaration, ImportEqualsDeclaration, ImportDeclaration, ImportClause, NamespaceImport, NamespaceExport, NamedImports, ImportSpecifier, ExportAssignment, ExportDeclaration, NamedExports, ExportSpecifier, ExternalModuleReference, JsxText, JsxOpeningElement, JsxClosingElement, JsxAttribute, JsxAttributes, JsxSpreadAttribute, CaseClause, DefaultClause, HeritageClause, CatchClause, PropertyAssignment, ShorthandPropertyAssignment, SpreadAssignment, EnumMember, JSDocPropertyLikeTag, JSDocTypeTag, JSDocImplementsTag, JSDocAugmentsTag, JSDocTemplateTag, JSDocTypedefTag, JSDocCallbackTag, JSDocSignature, JSDocTypeLiteral, JSDocTag, JSDoc, NumericLiteral, BigIntLiteral, ArrayLiteralExpression, ObjectLiteralExpression, PropertyAccessExpression, ElementAccessExpression, CallExpression, NewExpression, TaggedTemplateExpression, TypeAssertion, ParenthesizedExpression, FunctionExpression, ArrowFunction, DeleteExpression, TypeOfExpression, VoidExpression, AwaitExpression, PrefixUnaryExpression, PostfixUnaryExpression, BinaryExpression, ConditionalExpression, TemplateExpression, YieldExpression, SpreadElement, ClassExpression, AsExpression, NonNullExpression, MetaProperty, JsxElement, JsxSelfClosingElement, JsxFragment, PartiallyEmittedExpression, CommaListExpression, ModuleKind, LiteralLikeNode, UnparsedPrepend, EntityName, ScriptTarget, DotToken, BlockLike, FunctionLikeDeclaration, SignatureDeclaration, Statement, ModuleReference, NamedImportsOrExports, ImportOrExportSpecifier, JsxOpeningFragment, JsxClosingFragment, JsxTagNameExpression, JSDocThisTag, JSDocEnumTag, JSDocReturnTag, JSDocTypeExpression, FileReference, UnparsedPrologue, SourceFilePrologueInfo, SourceFilePrologueDirective, Modifier, ForInOrOfStatement, CaseOrDefaultClause, NamedDeclaration, BindingPattern, DeclarationName, GeneratedIdentifier, GeneratedIdentifierFlags, SymbolFlags, CharacterCodes, SynthesizedComment } from "./types"; +import { fileExtensionIs, resolvePath, getRelativePathFromDirectory, combinePaths, getBaseFileName, comparePaths, getDirectoryPath, normalizePath, getNormalizedAbsolutePath, ensurePathIsNonModuleName, normalizeSlashes, ensureTrailingDirectorySeparator, getRootLength, getRelativePathToDirectoryOrUrl } from "./path"; +import { EmitFileNames, getSourceFilesToEmit, outFile, isIncrementalCompilation, removeFileExtension, getEmitDeclarations, getAreDeclarationMapsEnabled, getOwnEmitOutputFilePath, isJsonSourceFile, getDeclarationEmitOutputFilePath, isSourceFileJS, changeExtension, createDiagnosticCollection, getNewLineCharacter, createTextWriter, isSourceFileNotJson, getSourceFilePathInNewDir, base64encode, setParent, setTextRangePosWidth, setEachParent, getEmitModuleKind, isBundleFileTextLike, getTrailingSemicolonDeferringWriter, getEmitFlags, isInJsonFile, isKeyword, setTextRangePosEnd, isAccessExpression, nodeIsSynthesized, positionsAreOnSameLine, isLet, isVarConst, rangeIsOnSingleLine, rangeStartPositionsAreOnSameLine, isPrologueDirective, positionIsSynthesized, getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter, getLinesBetweenRangeEndAndRangeStart, rangeEndIsOnSameLineAsRangeStart, getLinesBetweenPositionAndNextNonWhitespaceCharacter, rangeEndPositionsAreOnSameLine, getSourceFileOfNode, getSourceTextOfNodeFromSourceFile, escapeJsxAttributeString, escapeString, escapeNonAsciiString, getLiteralText, isFileLevelUniqueName, isNodeDescendantOf, getExternalModuleName, makeIdentifierFromModuleName, writeCommentRange, isPinnedComment, emitNewLineBeforeLeadingCommentOfPosition, emitDetachedComments, isRecognizedTripleSlashComment } from "./utilities"; +import { isArray } from "util"; +import { factory, createInputFiles } from "./factory/nodeFactory"; +import { Comparison } from "./corePublic"; +import { Debug } from "./debug"; +import { neverArray, contains, filter, notImplemented, arrayToMap, memoize, returnUndefined, returnFalse, createMultiMap, createMap, lastOrUndefined, cast, stableSort, clone, forEach, stringContains, findIndex, singleOrUndefined, some, last } from "./core"; +import { performance } from "perf_hooks"; +import { isBundle, isSourceFile, isExportAssignment, isExportSpecifier, isIdentifier, isVariableStatement, isStringLiteral, isTypeParameterDeclaration, isEmptyStatement, isUnparsedSource, isNumericLiteral, isBinaryExpression, isBlock, isJsxOpeningElement, isJsxClosingElement, isArrowFunction, isPrivateIdentifier, isUnparsedPrepend } from "./factory/nodeTests"; +import { version } from "os"; +import { writeFile } from "fs"; +import { transformNodes, getTransformers, noEmitNotification, noEmitSubstitution } from "./transformer"; +import { length } from "module"; +import { forEachChild, isJSDocLikeText } from "./parser"; +import { createSourceMapGenerator, tryParseRawSourceMap } from "./sourcemap"; +import { sys } from "./sys"; +import { OutputFile } from "./builderStatePublic"; +import { setTextRange } from "./factory/utilitiesPublic"; +import { createPrependNodes } from "./program"; +import { isExpression, isDeclaration, isToken, isTemplateLiteralKind, skipPartiallyEmittedExpressions, getParseTreeNode, isFunctionLike, guessIndentation, isGeneratedIdentifier, getOriginalNode, idText, isLiteralExpression, isBindingPattern, escapeLeadingUnderscores, isUnparsedNode } from "./utilitiesPublic"; +import { isInternalDeclaration } from "./transformers/declarations"; +import { getLineStarts, tokenToString, skipTrivia, getShebang, computeLineStarts, forEachLeadingCommentRange, forEachTrailingCommentRange, getLineAndCharacterOfPosition } from "./scanner"; +import { getExternalHelpersModuleName, hasRecordedExternalHelpers } from "./factory/utilities"; +import { getEmitHelpers, getConstantValue, getCommentRange, getStartsOnNewLine, getSyntheticLeadingComments, getSyntheticTrailingComments, getSourceMapRange } from "./factory/emitNode"; +import { compareEmitHelpers } from "./factory/emitHelpers"; +import { getNodeId } from "./checker"; + const brackets = createBracketsMap(); const syntheticParent: TextRange = { pos: -1, end: -1 }; @@ -177,7 +204,7 @@ namespace ts { } } function getOutputs(): readonly string[] { - return outputs || emptyArray; + return outputs || neverArray; } } @@ -337,8 +364,8 @@ namespace ts { emitSkipped = true; return; } - const version = ts.version; // Extracted into a const so the form is stable between namespace and module - writeFile(host, emitterDiagnostics, buildInfoPath, getBuildInfoText({ bundle, program, version }), /*writeByteOrderMark*/ false); + const buildVersion = version; // Extracted into a const so the form is stable between namespace and module + writeFile(host, emitterDiagnostics, buildInfoPath, getBuildInfoText({ bundle, program, version: buildVersion }), /*writeByteOrderMark*/ false); } function emitJsFileOrBundle( @@ -4691,7 +4718,7 @@ namespace ts { * or within the NameGenerator. */ function isUniqueName(name: string): boolean { - return isFileLevelUniqueName(name) + return isFileLevelUniqueNameNameSpaceLocal(name) && !generatedNames.has(name) && !(reservedNames && reservedNames.has(name)); } @@ -4699,8 +4726,8 @@ namespace ts { /** * Returns a value indicating whether a name is unique globally or within the current file. */ - function isFileLevelUniqueName(name: string) { - return currentSourceFile ? ts.isFileLevelUniqueName(currentSourceFile, name, hasGlobalName) : true; + function isFileLevelUniqueNameNameSpaceLocal(name: string) { + return currentSourceFile ? isFileLevelUniqueName(currentSourceFile, name, hasGlobalName) : true; } /** @@ -4793,7 +4820,7 @@ namespace ts { } function makeFileLevelOptimisticUniqueName(name: string) { - return makeUniqueName(name, isFileLevelUniqueName, /*optimistic*/ true); + return makeUniqueName(name, isFileLevelUniqueNameNameSpaceLocal, /*optimistic*/ true); } /** @@ -4883,7 +4910,7 @@ namespace ts { case GeneratedIdentifierFlags.Unique: return makeUniqueName( idText(name), - (name.autoGenerateFlags & GeneratedIdentifierFlags.FileLevel) ? isFileLevelUniqueName : isUniqueName, + (name.autoGenerateFlags & GeneratedIdentifierFlags.FileLevel) ? isFileLevelUniqueNameNameSpaceLocal : isUniqueName, !!(name.autoGenerateFlags & GeneratedIdentifierFlags.Optimistic), !!(name.autoGenerateFlags & GeneratedIdentifierFlags.ReservedInNestedScopes) ); @@ -5400,4 +5427,4 @@ namespace ts { CountMask = 0x0FFFFFFF, // Temp variable counter _i = 0x10000000, // Use/preference flag for '_i' } -} + diff --git a/src/compiler/factory/baseNodeFactory.ts b/src/compiler/factory/baseNodeFactory.ts index 26be7e95ef237..7a7196a099a8f 100644 --- a/src/compiler/factory/baseNodeFactory.ts +++ b/src/compiler/factory/baseNodeFactory.ts @@ -1,5 +1,8 @@ /* @internal */ -namespace ts { + +import { SyntaxKind, Node } from "../types"; +import { objectAllocator } from "../utilities"; + /** * A `BaseNodeFactory` is an abstraction over an `ObjectAllocator` that handles caching `Node` constructors * and allocating `Node` instances based on a set of predefined types. @@ -53,4 +56,4 @@ namespace ts { return new (NodeConstructor || (NodeConstructor = objectAllocator.getNodeConstructor()))(kind, /*pos*/ -1, /*end*/ -1); } } -} \ No newline at end of file + diff --git a/src/compiler/factory/emitHelpers.ts b/src/compiler/factory/emitHelpers.ts index e59c06f151647..4aa27e11ab217 100644 --- a/src/compiler/factory/emitHelpers.ts +++ b/src/compiler/factory/emitHelpers.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts { + +import { Identifier, Expression, FunctionExpression, BindingOrAssignmentElement, TextRange, EntityName, Block, ArrayLiteralExpression, TransformationContext, EmitFlags, ScriptTarget, EmitNode, SyntaxKind, GeneratedIdentifierFlags, EmitHelper, EmitHelperUniqueNameCallback, UnscopedEmitHelper } from "../types"; +import { setEmitFlags } from "./emitNode"; +import { setTextRange } from "./utilitiesPublic"; +import { getPropertyNameOfBindingOrAssignmentElement, createExpressionFromEntityName } from "./utilities"; +import { isComputedPropertyName } from "./nodeTests"; +import { Debug } from "../debug"; +import { Comparison } from "../corePublic"; +import { compareValues, arrayToMap } from "../core"; + export interface EmitHelperFactory { getUnscopedHelperName(name: string): Identifier; // TypeScript Helpers @@ -887,4 +896,4 @@ namespace ts { return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); })(name => super[name], (name, value) => super[name] = value);` }; -} \ No newline at end of file + diff --git a/src/compiler/factory/emitNode.ts b/src/compiler/factory/emitNode.ts index 1da968d027dec..65e771edb6a8e 100644 --- a/src/compiler/factory/emitNode.ts +++ b/src/compiler/factory/emitNode.ts @@ -1,4 +1,9 @@ -namespace ts { +import { Node, EmitNode, SyntaxKind, SourceFile, EmitFlags, SourceMapRange, TextRange, SynthesizedComment, AccessExpression, EmitHelper } from "../types"; +import { isParseTreeNode, getParseTreeNode } from "../utilitiesPublic"; +import { getSourceFileOfNode } from "../utilities"; +import { Debug } from "../debug"; +import { append, some, appendIfUnique, orderedRemoveItem } from "../core"; + /** * Associates a node with the current transformation, initializing * various transient transformation properties. @@ -259,4 +264,4 @@ namespace ts { getOrCreateEmitNode(node).flags |= EmitFlags.IgnoreSourceNewlines; return node; } -} \ No newline at end of file + diff --git a/src/compiler/factory/nodeConverters.ts b/src/compiler/factory/nodeConverters.ts index 08aff2a91cd87..8a6da1a3db9e9 100644 --- a/src/compiler/factory/nodeConverters.ts +++ b/src/compiler/factory/nodeConverters.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts { + +import { NodeFactory, NodeConverters, ConciseBody, Block, FunctionDeclaration, ArrayBindingOrAssignmentElement, ObjectBindingOrAssignmentElement, BindingOrAssignmentPattern, AssignmentPattern, SyntaxKind, ObjectBindingOrAssignmentPattern, ArrayBindingOrAssignmentPattern, BindingOrAssignmentElementTarget, Expression } from "../types"; +import { isBlock, isBindingElement, isIdentifier, isObjectBindingPattern, isObjectLiteralExpression, isArrayBindingPattern, isArrayLiteralExpression } from "./nodeTests"; +import { setTextRange } from "./utilitiesPublic"; +import { Debug } from "../debug"; +import { setOriginalNode } from "./nodeFactory"; +import { getStartsOnNewLine, setStartsOnNewLine } from "./emitNode"; +import { cast, map, notImplemented } from "../core"; +import { isExpression, isObjectLiteralElementLike, isBindingPattern } from "../utilitiesPublic"; + export function createNodeConverters(factory: NodeFactory): NodeConverters { return { convertToFunctionBlock, @@ -134,4 +143,4 @@ namespace ts { convertToArrayAssignmentPattern: notImplemented, convertToAssignmentElementTarget: notImplemented, }; -} \ No newline at end of file + diff --git a/src/compiler/factory/nodeFactory.ts b/src/compiler/factory/nodeFactory.ts index ef019d3df30d3..67dfd8f3b1856 100644 --- a/src/compiler/factory/nodeFactory.ts +++ b/src/compiler/factory/nodeFactory.ts @@ -1,4 +1,23 @@ -namespace ts { +import { BaseNodeFactory, createBaseNodeFactory } from "./baseNodeFactory"; +import { NodeFactory, BinaryOperator, Expression, PrefixUnaryOperator, PostfixUnaryOperator, JSDocType, TypeNode, JSDocTag, Identifier, JSDocTypeExpression, EmitFlags, JSDocAllType, SyntaxKind, JSDocUnknownType, JSDocNonNullableType, JSDocNullableType, JSDocOptionalType, JSDocVariadicType, JSDocNamepathType, JSDocTypeTag, JSDocReturnTag, JSDocThisTag, JSDocEnumTag, JSDocAuthorTag, JSDocClassTag, JSDocPublicTag, JSDocPrivateTag, JSDocProtectedTag, JSDocReadonlyTag, JSDocDeprecatedTag, Node, NodeArray, MutableNodeArray, Declaration, VariableStatement, ImportDeclaration, Decorator, Modifier, NamedDeclaration, PrivateIdentifier, StringLiteralLike, NumericLiteral, ComputedPropertyName, BindingPattern, TypeParameterDeclaration, TransformFlags, SignatureDeclarationBase, ParameterDeclaration, FunctionLikeDeclaration, InterfaceDeclaration, ClassLikeDeclaration, HeritageClause, ClassElement, PropertyDeclaration, VariableDeclaration, BindingElement, LiteralToken, TokenFlags, PseudoBigInt, BigIntLiteral, StringLiteral, PropertyNameLiteral, RegularExpressionLiteral, NoSubstitutionTemplateLiteral, GeneratedIdentifierFlags, GeneratedIdentifier, SuperExpression, ThisExpression, NullLiteral, TrueLiteral, FalseLiteral, PunctuationSyntaxKind, PunctuationToken, KeywordTypeSyntaxKind, KeywordTypeNode, ModifierSyntaxKind, ModifierToken, KeywordSyntaxKind, KeywordToken, Token, ModifierFlags, EntityName, QualifiedName, DotDotDotToken, BindingName, QuestionToken, PropertyName, PropertySignature, ExclamationToken, MethodSignature, AsteriskToken, Block, MethodDeclaration, ConstructorDeclaration, GetAccessorDeclaration, SetAccessorDeclaration, CallSignatureDeclaration, ConstructSignatureDeclaration, IndexSignatureDeclaration, AssertsKeyword, ThisTypeNode, TypePredicateNode, TypeReferenceNode, FunctionTypeNode, ConstructorTypeNode, TypeQueryNode, TypeElement, TypeLiteralNode, ArrayTypeNode, NamedTupleMember, TupleTypeNode, OptionalTypeNode, RestTypeNode, UnionTypeNode, IntersectionTypeNode, UnionOrIntersectionTypeNode, ConditionalTypeNode, InferTypeNode, ImportTypeNode, ParenthesizedTypeNode, TypeOperatorNode, IndexedAccessTypeNode, ReadonlyKeyword, PlusToken, MinusToken, MappedTypeNode, LiteralTypeNode, ObjectBindingPattern, ArrayBindingElement, ArrayBindingPattern, ArrayLiteralExpression, ObjectLiteralElementLike, ObjectLiteralExpression, PropertyAccessExpression, QuestionDotToken, PropertyAccessChain, NodeFlags, ElementAccessExpression, ElementAccessChain, CallExpression, CallChain, NewExpression, TemplateLiteral, TaggedTemplateExpression, TypeAssertion, ParenthesizedExpression, FunctionExpression, EqualsGreaterThanToken, ConciseBody, ArrowFunction, DeleteExpression, TypeOfExpression, VoidExpression, AwaitExpression, PrefixUnaryExpression, PostfixUnaryExpression, BinaryOperatorToken, BinaryExpression, ColonToken, ConditionalExpression, TemplateHead, TemplateSpan, TemplateExpression, TemplateLiteralToken, TemplateLiteralLikeNode, TemplateMiddle, TemplateTail, YieldExpression, SpreadElement, ClassExpression, OmittedExpression, ExpressionWithTypeArguments, AsExpression, NonNullExpression, NonNullChain, MetaProperty, SemicolonClassElement, Statement, VariableDeclarationList, EmptyStatement, ExpressionStatement, IfStatement, DoStatement, WhileStatement, ForInitializer, ForStatement, ForInStatement, AwaitKeyword, ForOfStatement, ContinueStatement, BreakStatement, ReturnStatement, WithStatement, CaseBlock, SwitchStatement, LabeledStatement, ThrowStatement, CatchClause, TryStatement, DebuggerStatement, FunctionDeclaration, ClassDeclaration, TypeAliasDeclaration, EnumMember, EnumDeclaration, ModuleName, ModuleBody, ModuleDeclaration, ModuleBlock, CaseOrDefaultClause, NamespaceExportDeclaration, ModuleReference, ImportEqualsDeclaration, ImportClause, NamedImportBindings, NamespaceImport, NamespaceExport, ImportSpecifier, NamedImports, ExportAssignment, NamedExportBindings, ExportDeclaration, ExportSpecifier, NamedExports, MissingDeclaration, ExternalModuleReference, JSDocFunctionType, JSDocPropertyLikeTag, JSDocTypeLiteral, JSDocTemplateTag, JSDocParameterTag, JSDocSignature, JSDocNamespaceDeclaration, JSDocTypedefTag, JSDocPropertyTag, JSDocCallbackTag, JSDocAugmentsTag, JSDocImplementsTag, JSDocUnknownTag, JSDoc, JsxOpeningElement, JsxChild, JsxClosingElement, JsxElement, JsxTagNameExpression, JsxAttributes, JsxSelfClosingElement, JsxOpeningFragment, JsxClosingFragment, JsxFragment, JsxText, JsxExpression, JsxAttribute, JsxAttributeLike, JsxSpreadAttribute, CaseClause, DefaultClause, PropertyAssignment, ShorthandPropertyAssignment, SpreadAssignment, EndOfFileToken, SourceFile, FileReference, UnparsedSource, InputFiles, Bundle, UnparsedPrologue, UnparsedSyntheticReference, UnparsedSourceText, UnparsedNode, UnparsedTextLike, UnparsedPrepend, BundleFileHasNoDefaultLib, BundleFileReference, Type, SyntheticExpression, SyntaxList, NotEmittedStatement, PartiallyEmittedExpression, CommaListExpression, EndOfDeclarationMarker, EmitNode, MergeDeclarationMarker, SyntheticReferenceExpression, TypeOfTag, PropertyDescriptorAttributes, OuterExpression, OuterExpressionKinds, ScriptTarget, CallBinding, LeftHandSideExpression, PrimaryExpression, VisitResult, PrologueDirective, HasModifiers, DeclarationName, BooleanLiteral, LanguageVariant, BundleFileInfo, UnscopedEmitHelper, BundleFileSectionKind, BuildInfo, TextRange, SourceMapSource } from "../types"; +import { memoize, memoizeOne, neverArray, startsWith, cast, hasProperty, sameFlatMap, some, reduceLeft, returnTrue, append, every, singleOrUndefined, createMap, addRange, map, appendIfUnique } from "../core"; +import { nullParenthesizerRules, createParenthesizerRules } from "./parenthesizerRules"; +import { nullNodeConverters, createNodeConverters } from "./nodeConverters"; +import { setEmitFlags, getSourceMapRange, getCommentRange, getSyntheticLeadingComments, getSyntheticTrailingComments } from "./emitNode"; +import { isNodeArray, escapeLeadingUnderscores, idText, isPropertyAccessChain, isElementAccessChain, isCallChain, isNonNullChain, isParseTreeNode, isNodeKind, getNameOfDeclaration, isGeneratedIdentifier, isStatement, isStatementOrBlock, isNamedDeclaration, isPropertyName } from "../utilitiesPublic"; +import { setTextRangePosEnd, Mutable, pseudoBigIntToString, getTextOfIdentifierOrLiteral, isThisIdentifier, modifiersToFlags, hasStaticModifier, isSuperProperty, hasInvalidEscape, isLogicalOrCoalescingAssignmentOperator, nodeIsSynthesized, skipParentheses, getEmitFlags, setParent, hasSyntacticModifier, isPrologueDirective, isHoistedFunction, isHoistedVariableStatement, isCustomPrologue, setTextRangePosWidth, setEachParent, objectAllocator } from "../utilities"; +import { isIdentifier, isQuestionToken, isExclamationToken, isComputedPropertyName, isSuperKeyword, isImportKeyword, isObjectLiteralExpression, isArrayLiteralExpression, isExternalModuleReference, isCommaListExpression, isBinaryExpression, isCommaToken, isSourceFile, isPrivateIdentifier, isParenthesizedExpression, isLabeledStatement, isPropertyAccessExpression, isElementAccessExpression, isStringLiteral, isParameter, isPropertySignature, isPropertyDeclaration, isMethodSignature, isMethodDeclaration, isConstructorDeclaration, isGetAccessorDeclaration, isSetAccessorDeclaration, isIndexSignatureDeclaration, isFunctionExpression, isArrowFunction, isClassExpression, isVariableStatement, isFunctionDeclaration, isClassDeclaration, isInterfaceDeclaration, isTypeAliasDeclaration, isEnumDeclaration, isModuleDeclaration, isImportEqualsDeclaration, isImportDeclaration, isExportAssignment, isExportDeclaration, isNotEmittedStatement } from "./nodeTests"; +import { stringToToken, getLineAndCharacterOfPosition, Scanner, createScanner } from "../scanner"; +import { Debug } from "../debug"; +import { isArray, isString } from "util"; +import { getJSDocTypeAliasName, isOuterExpression, skipOuterExpressions, startOnNewLine, findUseStrictPrologue } from "./utilities"; +import { setTextRange } from "./utilitiesPublic"; +import { Push } from "../corePublic"; +import { visitNode } from "../visitorPublic"; +import { getAllUnscopedEmitHelpers } from "./emitHelpers"; +import { parseNodeFactory } from "../parser"; +import { getBuildInfo } from "../emitter"; + let nextAutoGenerateId = 0; /* @internal */ @@ -501,7 +520,7 @@ namespace ts { // @api function createNodeArray(elements?: readonly T[], hasTrailingComma?: boolean): NodeArray { - if (elements === undefined || elements === emptyArray) { + if (elements === undefined || elements === neverArray) { elements = []; } else if (isNodeArray(elements)) { @@ -2739,6 +2758,7 @@ namespace ts { return createTemplateLiteralLikeNodeChecked(SyntaxKind.TemplateHead, text, rawText, templateFlags); } + // @api function createTemplateMiddle(text: string | undefined, rawText?: string, templateFlags?: TokenFlags) { return createTemplateLiteralLikeNodeChecked(SyntaxKind.TemplateMiddle, text, rawText, templateFlags); @@ -4848,7 +4868,7 @@ namespace ts { } // @api - function createBundle(sourceFiles: readonly SourceFile[], prepends: readonly (UnparsedSource | InputFiles)[] = emptyArray) { + function createBundle(sourceFiles: readonly SourceFile[], prepends: readonly (UnparsedSource | InputFiles)[] = neverArray) { const node = createBaseNode(SyntaxKind.Bundle); node.prepends = prepends; node.sourceFiles = sourceFiles; @@ -4856,7 +4876,7 @@ namespace ts { } // @api - function updateBundle(node: Bundle, sourceFiles: readonly SourceFile[], prepends: readonly (UnparsedSource | InputFiles)[] = emptyArray) { + function updateBundle(node: Bundle, sourceFiles: readonly SourceFile[], prepends: readonly (UnparsedSource | InputFiles)[] = neverArray) { return node.sourceFiles !== sourceFiles || node.prepends !== prepends ? update(createBundle(sourceFiles, prepends), node) @@ -4871,8 +4891,8 @@ namespace ts { node.texts = texts; node.fileName = ""; node.text = ""; - node.referencedFiles = emptyArray; - node.libReferenceDirectives = emptyArray; + node.referencedFiles = neverArray; + node.libReferenceDirectives = neverArray; node.getLineAndCharacterOfPosition = pos => getLineAndCharacterOfPosition(node, pos); return node; } @@ -6011,7 +6031,7 @@ namespace ts { let texts: UnparsedSourceText[] | undefined; let hasNoDefaultLib: boolean | undefined; - for (const section of bundleFileInfo ? bundleFileInfo.sections : emptyArray) { + for (const section of bundleFileInfo ? bundleFileInfo.sections : neverArray) { switch (section.kind) { case BundleFileSectionKind.Prologue: prologues = append(prologues, setTextRange(factory.createUnparsedPrologue(section.data), section)); @@ -6039,7 +6059,7 @@ namespace ts { } } prependChildren = addRange(prependChildren, prependTexts); - texts = append(texts, factory.createUnparsedPrepend(section.data, prependTexts ?? emptyArray)); + texts = append(texts, factory.createUnparsedPrepend(section.data, prependTexts ?? neverArray)); break; case BundleFileSectionKind.Internal: if (stripInternal) { @@ -6062,15 +6082,15 @@ namespace ts { texts = [textNode]; } - const node = parseNodeFactory.createUnparsedSource(prologues ?? emptyArray, /*syntheticReferences*/ undefined, texts); + const node = parseNodeFactory.createUnparsedSource(prologues ?? neverArray, /*syntheticReferences*/ undefined, texts); setEachParent(prologues, node); setEachParent(texts, node); setEachParent(prependChildren, node); node.hasNoDefaultLib = hasNoDefaultLib; node.helpers = helpers; - node.referencedFiles = referencedFiles || emptyArray; + node.referencedFiles = referencedFiles || neverArray; node.typeReferenceDirectives = typeReferenceDirectives; - node.libReferenceDirectives = libReferenceDirectives || emptyArray; + node.libReferenceDirectives = libReferenceDirectives || neverArray; return node; } @@ -6102,7 +6122,7 @@ namespace ts { } } - const node = factory.createUnparsedSource(emptyArray, syntheticReferences, texts ?? emptyArray); + const node = factory.createUnparsedSource(neverArray, syntheticReferences, texts ?? neverArray); setEachParent(syntheticReferences, node); setEachParent(texts, node); node.helpers = map(bundleFileInfo.sources && bundleFileInfo.sources.helpers, name => getAllUnscopedEmitHelpers().get(name)!); @@ -6211,13 +6231,13 @@ namespace ts { } // tslint:disable-next-line variable-name - let SourceMapSource: new (fileName: string, text: string, skipTrivia?: (pos: number) => number) => SourceMapSource; + let sourceMapSource: new (fileName: string, text: string, skipTrivia?: (pos: number) => number) => SourceMapSource; /** * Create an external source map source file reference */ export function createSourceMapSource(fileName: string, text: string, skipTrivia?: (pos: number) => number): SourceMapSource { - return new (SourceMapSource || (SourceMapSource = objectAllocator.getSourceMapSourceConstructor()))(fileName, text, skipTrivia); + return new (sourceMapSource || (sourceMapSource = objectAllocator.getSourceMapSourceConstructor()))(fileName, text, skipTrivia); } // Utilities @@ -6268,4 +6288,4 @@ namespace ts { } return destRanges; } -} + diff --git a/src/compiler/factory/nodeTests.ts b/src/compiler/factory/nodeTests.ts index 185b4d61e381a..ace304854a74c 100644 --- a/src/compiler/factory/nodeTests.ts +++ b/src/compiler/factory/nodeTests.ts @@ -1,6 +1,8 @@ -namespace ts { + // Literals +import { Node, NumericLiteral, SyntaxKind, BigIntLiteral, StringLiteral, JsxText, RegularExpressionLiteral, NoSubstitutionTemplateLiteral, TemplateHead, TemplateMiddle, TemplateTail, Identifier, QualifiedName, ComputedPropertyName, PrivateIdentifier, Token, TypeParameterDeclaration, ParameterDeclaration, Decorator, PropertySignature, PropertyDeclaration, MethodSignature, MethodDeclaration, ConstructorDeclaration, GetAccessorDeclaration, SetAccessorDeclaration, CallSignatureDeclaration, ConstructSignatureDeclaration, IndexSignatureDeclaration, TypePredicateNode, TypeReferenceNode, FunctionTypeNode, ConstructorTypeNode, TypeQueryNode, TypeLiteralNode, ArrayTypeNode, TupleTypeNode, OptionalTypeNode, RestTypeNode, UnionTypeNode, IntersectionTypeNode, ConditionalTypeNode, InferTypeNode, ParenthesizedTypeNode, ThisTypeNode, TypeOperatorNode, IndexedAccessTypeNode, MappedTypeNode, LiteralTypeNode, ImportTypeNode, ObjectBindingPattern, ArrayBindingPattern, BindingElement, ArrayLiteralExpression, ObjectLiteralExpression, PropertyAccessExpression, ElementAccessExpression, CallExpression, NewExpression, TaggedTemplateExpression, TypeAssertion, ParenthesizedExpression, FunctionExpression, ArrowFunction, DeleteExpression, TypeOfExpression, VoidExpression, AwaitExpression, PrefixUnaryExpression, PostfixUnaryExpression, BinaryExpression, ConditionalExpression, TemplateExpression, YieldExpression, SpreadElement, ClassExpression, OmittedExpression, ExpressionWithTypeArguments, AsExpression, NonNullExpression, MetaProperty, SyntheticExpression, PartiallyEmittedExpression, CommaListExpression, TemplateSpan, SemicolonClassElement, Block, VariableStatement, EmptyStatement, ExpressionStatement, IfStatement, DoStatement, WhileStatement, ForStatement, ForInStatement, ForOfStatement, ContinueStatement, BreakStatement, ReturnStatement, WithStatement, SwitchStatement, LabeledStatement, ThrowStatement, TryStatement, DebuggerStatement, VariableDeclaration, VariableDeclarationList, FunctionDeclaration, ClassDeclaration, InterfaceDeclaration, TypeAliasDeclaration, EnumDeclaration, ModuleDeclaration, ModuleBlock, CaseBlock, NamespaceExportDeclaration, ImportEqualsDeclaration, ImportDeclaration, ImportClause, NamespaceImport, NamespaceExport, NamedImports, ImportSpecifier, ExportAssignment, ExportDeclaration, NamedExports, ExportSpecifier, MissingDeclaration, NotEmittedStatement, SyntheticReferenceExpression, MergeDeclarationMarker, EndOfDeclarationMarker, ExternalModuleReference, JsxElement, JsxSelfClosingElement, JsxOpeningElement, JsxClosingElement, JsxFragment, JsxOpeningFragment, JsxClosingFragment, JsxAttribute, JsxAttributes, JsxSpreadAttribute, JsxExpression, CaseClause, DefaultClause, HeritageClause, CatchClause, PropertyAssignment, ShorthandPropertyAssignment, SpreadAssignment, EnumMember, UnparsedPrepend, SourceFile, Bundle, UnparsedSource, JSDocTypeExpression, JSDocAllType, JSDocUnknownType, JSDocNullableType, JSDocNonNullableType, JSDocOptionalType, JSDocFunctionType, JSDocVariadicType, JSDocNamepathType, JSDoc, JSDocTypeLiteral, JSDocSignature, JSDocAugmentsTag, JSDocAuthorTag, JSDocClassTag, JSDocCallbackTag, JSDocPublicTag, JSDocPrivateTag, JSDocProtectedTag, JSDocReadonlyTag, JSDocDeprecatedTag, JSDocEnumTag, JSDocParameterTag, JSDocReturnTag, JSDocThisTag, JSDocTypeTag, JSDocTemplateTag, JSDocTypedefTag, JSDocUnknownTag, JSDocPropertyTag, JSDocImplementsTag, SyntaxList } from "../types"; + export function isNumericLiteral(node: Node): node is NumericLiteral { return node.kind === SyntaxKind.NumericLiteral; } @@ -819,4 +821,4 @@ namespace ts { export function isSyntaxList(n: Node): n is SyntaxList { return n.kind === SyntaxKind.SyntaxList; } -} + diff --git a/src/compiler/factory/parenthesizerRules.ts b/src/compiler/factory/parenthesizerRules.ts index 069df2d60c9ae..bf4e565a60859 100644 --- a/src/compiler/factory/parenthesizerRules.ts +++ b/src/compiler/factory/parenthesizerRules.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts { + +import { NodeFactory, ParenthesizerRules, BinaryExpression, SyntaxKind, Expression, LeftHandSideExpression, NewExpression, UnaryExpression, NodeArray, OuterExpressionKinds, ConciseBody, TypeNode } from "../types"; +import { getOperatorPrecedence, getOperatorAssociativity, OperatorPrecedence, getExpressionPrecedence, Associativity, getExpressionAssociativity, getLeftmostExpression } from "../utilities"; +import { skipPartiallyEmittedExpressions, isLiteralKind, isLeftHandSideExpression, isUnaryExpression, isFunctionOrConstructorTypeNode, isNodeArray } from "../utilitiesPublic"; +import { compareValues, sameMap, some, identity, cast } from "../core"; +import { Comparison } from "../corePublic"; +import { isBinaryExpression, isCallExpression, isBlock } from "./nodeTests"; +import { isCommaSequence } from "./utilities"; +import { setTextRange } from "./utilitiesPublic"; + export function createParenthesizerRules(factory: NodeFactory): ParenthesizerRules { interface BinaryPlusExpression extends BinaryExpression { cachedLiteralKind: SyntaxKind; @@ -423,4 +432,4 @@ namespace ts { parenthesizeConstituentTypesOfUnionOrIntersectionType: nodes => cast(nodes, isNodeArray), parenthesizeTypeArguments: nodes => nodes && cast(nodes, isNodeArray), }; -} \ No newline at end of file + diff --git a/src/compiler/factory/utilities.ts b/src/compiler/factory/utilities.ts index a2cd08f510e99..b05d721c50405 100644 --- a/src/compiler/factory/utilities.ts +++ b/src/compiler/factory/utilities.ts @@ -1,5 +1,17 @@ /* @internal */ -namespace ts { + +import { NodeFactory, Expression, PropertyName, TextRange, MemberExpression, EmitFlags, JsxOpeningLikeElement, JsxOpeningFragment, EntityName, Identifier, LeftHandSideExpression, ForInitializer, Statement, PrivateIdentifier, NodeArray, Declaration, AccessorDeclaration, PropertyAssignment, ShorthandPropertyAssignment, MethodDeclaration, ObjectLiteralExpression, ObjectLiteralElementLike, SyntaxKind, ExpressionStatement, BinaryExpression, Token, CommaListExpression, Node, OuterExpressionKinds, OuterExpression, SourceFile, CompilerOptions, NamedImportBindings, ModuleKind, UnscopedEmitHelper, ImportDeclaration, ExportDeclaration, ImportEqualsDeclaration, EmitHost, EmitResolver, StringLiteral, LiteralExpression, BindingOrAssignmentElement, BindingOrAssignmentElementTarget, BindingOrAssignmentElementRestIndicator, NumericLiteral, BindingOrAssignmentPattern, JSDocNamespaceBody, HasModifiers, Modifier, ExportKeyword, AsyncKeyword, StaticKeyword } from "../types"; +import { isComputedPropertyName, isQualifiedName, isVariableDeclarationList, isBlock, isIdentifier, isPrivateIdentifier, isStringLiteral, isSourceFile, isPropertyAssignment, isShorthandPropertyAssignment, isSpreadElement, isSpreadAssignment } from "./nodeTests"; +import { setTextRange } from "./utilitiesPublic"; +import { isIdentifierOrPrivateIdentifier, getParseTreeNode, idText, getOriginalNode, isGeneratedIdentifier, isDeclarationBindingElement, isObjectLiteralElementLike, isPropertyName } from "../utilitiesPublic"; +import { getOrCreateEmitNode, setStartsOnNewLine, getEmitHelpers, addEmitFlags } from "./emitNode"; +import { parseNodeFactory } from "../parser"; +import { setParent, Mutable, getAllAccessorDeclarations, getEmitFlags, isPrologueDirective, isEffectiveExternalModule, getEmitModuleKind, isFileLevelUniqueName, externalHelpersModuleNameText, getNamespaceDeclarationNode, isDefaultImport, getSourceTextOfNodeFromSourceFile, getExternalModuleName, outFile, getExternalModuleNameFromPath, isAssignmentExpression } from "../utilities"; +import { first, firstOrUndefined, pushIfUnique, some, compareStringsCaseSensitive, map } from "../core"; +import { setOriginalNode } from "./nodeFactory"; +import { Debug } from "../debug"; +import { EmitHelperFactory } from "./emitHelpers"; + // Compound nodes @@ -829,4 +841,4 @@ namespace ts { export function isStaticModifier(node: Modifier): node is StaticKeyword { return node.kind === SyntaxKind.StaticKeyword; } -} + diff --git a/src/compiler/factory/utilitiesPublic.ts b/src/compiler/factory/utilitiesPublic.ts index 9dd28667eb0e1..b0ed94a9ff2cb 100644 --- a/src/compiler/factory/utilitiesPublic.ts +++ b/src/compiler/factory/utilitiesPublic.ts @@ -1,5 +1,7 @@ -namespace ts { +import { TextRange } from "../types"; +import { setTextRangePosEnd } from "../utilities"; + export function setTextRange(range: T, location: TextRange | undefined): T { return location ? setTextRangePosEnd(range, location.pos, location.end) : range; } -} \ No newline at end of file + diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index 50d7e9a4d0f53..dbfac1e6ab157 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -1,4 +1,15 @@ -namespace ts { +import { ModuleResolutionHost, DiagnosticMessage, CompilerOptions, PackageId, Extension, ResolvedModuleWithFailedLookupLocations, MatchingKeys, GetEffectiveTypeRootsHost, ResolvedProjectReference, ResolvedTypeReferenceDirectiveWithFailedLookupLocations, ResolvedTypeReferenceDirective, CharacterCodes, Path, ModuleKind, ModuleResolutionKind } from "./types"; +import { formatMessage, extensionIsTS, packageIdToString, directoryProbablyExists, readJson, optionsHaveModuleResolutionChanges, getEmitModuleKind, tryRemoveExtension, hasJSFileExtension, removeFileExtension, tryGetExtensionFromPath, matchPatternOrExact } from "./utilities"; +import { directorySeparator, normalizePath, combinePaths, getDirectoryPath, forEachAncestorDirectory, normalizePathAndParts, getBaseFileName, toPath, getRootLength, pathIsRelative, hasTrailingDirectorySeparator, containsPath, getRelativePathFromDirectory, normalizeSlashes } from "./path"; +import { Debug } from "./debug"; +import { Push, MapLike, versionMajorMinor } from "./corePublic"; +import { hasProperty, firstDefined, createMap, GetCanonicalFileName, endsWith, startsWith, forEach, contains, stringContains, getOwnKeys, matchedText, patternText, removePrefix } from "./core"; +import { VersionRange, Version } from "./semver"; +import { version } from "os"; +import { isExternalModuleNameRelative } from "./utilitiesPublic"; +import { perfLogger } from "./perfLogger"; +import { isString } from "util"; + /* @internal */ export function trace(host: ModuleResolutionHost, message: DiagnosticMessage, ...args: any[]): void; export function trace(host: ModuleResolutionHost): void { @@ -563,7 +574,7 @@ namespace ts { * At first this function add entry directory -> module resolution result to the table. * Then it computes the set of parent folders for 'directory' that should have the same module resolution result * and for every parent folder in set it adds entry: parent -> module resolution. . - * Lets say we first directory name: /a/b/c/d/e and resolution result is: /a/b/bar.ts. + * Lets say we first directory name: /a/b/c/d/e and resolution result is: /a/b/bar. * Set of parent folders that should have the same result will be: * [ * /a/b/c/d, /a/b/c, /a/b @@ -1517,4 +1528,4 @@ namespace ts { function toSearchResult(value: T | undefined): SearchResult { return value !== undefined ? { value } : undefined; } -} + diff --git a/src/compiler/moduleSpecifiers.ts b/src/compiler/moduleSpecifiers.ts index b173bb1336453..41d50664ceeb3 100644 --- a/src/compiler/moduleSpecifiers.ts +++ b/src/compiler/moduleSpecifiers.ts @@ -1,6 +1,16 @@ // Used by importFixes, getEditsForFileRename, and declaration emit to synthesize import module specifiers. /* @internal */ -namespace ts.moduleSpecifiers { + +import { UserPreferences, CompilerOptions, SourceFile, ModuleResolutionKind, Path, ModuleSpecifierResolutionHost, CharacterCodes, ModuleDeclaration, StringLiteral, ScriptKind, Extension, JsxEmit } from "./types"; +import { getEmitModuleResolutionKind, hasJSFileExtension, getSourceFileOfNode, getNonAugmentationDeclaration, removeFileExtension, hostGetCanonicalFileName, discoverProbableSymlinks, forEachEntry, isNonGlobalAmbientModule, isExternalModuleAugmentation, getTextOfIdentifierOrLiteral, getSupportedExtensions, extensionFromPath } from "./utilities"; +import { isExternalModuleNameRelative } from "./utilitiesPublic"; +import { endsWith, firstDefined, mapDefined, GetCanonicalFileName, createGetCanonicalFileName, startsWith, compareValues, neverArray, forEach, compareStringsCaseSensitive, compareStringsCaseInsensitive, find, createMap, arrayFrom, removeSuffix } from "./core"; +import { getDirectoryPath, ensurePathIsNonModuleName, getRelativePathFromDirectory, pathIsRelative, toPath, getNormalizedAbsolutePath, startsWithDirectory, resolvePath, ensureTrailingDirectorySeparator, normalizePath, removeTrailingDirectorySeparator, directorySeparator, combinePaths, fileExtensionIs, getRelativePathToDirectoryOrUrl, isRootedDiskPath } from "./path"; +import { Debug } from "./debug"; +import { Comparison, MapLike } from "./corePublic"; +import { pathContainsNodeModules, getPackageNameFromTypesPackageName, getPackageJsonTypesVersionsPaths, nodeModulesPathPart } from "./moduleNameResolver"; +import { isString } from "util"; +export namespace moduleSpecifiers { const enum RelativePreference { Relative, NonRelative, Auto } // See UserPreferences#importPathEnding const enum Ending { Minimal, Index, JsExtension } @@ -178,8 +188,8 @@ namespace ts.moduleSpecifiers { const getCanonicalFileName = hostGetCanonicalFileName(host); const cwd = host.getCurrentDirectory(); const referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? host.getProjectReferenceRedirect(importedFileName) : undefined; - const redirects = host.redirectTargetsMap.get(toPath(importedFileName, cwd, getCanonicalFileName)) || emptyArray; - const importedFileNames = [...(referenceRedirect ? [referenceRedirect] : emptyArray), importedFileName, ...redirects]; + const redirects = host.redirectTargetsMap.get(toPath(importedFileName, cwd, getCanonicalFileName)) || neverArray; + const importedFileNames = [...(referenceRedirect ? [referenceRedirect] : neverArray), importedFileName, ...redirects]; const targets = importedFileNames.map(f => getNormalizedAbsolutePath(f, cwd)); if (!preferSymlinks) { const result = forEach(targets, cb); diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 2e8729b29c220..833497172bd6c 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -1,4 +1,20 @@ -namespace ts { +import { SyntaxKind, Node, NodeArray, CharacterCodes, QualifiedName, TypeParameterDeclaration, ShorthandPropertyAssignment, SpreadAssignment, ParameterDeclaration, PropertyDeclaration, PropertySignature, PropertyAssignment, VariableDeclaration, BindingElement, SignatureDeclaration, FunctionLikeDeclaration, ArrowFunction, TypeReferenceNode, TypePredicateNode, TypeQueryNode, TypeLiteralNode, ArrayTypeNode, TupleTypeNode, UnionOrIntersectionTypeNode, ConditionalTypeNode, InferTypeNode, ImportTypeNode, ParenthesizedTypeNode, TypeOperatorNode, IndexedAccessTypeNode, MappedTypeNode, LiteralTypeNode, NamedTupleMember, BindingPattern, ArrayLiteralExpression, ObjectLiteralExpression, PropertyAccessExpression, ElementAccessExpression, CallExpression, TaggedTemplateExpression, TypeAssertion, ParenthesizedExpression, DeleteExpression, TypeOfExpression, VoidExpression, PrefixUnaryExpression, YieldExpression, AwaitExpression, PostfixUnaryExpression, BinaryExpression, AsExpression, NonNullExpression, MetaProperty, ConditionalExpression, SpreadElement, Block, SourceFile, VariableStatement, VariableDeclarationList, ExpressionStatement, IfStatement, DoStatement, WhileStatement, ForStatement, ForInStatement, ForOfStatement, BreakOrContinueStatement, ReturnStatement, WithStatement, SwitchStatement, CaseBlock, CaseClause, DefaultClause, LabeledStatement, ThrowStatement, TryStatement, CatchClause, Decorator, ClassLikeDeclaration, InterfaceDeclaration, ClassDeclaration, TypeAliasDeclaration, EnumDeclaration, EnumMember, ModuleDeclaration, ImportEqualsDeclaration, ImportDeclaration, ImportClause, NamespaceExportDeclaration, NamespaceImport, NamespaceExport, NamedImportsOrExports, ExportDeclaration, ImportOrExportSpecifier, ExportAssignment, TemplateExpression, TemplateSpan, ComputedPropertyName, HeritageClause, ExpressionWithTypeArguments, ExternalModuleReference, CommaListExpression, JsxElement, JsxFragment, JsxOpeningLikeElement, JsxAttributes, JsxAttribute, JsxSpreadAttribute, JsxExpression, JsxClosingElement, OptionalTypeNode, RestTypeNode, JSDocTypeExpression, JSDocTypeReferencingNode, JSDocFunctionType, JSDoc, JSDocTag, JSDocPropertyLikeTag, JSDocImplementsTag, JSDocAugmentsTag, JSDocTemplateTag, JSDocTypedefTag, JSDocCallbackTag, JSDocReturnTag, JSDocTypeTag, JSDocThisTag, JSDocEnumTag, JSDocSignature, JSDocTypeLiteral, PartiallyEmittedExpression, ScriptTarget, ScriptKind, EntityName, JsonSourceFile, TextChangeRange, NodeFlags, LanguageVariant, DiagnosticWithDetachedLocation, EndOfFileToken, BooleanLiteral, NullLiteral, JsonMinusNumericLiteral, StringLiteral, NumericLiteral, JsonObjectExpressionStatement, DiagnosticMessage, HasJSDoc, Statement, TransformFlags, TextRange, JSDocSyntaxKind, Token, Identifier, PropertyName, PrivateIdentifier, JSDocContainer, MethodDeclaration, TemplateTail, LiteralExpression, TemplateHead, TemplateMiddle, TemplateLiteralToken, LiteralLikeNode, TokenFlags, TypeNode, FunctionOrConstructorTypeNode, ThisTypeNode, JSDocAllType, JSDocOptionalType, JSDocUnknownType, JSDocNullableType, Expression, ModifiersArray, CallSignatureDeclaration, ConstructSignatureDeclaration, Modifier, IndexSignatureDeclaration, MethodSignature, TypeElement, ReadonlyKeyword, PlusToken, MinusToken, QuestionToken, BinaryOperatorToken, PrefixUnaryOperator, UnaryExpression, UpdateExpression, PostfixUnaryOperator, LeftHandSideExpression, MemberExpression, PrimaryExpression, JsxSelfClosingElement, JsxText, JsxOpeningElement, JsxOpeningFragment, JsxTokenSyntaxKind, JsxChild, JsxTagNameExpression, ThisExpression, JsxTagNamePropertyAccess, DotDotDotToken, JsxClosingFragment, QuestionDotToken, NoSubstitutionTemplateLiteral, ObjectLiteralElementLike, FunctionExpression, NewExpression, IterationStatement, CaseOrDefaultClause, MissingDeclaration, ArrayBindingElement, BindingName, ObjectBindingPattern, ArrayBindingPattern, ExclamationToken, FunctionDeclaration, ModifierFlags, ConstructorDeclaration, AsteriskToken, AccessorDeclaration, SetAccessorDeclaration, ClassElement, ClassExpression, ModuleBlock, NamespaceDeclaration, NamedImports, NamedExports, ExportSpecifier, ImportSpecifier, NamedExportBindings, Diagnostic, JSDocParameterTag, JSDocPropertyTag, JSDocAuthorTag, PropertyAccessEntityNameExpression, JSDocNamespaceDeclaration, CommentDirective, ReadonlyTextRange, Extension, PragmaMap, CheckJsDirective, FileReference, AmdDependency, PragmaPseudoMapEntry, PragmaPseudoMap, CommentRange, commentPragmas, PragmaDefinition, PragmaKindFlags } from "./types"; +import { BaseNodeFactory } from "./factory/baseNodeFactory"; +import { objectAllocator, Mutable, ensureScriptKind, emptyMap, attachFileToDiagnostics, getLanguageVariant, createDetachedDiagnostic, getJSDocCommentRanges, setParentRecursive, setTextRangePosWidth, isKeyword, setTextRangePosEnd, nodeIsMissing, containsParseError, getFullWidth, OperatorPrecedence, isAssignmentOperator, nodeIsPresent, getBinaryOperatorPrecedence, getTextOfNodeFromSourceText, isStringOrNumericLiteralLike, addRelatedInfo, setTextRangePos, modifiersToFlags, setParent, getLastChild } from "./utilities"; +import { createNodeFactory, NodeFactoryFlags } from "./factory/nodeFactory"; +import { forEach, neverArray, createMap, mapDefined, addRange, findIndex, lastOrUndefined, some, append, AssertionLevel, toArray, map } from "./core"; +import { isArray } from "util"; +import { performance } from "perf_hooks"; +import { perfLogger } from "./perfLogger"; +import { createScanner, tokenToString, tokenIsIdentifierOrKeyword, tokenIsIdentifierOrKeywordOrGreaterThan, skipTrivia, getLeadingCommentRanges } from "./scanner"; +import { convertToObjectWorker } from "./commandLineParser"; +import { normalizePath, fileExtensionIs } from "./path"; +import { Debug } from "./debug"; +import { setTextRange } from "./factory/utilitiesPublic"; +import { isTemplateLiteralKind, isModifierKind, isLiteralKind, isLeftHandSideExpression, isClassMemberModifier, textChangeRangeIsUnchanged, textSpanEnd, textChangeRangeNewSpan, hasJSDocNodes, createTextSpanFromBounds, createTextChangeRange } from "./utilitiesPublic"; +import { isJSDocNullableType, isJSDocFunctionType, isJsxOpeningFragment, isNonNullExpression, isPrivateIdentifier, isIdentifier, isImportEqualsDeclaration, isExternalModuleReference, isImportDeclaration, isExportAssignment, isExportDeclaration, isMetaProperty, isTypeReferenceNode, isJSDocReturnTag, isJSDocTypeTag } from "./factory/nodeTests"; +import { isAsyncModifier, isExportModifier } from "./factory/utilities"; + const enum SignatureFlags { None = 0, Yield = 1 << 0, @@ -815,10 +831,10 @@ namespace ts { if (scriptKind === ScriptKind.JSON) { const result = parseJsonText(fileName, sourceText, languageVersion, syntaxCursor, setParentNodes); convertToObjectWorker(result, result.parseDiagnostics, /*returnValue*/ false, /*knownRootOptions*/ undefined, /*jsonConversionNotifier*/ undefined); - result.referencedFiles = emptyArray; - result.typeReferenceDirectives = emptyArray; - result.libReferenceDirectives = emptyArray; - result.amdDependencies = emptyArray; + result.referencedFiles = neverArray; + result.typeReferenceDirectives = neverArray; + result.libReferenceDirectives = neverArray; + result.amdDependencies = neverArray; result.hasNoDefaultLib = false; result.pragmas = emptyMap; return result; @@ -1455,7 +1471,7 @@ namespace ts { } // Ignore strict mode flag because we will report an error in type checker instead. - function isIdentifier(): boolean { + function isIdentifierNameSpaceLocal(): boolean { if (token() === SyntaxKind.Identifier) { return true; } @@ -1665,7 +1681,7 @@ namespace ts { } function parseIdentifier(diagnosticMessage?: DiagnosticMessage, privateIdentifierDiagnosticMessage?: DiagnosticMessage): Identifier { - return createIdentifier(isIdentifier(), diagnosticMessage, privateIdentifierDiagnosticMessage); + return createIdentifier(isIdentifierNameSpaceLocal(), diagnosticMessage, privateIdentifierDiagnosticMessage); } function parseIdentifierName(diagnosticMessage?: DiagnosticMessage): Identifier { @@ -1856,14 +1872,14 @@ namespace ts { // If we're in error recovery we tighten up what we're willing to match. // That way we don't treat something like "this" as a valid heritage clause // element during recovery. - return isIdentifier() && !isHeritageClauseExtendsOrImplementsKeyword(); + return isIdentifierNameSpaceLocal() && !isHeritageClauseExtendsOrImplementsKeyword(); } case ParsingContext.VariableDeclarations: return isBindingIdentifierOrPrivateIdentifierOrPattern(); case ParsingContext.ArrayBindingElements: return token() === SyntaxKind.CommaToken || token() === SyntaxKind.DotDotDotToken || isBindingIdentifierOrPrivateIdentifierOrPattern(); case ParsingContext.TypeParameters: - return isIdentifier(); + return isIdentifierNameSpaceLocal(); case ParsingContext.ArrayLiteralMembers: switch (token()) { case SyntaxKind.CommaToken: @@ -1913,7 +1929,7 @@ namespace ts { function nextTokenIsIdentifier() { nextToken(); - return isIdentifier(); + return isIdentifierNameSpaceLocal(); } function nextTokenIsIdentifierOrKeyword() { @@ -3073,11 +3089,11 @@ namespace ts { if (isModifierKind(token())) { nextToken(); - if (isIdentifier()) { + if (isIdentifierNameSpaceLocal()) { return true; } } - else if (!isIdentifier()) { + else if (!isIdentifierNameSpaceLocal()) { return false; } else { @@ -3494,7 +3510,7 @@ namespace ts { // or something that starts a type. We don't want to consider things like '(1)' a type. return !inStartOfParameter && lookAhead(isStartOfParenthesizedOrFunctionType); default: - return isIdentifier(); + return isIdentifierNameSpaceLocal(); } } @@ -3614,7 +3630,7 @@ namespace ts { // Skip modifiers parseModifiers(); } - if (isIdentifier() || token() === SyntaxKind.ThisKeyword) { + if (isIdentifierNameSpaceLocal() || token() === SyntaxKind.ThisKeyword) { nextToken(); return true; } @@ -3658,7 +3674,7 @@ namespace ts { function parseTypeOrTypePredicate(): TypeNode { const pos = getNodePos(); - const typePredicateVariable = isIdentifier() && tryParse(parseTypePredicatePrefix); + const typePredicateVariable = isIdentifierNameSpaceLocal() && tryParse(parseTypePredicatePrefix); const type = parseType(); if (typePredicateVariable) { return finishNode(factory.createTypePredicateNode(/*assertsModifier*/ undefined, typePredicateVariable, type), pos); @@ -3738,7 +3754,7 @@ namespace ts { case SyntaxKind.ImportKeyword: return lookAhead(nextTokenIsOpenParenOrLessThanOrDot); default: - return isIdentifier(); + return isIdentifierNameSpaceLocal(); } } @@ -3774,7 +3790,7 @@ namespace ts { return true; } - return isIdentifier(); + return isIdentifierNameSpaceLocal(); } } @@ -3911,7 +3927,7 @@ namespace ts { function nextTokenIsIdentifierOnSameLine() { nextToken(); - return !scanner.hasPrecedingLineBreak() && isIdentifier(); + return !scanner.hasPrecedingLineBreak() && isIdentifierNameSpaceLocal(); } function parseYieldExpression(): YieldExpression { @@ -4052,7 +4068,7 @@ namespace ts { // If we had "(" followed by something that's not an identifier, // then this definitely doesn't look like a lambda. "this" is not // valid, but we want to parse it and then give a semantic error. - if (!isIdentifier() && second !== SyntaxKind.ThisKeyword) { + if (!isIdentifierNameSpaceLocal() && second !== SyntaxKind.ThisKeyword) { return Tristate.False; } @@ -4083,7 +4099,7 @@ namespace ts { // If we have "<" not followed by an identifier, // then this definitely is not an arrow function. - if (!isIdentifier()) { + if (!isIdentifierNameSpaceLocal()) { return Tristate.False; } @@ -5304,7 +5320,7 @@ namespace ts { } const asteriskToken = parseOptionalToken(SyntaxKind.AsteriskToken); - const tokenIsIdentifier = isIdentifier(); + const tokenIsIdentifier = isIdentifierNameSpaceLocal(); const name = parsePropertyName(); // Disallowing of optional property assignments and definite assignment assertion happens in the grammar checker. @@ -5720,7 +5736,7 @@ namespace ts { let node: ExpressionStatement | LabeledStatement; const hasParen = token() === SyntaxKind.OpenParenToken; const expression = allowInAnd(parseExpression); - if (ts.isIdentifier(expression) && parseOptional(SyntaxKind.ColonToken)) { + if (isIdentifier(expression) && parseOptional(SyntaxKind.ColonToken)) { node = factory.createLabeledStatement(expression, parseStatement()); } else { @@ -5901,7 +5917,7 @@ namespace ts { function nextTokenIsIdentifierOrStartOfDestructuring() { nextToken(); - return isIdentifier() || token() === SyntaxKind.OpenBraceToken || token() === SyntaxKind.OpenBracketToken; + return isIdentifierNameSpaceLocal() || token() === SyntaxKind.OpenBraceToken || token() === SyntaxKind.OpenBracketToken; } function isLetDeclaration() { @@ -6074,7 +6090,7 @@ namespace ts { function nextTokenIsIdentifierOrStringLiteralOnSameLine() { nextToken(); - return !scanner.hasPrecedingLineBreak() && (isIdentifier() || token() === SyntaxKind.StringLiteral); + return !scanner.hasPrecedingLineBreak() && (isIdentifierNameSpaceLocal() || token() === SyntaxKind.StringLiteral); } function parseFunctionBlockOrSemicolon(flags: SignatureFlags, diagnosticMessage?: DiagnosticMessage): Block | undefined { @@ -6763,7 +6779,7 @@ namespace ts { return parseModuleOrNamespaceDeclaration(pos, hasJSDoc, decorators, modifiers, flags); } - function isExternalModuleReference() { + function isExternalModuleReferenceNameSpaceLocal() { return token() === SyntaxKind.RequireKeyword && lookAhead(nextTokenIsOpenParen); } @@ -6795,17 +6811,17 @@ namespace ts { // We don't parse the identifier here in await context, instead we will report a grammar error in the checker. let identifier: Identifier | undefined; - if (isIdentifier()) { + if (isIdentifierNameSpaceLocal()) { identifier = parseIdentifier(); } let isTypeOnly = false; if (token() !== SyntaxKind.FromKeyword && identifier?.escapedText === "type" && - (isIdentifier() || tokenAfterImportDefinitelyProducesImportDeclaration()) + (isIdentifierNameSpaceLocal() || tokenAfterImportDefinitelyProducesImportDeclaration()) ) { isTypeOnly = true; - identifier = isIdentifier() ? parseIdentifier() : undefined; + identifier = isIdentifierNameSpaceLocal() ? parseIdentifier() : undefined; } if (identifier && !tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration()) { @@ -6872,7 +6888,7 @@ namespace ts { } function parseModuleReference() { - return isExternalModuleReference() + return isExternalModuleReferenceNameSpaceLocal() ? parseExternalModuleReference() : parseEntityName(/*allowReservedWords*/ false); } @@ -6945,7 +6961,7 @@ namespace ts { // ExportSpecifier: // IdentifierName // IdentifierName as IdentifierName - let checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier(); + let checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifierNameSpaceLocal(); let checkIdentifierStart = scanner.getTokenPos(); let checkIdentifierEnd = scanner.getTextPos(); const identifierName = parseIdentifierName(); @@ -6954,7 +6970,7 @@ namespace ts { if (token() === SyntaxKind.AsKeyword) { propertyName = identifierName; parseExpected(SyntaxKind.AsKeyword); - checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier(); + checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifierNameSpaceLocal(); checkIdentifierStart = scanner.getTokenPos(); checkIdentifierEnd = scanner.getTextPos(); name = parseIdentifierName(); @@ -7032,7 +7048,7 @@ namespace ts { function isAnExternalModuleIndicatorNode(node: Node) { return hasModifierOfKind(node, SyntaxKind.ExportKeyword) - || isImportEqualsDeclaration(node) && ts.isExternalModuleReference(node.moduleReference) + || isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference) || isImportDeclaration(node) || isExportAssignment(node) || isExportDeclaration(node) ? node : undefined; @@ -7569,7 +7585,7 @@ namespace ts { case SyntaxKind.ArrayType: return isObjectOrObjectArrayTypeReference((node as ArrayTypeNode).elementType); default: - return isTypeReferenceNode(node) && ts.isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments; + return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments; } } @@ -7865,8 +7881,8 @@ namespace ts { } function escapedTextsEqual(a: EntityName, b: EntityName): boolean { - while (!ts.isIdentifier(a) || !ts.isIdentifier(b)) { - if (!ts.isIdentifier(a) && !ts.isIdentifier(b) && a.right.escapedText === b.right.escapedText) { + while (!isIdentifier(a) || !isIdentifier(b)) { + if (!isIdentifier(a) && !isIdentifier(b) && a.right.escapedText === b.right.escapedText) { a = a.left; b = b.left; } @@ -7891,7 +7907,7 @@ namespace ts { const child = tryParseChildTag(target, indent); if (child && (child.kind === SyntaxKind.JSDocParameterTag || child.kind === SyntaxKind.JSDocPropertyTag) && target !== PropertyLikeParse.CallbackParameter && - name && (ts.isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { + name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { return false; } return child; @@ -8673,7 +8689,7 @@ namespace ts { export function processCommentPragmas(context: PragmaContext, sourceText: string): void { const pragmas: PragmaPseudoMapEntry[] = []; - for (const range of getLeadingCommentRanges(sourceText, 0) || emptyArray) { + for (const range of getLeadingCommentRanges(sourceText, 0) || neverArray) { const comment = sourceText.substring(range.pos, range.end); extractPragmas(pragmas, range, comment); } @@ -8892,4 +8908,4 @@ namespace ts { return (lhs).name.escapedText === (rhs).name.escapedText && tagNamesAreEquivalent((lhs).expression as JsxTagNameExpression, (rhs).expression as JsxTagNameExpression); } -} + diff --git a/src/compiler/path.ts b/src/compiler/path.ts index f377b411b244a..c11608b97d963 100644 --- a/src/compiler/path.ts +++ b/src/compiler/path.ts @@ -1,5 +1,10 @@ /* @internal */ -namespace ts { + +import { CharacterCodes, Path } from "./types"; +import { stringContains, endsWith, startsWith, equateStringsCaseInsensitive, equateStringsCaseSensitive, lastOrUndefined, some, compareStringsCaseInsensitive, compareValues, compareStringsCaseSensitive, getStringComparer, GetCanonicalFileName, identity } from "./core"; +import { Comparison } from "./corePublic"; +import { Debug } from "./debug"; + /** * Internally, we represent paths as strings with '/' as the directory separator. * When we make system calls (eg: LanguageServiceHost.getDirectory()), @@ -857,4 +862,4 @@ namespace ts { export function isNodeModulesDirectory(dirPath: Path) { return endsWith(dirPath, "/node_modules"); } -} + diff --git a/src/compiler/perfLogger.ts b/src/compiler/perfLogger.ts index 8ed8feac90c4c..9ede2158808f8 100644 --- a/src/compiler/perfLogger.ts +++ b/src/compiler/perfLogger.ts @@ -1,5 +1,7 @@ /* @internal */ -namespace ts { + +import { noop } from "./core"; + type PerfLogger = typeof import("@microsoft/typescript-etw"); const nullLogger: PerfLogger = { logEvent: noop, @@ -38,4 +40,4 @@ namespace ts { /** Performance logger that will generate ETW events if possible - check for `logEvent` member, as `etwModule` will be `{}` when browserified */ export const perfLogger: PerfLogger = etwModule && etwModule.logEvent ? etwModule : nullLogger; -} + diff --git a/src/compiler/performance.ts b/src/compiler/performance.ts index 3da794c638b16..c153fc23d9f1d 100644 --- a/src/compiler/performance.ts +++ b/src/compiler/performance.ts @@ -1,9 +1,13 @@ /*@internal*/ /** Performance measurements for the compiler. */ -namespace ts.performance { + +import { Debug } from "./debug"; +import { noop, createMap } from "./core"; +import { timestamp } from "./performanceTimestamp"; +export namespace performance { declare const onProfilerEvent: { (markName: string): void; profiler: boolean; }; - // NOTE: cannot use ts.noop as core.ts loads after this + // NOTE: cannot use noop as core.ts loads after this const profilerEvent: (markName: string) => void = typeof onProfilerEvent === "function" && onProfilerEvent.profiler === true ? onProfilerEvent : () => { /*empty*/ }; let enabled = false; diff --git a/src/compiler/performanceTimestamp.ts b/src/compiler/performanceTimestamp.ts index 044e7a65c0992..4b97794763cf1 100644 --- a/src/compiler/performanceTimestamp.ts +++ b/src/compiler/performanceTimestamp.ts @@ -1,6 +1,6 @@ /*@internal*/ -namespace ts { + declare const performance: { now?(): number } | undefined; /** Gets a timestamp with (at least) ms resolution */ export const timestamp = typeof performance !== "undefined" && performance.now ? () => performance.now!() : Date.now ? Date.now : () => +(new Date()); -} \ No newline at end of file + diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 8cee3aae854d7..c212a49f56e2a 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1,4 +1,30 @@ -namespace ts { +import { forEachAncestorDirectory, combinePaths, getDirectoryPath, isRootedDiskPath, normalizePath, getNormalizedPathComponents, getPathFromPathComponents, fileExtensionIs, convertToRelativePath, containsPath, getBaseFileName, toPath, getNormalizedAbsolutePath, normalizeSlashes, directorySeparator, hasExtension, getNormalizedAbsolutePathWithoutRoot, getRootLength, fileExtensionIsOneOf, comparePaths, ensureTrailingDirectorySeparator } from "./path"; +import { GetCanonicalFileName, forEach, createMap, createGetCanonicalFileName, memoize, maybeBind, addRange, neverArray, padLeft, arrayIsEqualTo, contains, MultiMap, returnFalse, clone, createMultiMap, arrayFrom, mapDefinedIterator, stableSort, compareValues, removeSuffix, removePrefix, filter, zipToMap, map, toFileNameLowerCase, equateStringsCaseSensitive, equateStringsCaseInsensitive, some, flatMap, flatten, concatenate, noop, append, find, stringContains, getSpellingSuggestion, identity, mapDefined, hasProperty, elementAt, firstDefined, startsWith, firstDefinedIterator, returnUndefined } from "./core"; +import { CompilerOptions, CompilerHost, ScriptTarget, SourceFile, WriteFileCallback, Path, Extension, Program, CancellationToken, Diagnostic, diagnosticCategoryName, DiagnosticCategory, DiagnosticMessageChain, ResolvedProjectReference, TextRange, RefFileKind, HasInvalidatedResolution, HasChangedAutomaticTypeDirectiveNames, ProjectReference, ParsedCommandLine, CreateProgramOptions, TypeChecker, UnderscoreEscapedMap, RefFile, DiagnosticWithLocation, ResolvedTypeReferenceDirective, ObjectLiteralExpression, ResolvedModuleFull, SourceOfProjectReferenceRedirect, StructureIsReused, ModuleKind, ResolvedModuleWithFailedLookupLocations, NodeFlags, EmitHost, EmitResult, CustomTransformers, OperationCanceledException, ScriptKind, CommentDirective, CommentDirectivesMap, Node, SyntaxKind, ParameterDeclaration, PropertyDeclaration, MethodDeclaration, FunctionLikeDeclaration, VariableDeclaration, ImportClause, ExportDeclaration, ExportAssignment, HeritageClause, AsExpression, NodeArray, DeclarationWithTypeParameterChildren, Modifier, NodeWithTypeArguments, DiagnosticMessage, FileReference, StringLiteralLike, Identifier, StringLiteral, EmitFlags, Statement, ModifierFlags, ModuleBlock, ModuleDeclaration, UnparsedSource, PackageId, JsonSourceFile, ModuleResolutionKind, PropertyAssignment, InputFiles, ResolvedConfigFileName } from "./types"; +import { sys, missingFileModifiedTime } from "./sys"; +import { performance } from "perf_hooks"; +import { createSourceFile, isDeclarationFileName, forEachChildRecursively, isExternalModule, forEachChild, parseIsolatedEntityName } from "./parser"; +import { writeFileEnsuringDirectories, isWatchSet, getNewLineCharacter, getEmitDeclarations, compareDataObjects, projectReferenceIsEqualTo, isJsonEqual, getCompilerOptionValue, createDiagnosticCollection, getSupportedExtensions, getSuppoertedExtensionsWithJsonIfResolveJsonModule, extensionFromPath, outFile, getEmitModuleKind, changeExtension, sourceFileMayBeEmitted, createUnderscoreEscapedMap, copyEntries, getResolvedModule, changesAffectModuleResolution, hasChangesInResolutions, moduleResolutionIsEqualTo, typeDirectiveIsEqualTo, skipTypeChecking, isSourceFileJS, isCheckJsEnabledForFile, createDiagnosticForRange, createCommentDirectivesMap, createFileDiagnostic, createDiagnosticForNodeInSourceFile, externalHelpersModuleNameText, setParent, isAnyImportOrReExport, getExternalModuleName, isAmbientModule, hasSyntacticModifier, getTextOfIdentifierOrLiteral, isRequireCall, isImportCall, isLiteralImportTypeNode, hasJSFileExtension, packageIdToString, setResolvedTypeReferenceDirective, createCompilerDiagnostic, setResolvedModule, resolutionExtensionIsTSOrJson, isInJSFile, getStrictOptionValue, isIncrementalCompilation, hasZeroOrOneAsteriskCharacter, getErrorSpanForNode, getEmitModuleResolutionKind, hasJsonModuleEmitEnabled, chainDiagnosticMessages, createCompilerDiagnosticFromMessageChain, getPropertyAssignment, getTsConfigPropArray, getTsConfigObjectLiteralExpression, removeFileExtension, supportedJSExtensions, discoverProbableSymlinks, forEachKey } from "./utilities"; +import { getDefaultLibFileName, sortAndDeduplicateDiagnostics, isExternalModuleNameRelative, isStringLiteralLike, hasJSDocNodes } from "./utilitiesPublic"; +import { isBuildInfoFile, getOutputDeclarationFileName, emitFiles, notImplementedResolver, forEachEmittedFile, getTsBuildInfoEmitOutputFilePath, getOutputPathsForBundle } from "./emitter"; +import { BuilderProgram } from "./builderPublic"; +import { getLineAndCharacterOfPosition, getPositionOfLineAndCharacter, getLineStarts, computeLineAndCharacterOfPosition, tokenToString, skipTrivia, isIdentifierText } from "./scanner"; +import { Debug } from "./debug"; +import { isString, isArray } from "util"; +import { sourceFileAffectingCompilerOptions, libs, libMap, parseJsonSourceFileConfigFileContent, DiagnosticReporter, ParseConfigFileHost } from "./commandLineParser"; +import { ModuleResolutionCache, createModuleResolutionCache, resolveModuleName, resolveTypeReferenceDirective, getAutomaticTypeDirectiveNames, resolveModuleNameFromCache, isTraceEnabled, nodeModulesPathPart } from "./moduleNameResolver"; +import { trace } from "console"; +import { noTransformers, getTransformers } from "./transformer"; +import { createTypeChecker } from "./checker"; +import { getDeclarationDiagnostics } from "./transformers/declarations"; +import { SortedReadonlyArray, Comparison } from "./corePublic"; +import { factory, createInputFiles } from "./factory/nodeFactory"; +import { addEmitFlags } from "./factory/emitNode"; +import { isStringLiteral, isModuleDeclaration, isObjectLiteralExpression, isArrayLiteralExpression } from "./factory/nodeTests"; +import { ProgramToEmitFilesAndReportErrors } from "./watch"; +import { DirectoryStructureHost } from "./watchUtilities"; +import { resolveConfigFileProjectName } from "./tsbuild"; + export function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName = "tsconfig.json"): string | undefined { return forEachAncestorDirectory(searchPath, ancestor => { const fileName = combinePaths(ancestor, configName); @@ -322,7 +348,7 @@ namespace ts { diagnostics = addRange(diagnostics, program.getDeclarationDiagnostics(sourceFile, cancellationToken)); } - return sortAndDeduplicateDiagnostics(diagnostics || emptyArray); + return sortAndDeduplicateDiagnostics(diagnostics || neverArray); } export interface FormatDiagnosticsHost { @@ -537,7 +563,7 @@ namespace ts { allDiagnostics?: readonly T[]; } - interface RefFile extends TextRange { + interface RefFileNameSpaceLocal extends TextRange { kind: RefFileKind; index: number; file: SourceFile; @@ -709,7 +735,7 @@ namespace ts { let classifiableNames: UnderscoreEscapedMap; const ambientModuleNameToUnmodifiedFileName = createMap(); // Todo:: Use this to report why file was included in --extendedDiagnostics - let refFileMap: MultiMap | undefined; + let refFileMap: MultiMap | undefined; const cachedBindAndCheckDiagnosticsForFile: DiagnosticCache = {}; const cachedDeclarationDiagnosticsForFile: DiagnosticCache = {}; @@ -812,7 +838,7 @@ namespace ts { const { onProgramCreateComplete, fileExists } = updateHostForUseSourceOfProjectReferenceRedirect({ compilerHost: host, useSourceOfProjectReferenceRedirect, - toPath, + toPath: toPathNameSpaceLocal, getResolvedProjectReferences, getSourceOfProjectReferenceRedirect, forEachResolvedProjectReference @@ -861,7 +887,7 @@ namespace ts { forEach(rootNames, name => processRootFile(name, /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false)); // load type declarations specified via 'types' argument or implicitly from types/ and node_modules/@types folders - const typeReferences: string[] = rootNames.length ? getAutomaticTypeDirectiveNames(options, host) : emptyArray; + const typeReferences: string[] = rootNames.length ? getAutomaticTypeDirectiveNames(options, host) : neverArray; if (typeReferences.length) { // This containingFilename needs to match with the one used in managed-side @@ -935,7 +961,7 @@ namespace ts { getGlobalDiagnostics, getSemanticDiagnostics, getSuggestionDiagnostics, - getDeclarationDiagnostics, + getDeclarationDiagnostics: getDeclarationDiagnosticsNameSpaceLocal, getBindAndCheckDiagnostics, getProgramDiagnostics, getTypeChecker, @@ -1017,8 +1043,8 @@ namespace ts { return moduleResolutionCache && resolveModuleNameFromCache(moduleName, containingFile, moduleResolutionCache); } - function toPath(fileName: string): Path { - return ts.toPath(fileName, currentDirectory, getCanonicalFileName); + function toPathNameSpaceLocal(fileName: string): Path { + return toPath(fileName, currentDirectory, getCanonicalFileName); } function getCommonSourceDirectory() { @@ -1146,7 +1172,7 @@ namespace ts { const resolutions = unknownModuleNames && unknownModuleNames.length ? resolveModuleNamesWorker(unknownModuleNames, containingFile, reusedNames, getResolvedProjectReferenceToRedirect(file.originalFileName)) - : emptyArray; + : neverArray; // Combine results of resolutions and predicted results if (!result) { @@ -1489,7 +1515,7 @@ namespace ts { readFile: f => host.readFile(f), fileExists: f => { // Use local caches - const path = toPath(f); + const path = toPathNameSpaceLocal(f); if (getSourceFileByPath(path)) return true; if (contains(missingFilePaths, path)) return false; // Before falling back to the host @@ -1532,7 +1558,7 @@ namespace ts { projectReferences, (_ref, index) => resolvedProjectReferences![index]?.commandLine, fileName => { - const path = toPath(fileName); + const path = toPathNameSpaceLocal(fileName); const sourceFile = getSourceFileByPath(path); return sourceFile ? sourceFile.text : filesByName.has(path) ? undefined : host.readFile(path); } @@ -1580,7 +1606,7 @@ namespace ts { } function isEmitBlocked(emitFileName: string): boolean { - return hasEmitBlockingDiagnostics.has(toPath(emitFileName)); + return hasEmitBlockingDiagnostics.has(toPathNameSpaceLocal(emitFileName)); } function emitWorker(program: Program, sourceFile: SourceFile | undefined, writeFileCallback: WriteFileCallback | undefined, cancellationToken: CancellationToken | undefined, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers, forceDtsEmit?: boolean): EmitResult { @@ -1617,7 +1643,7 @@ namespace ts { } function getSourceFile(fileName: string): SourceFile | undefined { - return getSourceFileByPath(toPath(fileName)); + return getSourceFileByPath(toPathNameSpaceLocal(fileName)); } function getSourceFileByPath(path: Path): SourceFile | undefined { @@ -1653,7 +1679,7 @@ namespace ts { function getProgramDiagnostics(sourceFile: SourceFile): readonly Diagnostic[] { if (skipTypeChecking(sourceFile, options, program)) { - return emptyArray; + return neverArray; } const fileProcessingDiagnosticsInFile = fileProcessingDiagnostics.getDiagnostics(sourceFile.fileName); @@ -1671,7 +1697,7 @@ namespace ts { return getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, flatDiagnostics).diagnostics; } - function getDeclarationDiagnostics(sourceFile?: SourceFile, cancellationToken?: CancellationToken): readonly DiagnosticWithLocation[] { + function getDeclarationDiagnosticsNameSpaceLocal(sourceFile?: SourceFile, cancellationToken?: CancellationToken): readonly DiagnosticWithLocation[] { const options = program.getCompilerOptions(); // collect diagnostics from the program only once if either no source file was specified or out/outFile is set (bundled emit) if (!sourceFile || outFile(options)) { @@ -1731,7 +1757,7 @@ namespace ts { function getBindAndCheckDiagnosticsForFileNoCache(sourceFile: SourceFile, cancellationToken: CancellationToken | undefined): readonly Diagnostic[] { return runWithCancellationToken(() => { if (skipTypeChecking(sourceFile, options, program)) { - return emptyArray; + return neverArray; } const typeChecker = getDiagnosticsProducingTypeChecker(); @@ -1743,8 +1769,8 @@ namespace ts { // By default, only type-check .ts, .tsx, 'Deferred' and 'External' files (external files are added by plugins) const includeBindAndCheckDiagnostics = !isTsNoCheck && (sourceFile.scriptKind === ScriptKind.TS || sourceFile.scriptKind === ScriptKind.TSX || sourceFile.scriptKind === ScriptKind.External || isCheckJs || sourceFile.scriptKind === ScriptKind.Deferred); - const bindDiagnostics: readonly Diagnostic[] = includeBindAndCheckDiagnostics ? sourceFile.bindDiagnostics : emptyArray; - const checkDiagnostics = includeBindAndCheckDiagnostics ? typeChecker.getDiagnostics(sourceFile, cancellationToken) : emptyArray; + const bindDiagnostics: readonly Diagnostic[] = includeBindAndCheckDiagnostics ? sourceFile.bindDiagnostics : neverArray; + const checkDiagnostics = includeBindAndCheckDiagnostics ? typeChecker.getDiagnostics(sourceFile, cancellationToken) : neverArray; return getMergedBindAndCheckDiagnostics(sourceFile, bindDiagnostics, checkDiagnostics, isCheckJs ? sourceFile.jsDocDiagnostics : undefined); }); @@ -2016,7 +2042,7 @@ namespace ts { return runWithCancellationToken(() => { const resolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile, cancellationToken); // Don't actually write any files since we're just getting diagnostics. - return ts.getDeclarationDiagnostics(getEmitHost(noop), resolver, sourceFile) || emptyArray; + return getDeclarationDiagnostics(getEmitHost(noop), resolver, sourceFile) || neverArray; }); } @@ -2059,7 +2085,7 @@ namespace ts { } function getOptionsDiagnosticsOfConfigFile() { - if (!options.configFile) { return emptyArray; } + if (!options.configFile) { return neverArray; } let diagnostics = programDiagnostics.getDiagnostics(options.configFile.fileName); forEachResolvedProjectReference(resolvedRef => { if (resolvedRef) { @@ -2070,11 +2096,11 @@ namespace ts { } function getGlobalDiagnostics(): SortedReadonlyArray { - return rootNames.length ? sortAndDeduplicateDiagnostics(getDiagnosticsProducingTypeChecker().getGlobalDiagnostics().slice()) : emptyArray as any as SortedReadonlyArray; + return rootNames.length ? sortAndDeduplicateDiagnostics(getDiagnosticsProducingTypeChecker().getGlobalDiagnostics().slice()) : neverArray as any as SortedReadonlyArray; } function getConfigFileParsingDiagnostics(): readonly Diagnostic[] { - return configFileParsingDiagnostics || emptyArray; + return configFileParsingDiagnostics || neverArray; } function processRootFile(fileName: string, isDefaultLib: boolean, ignoreNoDefaultLib: boolean) { @@ -2125,9 +2151,9 @@ namespace ts { collectDynamicImportOrRequireCalls(file); } - file.imports = imports || emptyArray; - file.moduleAugmentations = moduleAugmentations || emptyArray; - file.ambientModuleNames = ambientModules || emptyArray; + file.imports = imports || neverArray; + file.moduleAugmentations = moduleAugmentations || neverArray; + file.ambientModuleNames = ambientModules || neverArray; return; @@ -2219,7 +2245,7 @@ namespace ts { /** This should have similar behavior to 'processSourceFile' without diagnostics or mutation. */ function getSourceFileFromReference(referencingFile: SourceFile | UnparsedSource, ref: FileReference): SourceFile | undefined { - return getSourceFileFromReferenceWorker(resolveTripleslashReference(ref.fileName, referencingFile.fileName), fileName => filesByName.get(toPath(fileName)) || undefined); + return getSourceFileFromReferenceWorker(resolveTripleslashReference(ref.fileName, referencingFile.fileName), fileName => filesByName.get(toPathNameSpaceLocal(fileName)) || undefined); } function getSourceFileFromReferenceWorker( @@ -2275,10 +2301,10 @@ namespace ts { } /** This has side effects through `findSourceFile`. */ - function processSourceFile(fileName: string, isDefaultLib: boolean, ignoreNoDefaultLib: boolean, packageId: PackageId | undefined, refFile?: RefFile): void { + function processSourceFile(fileName: string, isDefaultLib: boolean, ignoreNoDefaultLib: boolean, packageId: PackageId | undefined, refFile?: RefFileNameSpaceLocal): void { getSourceFileFromReferenceWorker( fileName, - fileName => findSourceFile(fileName, toPath(fileName), isDefaultLib, ignoreNoDefaultLib, refFile, packageId), // TODO: GH#18217 + fileName => findSourceFile(fileName, toPathNameSpaceLocal(fileName), isDefaultLib, ignoreNoDefaultLib, refFile, packageId), // TODO: GH#18217 (diagnostic, ...args) => fileProcessingDiagnostics.add( createRefFileDiagnostic(refFile, diagnostic, ...args) ), @@ -2286,7 +2312,7 @@ namespace ts { ); } - function reportFileNamesDifferOnlyInCasingError(fileName: string, existingFile: SourceFile, refFile: RefFile | undefined): void { + function reportFileNamesDifferOnlyInCasingError(fileName: string, existingFile: SourceFile, refFile: RefFileNameSpaceLocal | undefined): void { const refs = !refFile ? refFileMap && refFileMap.get(existingFile.path) : undefined; const refToReportErrorOn = refs && find(refs, ref => ref.referencedFileName === existingFile.fileName); fileProcessingDiagnostics.add(refToReportErrorOn ? @@ -2327,7 +2353,7 @@ namespace ts { } // Get source file from normalized fileName - function findSourceFile(fileName: string, path: Path, isDefaultLib: boolean, ignoreNoDefaultLib: boolean, refFile: RefFile | undefined, packageId: PackageId | undefined): SourceFile | undefined { + function findSourceFile(fileName: string, path: Path, isDefaultLib: boolean, ignoreNoDefaultLib: boolean, refFile: RefFileNameSpaceLocal | undefined, packageId: PackageId | undefined): SourceFile | undefined { if (useSourceOfProjectReferenceRedirect) { let source = getSourceOfProjectReferenceRedirect(fileName); // If preserveSymlinks is true, module resolution wont jump the symlink @@ -2344,7 +2370,7 @@ namespace ts { } if (source) { const file = isString(source) ? - findSourceFile(source, toPath(source), isDefaultLib, ignoreNoDefaultLib, refFile, packageId) : + findSourceFile(source, toPathNameSpaceLocal(source), isDefaultLib, ignoreNoDefaultLib, refFile, packageId) : undefined; if (file) addFileToFilesByName(file, path, /*redirectedPath*/ undefined); return file; @@ -2358,7 +2384,7 @@ namespace ts { // NOTE: this only makes sense for case-insensitive file systems, and only on files which are not redirected if (file && options.forceConsistentCasingInFileNames) { const checkedName = file.fileName; - const isRedirect = toPath(checkedName) !== toPath(fileName); + const isRedirect = toPathNameSpaceLocal(checkedName) !== toPathNameSpaceLocal(fileName); if (isRedirect) { fileName = getProjectReferenceRedirect(fileName) || fileName; } @@ -2411,7 +2437,7 @@ namespace ts { // end up trying to add it to the program *again* because we were tracking it via its // original (un-redirected) name. So we have to map both the original path and the redirected path // to the source file we're about to find/create - redirectedPath = toPath(redirect); + redirectedPath = toPathNameSpaceLocal(redirect); } } @@ -2434,7 +2460,7 @@ namespace ts { if (fileFromPackageId) { // Some other SourceFile already exists with this package name and version. // Instead of creating a duplicate, just redirect to the existing one. - const dupFile = createRedirectSourceFile(fileFromPackageId, file!, fileName, path, toPath(fileName), originalFileName); // TODO: GH#18217 + const dupFile = createRedirectSourceFile(fileFromPackageId, file!, fileName, path, toPathNameSpaceLocal(fileName), originalFileName); // TODO: GH#18217 redirectTargetsMap.add(fileFromPackageId.path, fileName); addFileToFilesByName(dupFile, path, redirectedPath); sourceFileToPackageName.set(path, packageId.name); @@ -2453,7 +2479,7 @@ namespace ts { sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0); file.fileName = fileName; // Ensure that source file has same name as what we were looking for file.path = path; - file.resolvedPath = toPath(fileName); + file.resolvedPath = toPathNameSpaceLocal(fileName); file.originalFileName = originalFileName; addFileToRefFileMap(fileName, file, refFile); @@ -2493,7 +2519,7 @@ namespace ts { return file; } - function addFileToRefFileMap(referencedFileName: string, file: SourceFile | undefined, refFile: RefFile | undefined) { + function addFileToRefFileMap(referencedFileName: string, file: SourceFile | undefined, refFile: RefFileNameSpaceLocal | undefined) { if (refFile && file) { (refFileMap || (refFileMap = createMultiMap())).add(file.path, { referencedFileName, @@ -2547,14 +2573,14 @@ namespace ts { forEachResolvedProjectReference((referencedProject, referenceProjectPath) => { // not input file from the referenced project, ignore if (referencedProject && - toPath(options.configFilePath!) !== referenceProjectPath) { + toPathNameSpaceLocal(options.configFilePath!) !== referenceProjectPath) { referencedProject.commandLine.fileNames.forEach(f => - mapFromFileToProjectReferenceRedirects!.set(toPath(f), referenceProjectPath)); + mapFromFileToProjectReferenceRedirects!.set(toPathNameSpaceLocal(f), referenceProjectPath)); } }); } - const referencedProjectPath = mapFromFileToProjectReferenceRedirects.get(toPath(fileName)); + const referencedProjectPath = mapFromFileToProjectReferenceRedirects.get(toPathNameSpaceLocal(fileName)); return referencedProjectPath && getResolvedProjectReferenceByPath(referencedProjectPath); } @@ -2563,7 +2589,7 @@ namespace ts { ): T | undefined { return forEachProjectReference(projectReferences, resolvedProjectReferences, (resolvedRef, index, parent) => { const ref = (parent ? parent.commandLine.projectReferences : projectReferences)![index]; - const resolvedRefPath = toPath(resolveProjectReferencePath(ref)); + const resolvedRefPath = toPathNameSpaceLocal(resolveProjectReferencePath(ref)); return cb(resolvedRef, resolvedRefPath); }); } @@ -2578,20 +2604,20 @@ namespace ts { if (out) { // Dont know which source file it means so return true? const outputDts = changeExtension(out, Extension.Dts); - mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), true); + mapFromToProjectReferenceRedirectSource!.set(toPathNameSpaceLocal(outputDts), true); } else { forEach(resolvedRef.commandLine.fileNames, fileName => { if (!fileExtensionIs(fileName, Extension.Dts) && !fileExtensionIs(fileName, Extension.Json)) { const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, host.useCaseSensitiveFileNames()); - mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), fileName); + mapFromToProjectReferenceRedirectSource!.set(toPathNameSpaceLocal(outputDts), fileName); } }); } } }); } - return mapFromToProjectReferenceRedirectSource.get(toPath(file)); + return mapFromToProjectReferenceRedirectSource.get(toPathNameSpaceLocal(file)); } function isSourceOfProjectReferenceRedirect(fileName: string) { @@ -2700,7 +2726,7 @@ namespace ts { function processTypeReferenceDirective( typeReferenceDirective: string, resolvedTypeReferenceDirective?: ResolvedTypeReferenceDirective, - refFile?: RefFile + refFile?: RefFileNameSpaceLocal ): void { // If we already found this library as a primary reference - nothing to do @@ -2795,7 +2821,7 @@ namespace ts { }); } - function createRefFileDiagnostic(refFile: RefFile | undefined, message: DiagnosticMessage, ...args: any[]): Diagnostic { + function createRefFileDiagnostic(refFile: RefFileNameSpaceLocal | undefined, message: DiagnosticMessage, ...args: any[]): Diagnostic { if (!refFile) { return createCompilerDiagnostic(message, ...args); } @@ -2852,7 +2878,7 @@ namespace ts { modulesWithElidedImports.set(file.path, true); } else if (shouldAddFile) { - const path = toPath(resolvedFileName); + const path = toPathNameSpaceLocal(resolvedFileName); const pos = skipTrivia(file.text, file.imports[i].pos); findSourceFile( resolvedFileName, @@ -2895,7 +2921,7 @@ namespace ts { if (!sourceFile.isDeclarationFile) { const absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory)); if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) { - if (!rootPaths) rootPaths = new Set(rootNames.map(toPath)); + if (!rootPaths) rootPaths = new Set(rootNames.map(toPathNameSpaceLocal)); addProgramDiagnosticAtRefPath( sourceFile, rootPaths, @@ -2918,7 +2944,7 @@ namespace ts { // The actual filename (i.e. add "/tsconfig.json" if necessary) const refPath = resolveProjectReferencePath(ref); - const sourceFilePath = toPath(refPath); + const sourceFilePath = toPathNameSpaceLocal(refPath); const fromCache = projectReferenceRedirects.get(sourceFilePath); if (fromCache !== undefined) { return fromCache || undefined; @@ -3012,7 +3038,7 @@ namespace ts { // List of collected files is complete; validate exhautiveness if this is a project with a file list if (options.composite) { - const rootPaths = new Set(rootNames.map(toPath)); + const rootPaths = new Set(rootNames.map(toPathNameSpaceLocal)); for (const file of files) { // Ignore file that is not emitted if (sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) { @@ -3213,7 +3239,7 @@ namespace ts { // Verify that all the emit files are unique and don't overwrite input files function verifyEmitFilePath(emitFileName: string | undefined, emitFilesSeen: Set) { if (emitFileName) { - const emitFilePath = toPath(emitFileName); + const emitFilePath = toPathNameSpaceLocal(emitFileName); // Report error if the output overwrites input file if (filesByName.has(emitFilePath)) { let chain: DiagnosticMessageChain | undefined; @@ -3238,7 +3264,7 @@ namespace ts { } } - function createFileDiagnosticAtReference(refPathToReportErrorOn: ts.RefFile, message: DiagnosticMessage, ...args: (string | number | undefined)[]) { + function createFileDiagnosticAtReference(refPathToReportErrorOn: RefFile, message: DiagnosticMessage, ...args: (string | number | undefined)[]) { const refFile = Debug.checkDefined(getSourceFileByPath(refPathToReportErrorOn.file)); const { kind, index } = refPathToReportErrorOn; let pos: number, end: number; @@ -3301,7 +3327,7 @@ namespace ts { } 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); + hasEmitBlockingDiagnostics.set(toPathNameSpaceLocal(buildInfoPath), true); } }); } @@ -3351,7 +3377,7 @@ namespace ts { } function getOptionPathsSyntax(): PropertyAssignment[] { - return getOptionsSyntaxByName("paths") as PropertyAssignment[] || emptyArray; + return getOptionsSyntaxByName("paths") as PropertyAssignment[] || neverArray; } function createDiagnosticForOptionName(message: DiagnosticMessage, option1: string, option2?: string, option3?: string) { @@ -3408,7 +3434,7 @@ namespace ts { } function blockEmittingOfFile(emitFileName: string, diag: Diagnostic) { - hasEmitBlockingDiagnostics.set(toPath(emitFileName), true); + hasEmitBlockingDiagnostics.set(toPathNameSpaceLocal(emitFileName), true); programDiagnostics.add(diag); } @@ -3418,7 +3444,7 @@ namespace ts { } // If this is source file, its not emitted file - const filePath = toPath(file); + const filePath = toPathNameSpaceLocal(file); if (getSourceFileByPath(filePath)) { return false; } @@ -3641,7 +3667,7 @@ namespace ts { } /*@internal*/ - export const emitSkippedWithNoDiagnostics: EmitResult = { diagnostics: emptyArray, sourceMaps: undefined, emittedFiles: undefined, emitSkipped: true }; + export const emitSkippedWithNoDiagnostics: EmitResult = { diagnostics: neverArray, sourceMaps: undefined, emittedFiles: undefined, emitSkipped: true }; /*@internal*/ export function handleNoEmitOptions( @@ -3723,7 +3749,7 @@ namespace ts { /* @internal */ export function createPrependNodes(projectReferences: readonly ProjectReference[] | undefined, getCommandLine: (ref: ProjectReference, index: number) => ParsedCommandLine | undefined, readFile: (path: string) => string | undefined) { - if (!projectReferences) return emptyArray; + if (!projectReferences) return neverArray; let nodes: InputFiles[] | undefined; for (let i = 0; i < projectReferences.length; i++) { const ref = projectReferences[i]; @@ -3738,7 +3764,7 @@ namespace ts { (nodes || (nodes = [])).push(node); } } - return nodes || emptyArray; + return nodes || neverArray; } /** * Returns the target config filename of a project reference. @@ -3794,4 +3820,4 @@ namespace ts { } return res; } -} + diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index dc79fe0fabff9..7c7230719ce86 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -1,5 +1,16 @@ /*@internal*/ -namespace ts { + +import { Path, ResolvedProjectReference, ResolvedModuleFull, ResolvedTypeReferenceDirective, HasInvalidatedResolution, ResolvedModuleWithFailedLookupLocations, ResolvedTypeReferenceDirectiveWithFailedLookupLocations, ModuleResolutionHost, CompilerOptions, WatchDirectoryFlags, Program, CompilerHost, CharacterCodes, Extension } from "./types"; +import { GetCanonicalFileName, endsWith, removeSuffix, some, stringContains, createMultiMap, memoize, createMap, startsWith, returnTrue, contains, unorderedRemoveItem, arrayToMap } from "./core"; +import { DirectoryWatcherCallback, FileWatcher, ignoredPaths } from "./sys"; +import { CachedDirectoryStructureHost, closeFileWatcherOf, isEmittedFileOfProgram } from "./watchUtilities"; +import { getRootLength, directorySeparator, removeTrailingDirectorySeparator, getNormalizedAbsolutePath, getDirectoryPath, isRootedDiskPath, normalizePath, isNodeModulesDirectory, fileExtensionIsOneOf, fileExtensionIs } from "./path"; +import { CacheWithRedirects, createCacheWithRedirects, PerModuleNameCache, createModuleResolutionCacheWithMaps, resolveModuleName, loadModuleFromGlobalCache, resolveTypeReferenceDirective, pathContainsNodeModules, getEffectiveTypeRoots } from "./moduleNameResolver"; +import { clearMap, extensionIsTS, resolutionExtensionIsTSOrJson, closeFileWatcher, mutateMap } from "./utilities"; +import { isExternalModuleNameRelative } from "./utilitiesPublic"; +import { Debug } from "./debug"; +import { inferredTypesContainingFile } from "./program"; + /** This is the cache of module/typedirectives resolution that can be retained across program */ export interface ResolutionCache { startRecordingFilesWithChangedResolutions(): void; @@ -300,8 +311,8 @@ namespace ts { hasChangedAutomaticTypeDirectiveNames = false; } - function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, redirectedReference?: ResolvedProjectReference): CachedResolvedModuleWithFailedLookupLocations { - const primaryResult = ts.resolveModuleName(moduleName, containingFile, compilerOptions, host, moduleResolutionCache, redirectedReference); + function resolveModuleNameNameSpaceLocal(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, redirectedReference?: ResolvedProjectReference): CachedResolvedModuleWithFailedLookupLocations { + const primaryResult = resolveModuleName(moduleName, containingFile, compilerOptions, host, moduleResolutionCache, redirectedReference); // return result immediately only if global cache support is not enabled or if it is .ts, .tsx or .d.ts if (!resolutionHost.getGlobalCache) { return primaryResult; @@ -451,7 +462,7 @@ namespace ts { redirectedReference, cache: resolvedModuleNames, perDirectoryCacheWithRedirects: perDirectoryResolvedModuleNames, - loader: resolveModuleName, + loader: resolveModuleNameNameSpaceLocal, getResolutionWithResolvedFileName: getResolvedModule, shouldRetryResolution: resolution => !resolution.resolvedModule || !resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension), reusedNames, @@ -886,4 +897,4 @@ namespace ts { return dirPath === rootPath || canWatchDirectory(dirPath); } } -} + diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index ab2a37032ced2..f7c46d0e60621 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -1,4 +1,9 @@ -namespace ts { +import { DiagnosticMessage, SyntaxKind, TokenFlags, CommentDirective, JsxTokenSyntaxKind, JSDocSyntaxKind, ScriptTarget, LanguageVariant, KeywordSyntaxKind, CharacterCodes, SourceFileLike, LineAndCharacter, CommentKind, CommentRange, CommentDirectiveType } from "./types"; +import { MapLike } from "./corePublic"; +import { createMapFromTemplate, arraysEqual, binarySearch, identity, compareValues, append } from "./core"; +import { Debug } from "./debug"; +import { positionIsSynthesized, parsePseudoBigInt } from "./utilities"; + export type ErrorCallback = (message: DiagnosticMessage, length: number) => void; /* @internal */ @@ -2558,4 +2563,4 @@ namespace ts { export function utf16EncodeAsString(codePoint: number) { return utf16EncodeAsStringWorker(codePoint); } -} + diff --git a/src/compiler/semver.ts b/src/compiler/semver.ts index 1c77d24d07258..278a761c8baa7 100644 --- a/src/compiler/semver.ts +++ b/src/compiler/semver.ts @@ -1,5 +1,9 @@ /* @internal */ -namespace ts { + +import { Debug, Debug } from "./debug"; +import { neverArray, compareValues, some, compareStringsCaseSensitive, map } from "./core"; +import { Comparison } from "./corePublic"; + // https://semver.org/#spec-item-2 // > A normal version number MUST take the form X.Y.Z where X, Y, and Z are non-negative // > integers, and MUST NOT contain leading zeroes. X is the major version, Y is the minor @@ -54,8 +58,8 @@ namespace ts { this.major = major; this.minor = minor; this.patch = patch; - this.prerelease = prerelease ? prerelease.split(".") : emptyArray; - this.build = build ? build.split(".") : emptyArray; + this.prerelease = prerelease ? prerelease.split(".") : neverArray; + this.build = build ? build.split(".") : neverArray; } static tryParse(text: string) { @@ -171,7 +175,7 @@ namespace ts { private _alternatives: readonly (readonly Comparator[])[]; constructor(spec: string) { - this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : emptyArray; + this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : neverArray; } static tryParse(text: string) { @@ -388,4 +392,4 @@ namespace ts { function formatComparator(comparator: Comparator) { return `${comparator.operator}${comparator.operand}`; } -} \ No newline at end of file + diff --git a/src/compiler/sourcemap.ts b/src/compiler/sourcemap.ts index 3e70d335566bb..1468ee250f379 100644 --- a/src/compiler/sourcemap.ts +++ b/src/compiler/sourcemap.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts { + +import { EmitHost, SourceMapGenerator, RawSourceMap, LineAndCharacter, CharacterCodes, DocumentPositionMapperHost, DocumentPositionMapper, DocumentPosition } from "./types"; +import { performance } from "perf_hooks"; +import { createMap, every, compareValues, arrayFrom, neverArray, sortAndDeduplicate, some, binarySearchKey, identity } from "./core"; +import { getRelativePathToDirectoryOrUrl, combinePaths, getDirectoryPath, getNormalizedAbsolutePath } from "./path"; +import { Debug } from "./debug"; +import { isArray, isString } from "util"; +import { SortedReadonlyArray } from "./corePublic"; +import { getPositionOfLineAndCharacter } from "./scanner"; + export interface SourceMapGeneratorOptions { extendedDiagnostics?: boolean; } @@ -662,7 +671,7 @@ namespace ts { if (host.log) { host.log(`Encountered error while decoding sourcemap: ${decoder.error}`); } - decodedMappings = emptyArray; + decodedMappings = neverArray; } else { decodedMappings = mappings; @@ -740,4 +749,4 @@ namespace ts { getSourcePosition: identity, getGeneratedPosition: identity }; -} + diff --git a/src/compiler/symbolWalker.ts b/src/compiler/symbolWalker.ts index b03ef31db6e11..76e3145b1f987 100644 --- a/src/compiler/symbolWalker.ts +++ b/src/compiler/symbolWalker.ts @@ -1,5 +1,10 @@ /** @internal */ -namespace ts { + +import { Signature, Type, TypePredicate, ObjectType, ResolvedType, Node, IndexKind, TypeParameter, EntityNameOrEntityNameExpression, Identifier, TypeReference, SymbolWalker, TypeFlags, ObjectFlags, MappedType, InterfaceType, UnionOrIntersectionType, IndexType, IndexedAccessType, SyntaxKind, TypeQueryNode } from "./types"; +import { getOwnValues, forEach } from "./core"; +import { clear } from "console"; +import { getSymbolId } from "./checker"; + export function createGetSymbolWalker( getRestTypeOfSignature: (sig: Signature) => Type, getTypePredicateOfSignature: (sig: Signature) => TypePredicate | undefined, @@ -190,4 +195,4 @@ namespace ts { } } } -} \ No newline at end of file + diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index fcbaddb966ed2..925debd2832b9 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -1,7 +1,19 @@ +import { WatchOptions, Path, WatchFileKind, PollingWatchKind, WatchDirectoryKind, RequireResult } from "./types"; +import { unorderedRemoveItem, createMultiMap, createGetCanonicalFileName, forEach, noop, getStringComparer, neverArray, startsWith, enumerateInsertsAndDeletes, mapDefined, some, stringContains, AssertionLevel } from "./core"; +import { Debug } from "./debug"; +import { getDirectoryPath, getNormalizedAbsolutePath, directorySeparator, normalizePath, combinePaths, normalizeSlashes, getRootLength, containsPath, getRelativePathToDirectoryOrUrl } from "./path"; +import { isString, isArray } from "util"; +import { closeFileWatcherOf, getFallbackOptions } from "./watchUtilities"; +import { closeFileWatcher, writeFileEnsuringDirectories, FileSystemEntries, emptyFileSystemEntries, matchFiles } from "./utilities"; +import { timestamp } from "./performanceTimestamp"; +import { Comparison } from "./corePublic"; +import { resolveJSModule } from "./moduleNameResolver"; +import { perfLogger } from "./perfLogger"; + declare function setTimeout(handler: (...args: any[]) => void, timeout: number): any; declare function clearTimeout(handle: any): void; -namespace ts { + /** * djb2 hashing algorithm * http://www.cse.yorku.ca/~oz/hash.html @@ -131,26 +143,26 @@ namespace ts { getModifiedTime: NonNullable; setTimeout: NonNullable; }): HostWatchFile { - interface WatchedFile extends ts.WatchedFile { + interface WatchedFileNameSpaceLocal extends WatchedFile { isClosed?: boolean; unchangedPolls: number; } - interface PollingIntervalQueue extends Array { + interface PollingIntervalQueue extends Array { pollingInterval: PollingInterval; pollIndex: number; pollScheduled: boolean; } - const watchedFiles: WatchedFile[] = []; - const changedFilesInLastPoll: WatchedFile[] = []; + const watchedFiles: WatchedFileNameSpaceLocal[] = []; + const changedFilesInLastPoll: WatchedFileNameSpaceLocal[] = []; const lowPollingIntervalQueue = createPollingIntervalQueue(PollingInterval.Low); const mediumPollingIntervalQueue = createPollingIntervalQueue(PollingInterval.Medium); const highPollingIntervalQueue = createPollingIntervalQueue(PollingInterval.High); return watchFile; function watchFile(fileName: string, callback: FileWatcherCallback, defaultPollingInterval: PollingInterval): FileWatcher { - const file: WatchedFile = { + const file: WatchedFileNameSpaceLocal = { fileName, callback, unchangedPolls: 0, @@ -170,7 +182,7 @@ namespace ts { } function createPollingIntervalQueue(pollingInterval: PollingInterval): PollingIntervalQueue { - const queue = [] as WatchedFile[] as PollingIntervalQueue; + const queue = [] as WatchedFileNameSpaceLocal[] as PollingIntervalQueue; queue.pollingInterval = pollingInterval; queue.pollIndex = 0; queue.pollScheduled = false; @@ -202,7 +214,7 @@ namespace ts { } } - function pollQueue(queue: (WatchedFile | undefined)[], pollingInterval: PollingInterval, pollIndex: number, chunkSize: number) { + function pollQueue(queue: (WatchedFileNameSpaceLocal | undefined)[], pollingInterval: PollingInterval, pollIndex: number, chunkSize: number) { // Max visit would be all elements of the queue let needsVisit = queue.length; let definedValueCopyToIndex = pollIndex; @@ -282,12 +294,12 @@ namespace ts { } } - function addToPollingIntervalQueue(file: WatchedFile, pollingInterval: PollingInterval) { + function addToPollingIntervalQueue(file: WatchedFileNameSpaceLocal, pollingInterval: PollingInterval) { pollingIntervalQueue(pollingInterval).push(file); scheduleNextPollIfNotAlreadyScheduled(pollingInterval); } - function addChangedFileToLowPollingIntervalQueue(file: WatchedFile) { + function addChangedFileToLowPollingIntervalQueue(file: WatchedFileNameSpaceLocal) { changedFilesInLastPoll.push(file); scheduleNextPollIfNotAlreadyScheduled(PollingInterval.Low); } @@ -511,7 +523,7 @@ namespace ts { } }, /*recursive*/ false, options), refCount: 1, - childWatches: emptyArray + childWatches: neverArray }; cache.set(dirPath, directoryWatcher); updateChildWatches(dirName, dirPath, options); @@ -642,7 +654,7 @@ namespace ts { function removeChildWatches(parentWatcher: HostDirectoryWatcher | undefined) { if (!parentWatcher) return; const existingChildWatches = parentWatcher.childWatches; - parentWatcher.childWatches = emptyArray; + parentWatcher.childWatches = neverArray; for (const childWatcher of existingChildWatches) { childWatcher.close(); removeChildWatches(cache.get(toCanonicalFilePath(childWatcher.dirName))); @@ -660,14 +672,14 @@ namespace ts { // Filter our the symbolic link directories since those arent included in recursive watch // which is same behaviour when recursive: true is passed to fs.watch return !isIgnoredPath(childFullName) && filePathComparer(childFullName, normalizePath(host.realpath(childFullName))) === Comparison.EqualTo ? childFullName : undefined; - }) : emptyArray, + }) : neverArray, parentWatcher.childWatches, (child, childWatcher) => filePathComparer(child, childWatcher.dirName), createAndAddChildDirectoryWatcher, closeFileWatcher, addChildDirectoryWatcher ); - parentWatcher.childWatches = newChildWatches || emptyArray; + parentWatcher.childWatches = newChildWatches || neverArray; return hasChanges; /** @@ -1752,4 +1764,4 @@ namespace ts { if (sys && sys.debugMode) { Debug.isDebugging = true; } -} + diff --git a/src/compiler/transformer.ts b/src/compiler/transformer.ts index 2ed0e6ad93162..efac3ada75ad6 100644 --- a/src/compiler/transformer.ts +++ b/src/compiler/transformer.ts @@ -1,5 +1,33 @@ /* @internal */ -namespace ts { + +import { ModuleKind, TransformerFactory, SourceFile, Bundle, EmitTransformers, CompilerOptions, CustomTransformers, JsxEmit, ScriptTarget, CustomTransformer, Transformer, CustomTransformerFactory, TransformationContext, EmitHint, Node, EmitResolver, EmitHost, NodeFactory, TransformationResult, SyntaxKind, VariableDeclaration, FunctionDeclaration, Statement, LexicalEnvironmentFlags, EmitHelper, DiagnosticWithLocation, EmitFlags, Identifier } from "./types"; +import { transformECMAScriptModule } from "./transformers/module/esnextAnd2015"; +import { transformSystemModule } from "./transformers/module/system"; +import { transformModule } from "./transformers/module/module"; +import { neverArray, addRange, map, memoize, append, noop, returnUndefined, notImplemented } from "./core"; +import { getEmitScriptTarget, getEmitModuleKind, getSourceFileOfNode, getEmitFlags } from "./utilities"; +import { transformTypeScript } from "./transformers/ts"; +import { transformClassFields } from "./transformers/classFields"; +import { transformJsx } from "./transformers/jsx"; +import { transformESNext } from "./transformers/esnext"; +import { transformES2020 } from "./transformers/es2020"; +import { transformES2019 } from "./transformers/es2019"; +import { transformES2018 } from "./transformers/es2018"; +import { transformES2017 } from "./transformers/es2017"; +import { transformES2016 } from "./transformers/es2016"; +import { transformES2015 } from "./transformers/es2015"; +import { transformGenerators } from "./transformers/generators"; +import { transformES5 } from "./transformers/es5"; +import { transformDeclarations } from "./transformers/declarations"; +import { isBundle, isSourceFile } from "./factory/nodeTests"; +import { chainBundle } from "./transformers/utilities"; +import { createEmitHelperFactory } from "./factory/emitHelpers"; +import { Debug } from "./debug"; +import { disposeEmitNodes, setEmitFlags } from "./factory/emitNode"; +import { getParseTreeNode } from "./utilitiesPublic"; +import { performance } from "perf_hooks"; +import { factory } from "./factory/nodeFactory"; + function getModuleTransformer(moduleKind: ModuleKind): TransformerFactory { switch (moduleKind) { case ModuleKind.ESNext: @@ -25,7 +53,7 @@ namespace ts { EmitNotifications = 1 << 1, } - export const noTransformers: EmitTransformers = { scriptTransformers: emptyArray, declarationTransformers: emptyArray }; + export const noTransformers: EmitTransformers = { scriptTransformers: neverArray, declarationTransformers: neverArray }; export function getTransformers(compilerOptions: CompilerOptions, customTransformers?: CustomTransformers, emitOnlyDtsFiles?: boolean): EmitTransformers { return { @@ -35,7 +63,7 @@ namespace ts { } function getScriptTransformers(compilerOptions: CompilerOptions, customTransformers?: CustomTransformers, emitOnlyDtsFiles?: boolean) { - if (emitOnlyDtsFiles) return emptyArray; + if (emitOnlyDtsFiles) return neverArray; const jsx = compilerOptions.jsx; const languageVersion = getEmitScriptTarget(compilerOptions); @@ -532,4 +560,4 @@ namespace ts { suspendLexicalEnvironment: noop, addDiagnostic: noop, }; -} + diff --git a/src/compiler/transformers/classFields.ts b/src/compiler/transformers/classFields.ts index 774ded70dfef4..aab52502b6a37 100644 --- a/src/compiler/transformers/classFields.ts +++ b/src/compiler/transformers/classFields.ts @@ -1,5 +1,18 @@ /*@internal*/ -namespace ts { + +import { Identifier, UnderscoreEscapedMap, TransformationContext, ScriptTarget, Expression, Statement, SourceFile, Node, VisitResult, TransformFlags, SyntaxKind, ClassLikeDeclaration, PropertyDeclaration, VariableStatement, ComputedPropertyName, PropertyAccessExpression, PrefixUnaryExpression, PostfixUnaryExpression, CallExpression, BinaryExpression, PrivateIdentifier, ExpressionStatement, ForStatement, TaggedTemplateExpression, AssignmentPattern, AssignmentOperator, ClassElement, ClassDeclaration, ClassExpression, NodeCheckFlags, GeneratedIdentifier, GeneratedIdentifierFlags, EmitFlags, ConstructorDeclaration, LeftHandSideExpression, EmitHint, PropertyName, PrivateIdentifierPropertyAccessExpression, BindingOrAssignmentElement, ObjectLiteralElementLike } from "../types"; +import { getEmitScriptTarget, nodeIsSynthesized, isDestructuringAssignment, isAssignmentExpression, getEffectiveBaseTypeNode, getEmitFlags, hasStaticModifier, getFirstConstructorWithBody, moveRangePastModifiers, createUnderscoreEscapedMap, getTextOfPropertyName, isThisProperty, isSuperProperty } from "../utilities"; +import { chainBundle, isSimpleInlineableExpression, isCompoundAssignment, getNonAssignmentOperatorForCompoundAssignment, getProperties, getOriginalNodeId, isInitializedProperty, addPrologueDirectivesAndInitialSuperCall, isSimpleCopiableExpression } from "./utilities"; +import { visitEachChild, visitNodes, visitNode, visitParameterList, visitFunctionBody } from "../visitorPublic"; +import { addEmitHelpers, setEmitFlags, setSourceMapRange, setCommentRange } from "../factory/emitNode"; +import { setOriginalNode, factory } from "../factory/nodeFactory"; +import { some, compact, forEach, addRange, map, filter, findIndex } from "../core"; +import { Debug } from "../debug"; +import { isPrivateIdentifier, isPostfixUnaryExpression, isClassDeclaration, isPropertyDeclaration, isHeritageClause, isDecorator, isConstructorDeclaration, isComputedPropertyName, isIdentifier, isSpreadElement, isPropertyAssignment, isArrayLiteralExpression } from "../factory/nodeTests"; +import { isModifier, isExpression, isPrivateIdentifierPropertyAccessExpression, isForInitializer, isStatement, isTemplateLiteral, getOriginalNode, isPrivateIdentifierPropertyDeclaration, isClassElement, isParameterPropertyDeclaration, unescapeLeadingUnderscores, skipPartiallyEmittedExpressions, isGeneratedIdentifier, isObjectLiteralElementLike } from "../utilitiesPublic"; +import { skipOuterExpressions, startOnNewLine, createMemberAccessForPropertyName, getTargetOfBindingOrAssignmentElement, getInitializerOfBindingOrAssignmentElement } from "../factory/utilities"; +import { setTextRange } from "../factory/utilitiesPublic"; + const enum ClassPropertySubstitutionFlags { /** * Enables substitutions for class expressions with static fields @@ -1063,4 +1076,4 @@ namespace ts { [receiver, initializer || factory.createVoidZero()] ); } -} + diff --git a/src/compiler/transformers/declarations.ts b/src/compiler/transformers/declarations.ts index 8d05347bc6f31..07d612aa85b93 100644 --- a/src/compiler/transformers/declarations.ts +++ b/src/compiler/transformers/declarations.ts @@ -1,5 +1,27 @@ /*@internal*/ -namespace ts { + +import { EmitHost, EmitResolver, SourceFile, DiagnosticWithLocation, CommentRange, Node, SyntaxKind, FunctionLike, ParameterDeclaration, NodeBuilderFlags, TransformationContext, LateVisibilityPaintedStatement, VisitResult, ExportAssignment, SymbolTracker, DeclarationName, AnyImportSyntax, ModuleDeclaration, SymbolFlags, SymbolAccessibilityResult, SymbolAccessibility, Bundle, FileReference, NodeArray, Statement, UnparsedSource, BindingName, ArrayBindingElement, ModifierFlags, TypeNode, FunctionDeclaration, MethodDeclaration, GetAccessorDeclaration, SetAccessorDeclaration, BindingElement, ConstructSignatureDeclaration, VariableDeclaration, MethodSignature, CallSignatureDeclaration, PropertyDeclaration, PropertySignature, NamedDeclaration, OmittedExpression, AccessorDeclaration, TypeParameterDeclaration, EntityNameOrEntityNameExpression, ImportEqualsDeclaration, ImportDeclaration, ExportDeclaration, ImportTypeNode, StringLiteral, Declaration, EmitFlags, GeneratedIdentifierFlags, NodeFlags, NamespaceDeclaration, Identifier, VariableStatement, ModuleBody, BindingPattern, LateBoundDeclaration, Modifier, AllAccessorDeclarations, HeritageClause, InterfaceDeclaration, ClassDeclaration, TypeAliasDeclaration, EnumDeclaration, ConstructorDeclaration, IndexSignatureDeclaration, ExpressionWithTypeArguments, TypeReferenceNode, ConditionalTypeNode, FunctionTypeNode, ConstructorTypeNode } from "../types"; +import { transformNodes } from "../transformer"; +import { factory, createUnparsedSourceFile, setOriginalNode } from "../factory/nodeFactory"; +import { filter, stringContains, concatenate, last, forEach, pushIfUnique, find, createMap, map, mapDefined, arrayFrom, contains, startsWith, toFileNameLowerCase, some, append, neverArray, compact, flatMap, flatten } from "../core"; +import { isSourceFileNotJson, getLeadingCommentRangesOfNode, getSourceFileOfNode, createDiagnosticForNode, getTextOfNode, declarationNameToString, addRelatedInfo, isExternalOrCommonJsModule, isJsonSourceFile, isSourceFileJS, getResolvedExternalModuleName, isAnyImportSyntax, hasEffectiveModifier, getThisParameter, getSetAccessorValueParameter, getExternalModuleNameFromDeclaration, getExternalModuleImportEqualsDeclarationExpression, isLateVisibilityPaintedStatement, hasDynamicName, isEntityNameExpression, isLiteralImportTypeNode, getEffectiveModifierFlags, setParent, createSymbolTable, isStringANonContextualKeyword, isGlobalScopeAugmentation, isExternalModuleAugmentation, getFirstConstructorWithBody, hasSyntacticModifier, getEffectiveBaseTypeNode } from "../utilities"; +import { getParseTreeNode, isStringLiteralLike, isBindingPattern, isFunctionLike, hasJSDocNodes, needsScopeMarker, isExternalModuleIndicator, isDeclaration, isEntityName, isTypeNode, unescapeLeadingUnderscores } from "../utilitiesPublic"; +import { getTrailingCommentRanges, skipTrivia, getLeadingCommentRanges, getLineAndCharacterOfPosition } from "../scanner"; +import { Debug } from "../debug"; +import { GetSymbolAccessibilityDiagnostic, createGetSymbolAccessibilityDiagnosticForNode, canProduceDiagnostics, DeclarationDiagnosticProducing, createGetSymbolAccessibilityDiagnosticForNodeName } from "./declarations/diagnostics"; +import { length } from "module"; +import { getOriginalNodeId } from "./utilities"; +import { visitNodes, visitNode, visitEachChild } from "../visitorPublic"; +import { setTextRange } from "../factory/utilitiesPublic"; +import { getDirectoryPath, normalizeSlashes, toPath, pathIsRelative, getRelativePathToDirectoryOrUrl, hasExtension } from "../path"; +import { getOutputPathsFor } from "../emitter"; +import { isExternalModule, parseNodeFactory } from "../parser"; +import { createEmptyExports, canHaveModifiers } from "../factory/utilities"; +import { isImportEqualsDeclaration, isExternalModuleReference, isImportDeclaration, isStringLiteral, isUnparsedSource, isOmittedExpression, isSetAccessorDeclaration, isSourceFile, isTypeAliasDeclaration, isModuleDeclaration, isClassDeclaration, isInterfaceDeclaration, isIndexSignatureDeclaration, isMappedTypeNode, isSemicolonClassElement, isMethodDeclaration, isMethodSignature, isTypeQueryNode, isPrivateIdentifier, isTupleTypeNode, isTypeParameterDeclaration, isPropertyAccessExpression, isExportAssignment, isExportDeclaration } from "../factory/nodeTests"; +import { pathContainsNodeModules } from "../moduleNameResolver"; +import { setCommentRange, getCommentRange, setEmitFlags } from "../factory/emitNode"; +import { isArray } from "util"; + export function getDeclarationDiagnostics(host: EmitHost, resolver: EmitResolver, file: SourceFile | undefined): DiagnosticWithLocation[] | undefined { const compilerOptions = host.getCompilerOptions(); const result = transformNodes(resolver, host, factory, compilerOptions, file ? [file] : filter(host.getSourceFiles(), isSourceFileNotJson), [transformDeclarations], /*allowDtsFiles*/ false); @@ -614,7 +636,7 @@ namespace ts { } newParams = append(newParams, newValueParameter); } - return factory.createNodeArray(newParams || emptyArray); + return factory.createNodeArray(newParams || neverArray); } function ensureTypeParams(node: Node, params: NodeArray | undefined) { @@ -1676,4 +1698,4 @@ namespace ts { } return false; } -} + diff --git a/src/compiler/transformers/declarations/diagnostics.ts b/src/compiler/transformers/declarations/diagnostics.ts index 1294739ef961b..9d270b91ec5c0 100644 --- a/src/compiler/transformers/declarations/diagnostics.ts +++ b/src/compiler/transformers/declarations/diagnostics.ts @@ -1,5 +1,5 @@ /* @internal */ -namespace ts { + export type GetSymbolAccessibilityDiagnostic = (symbolAccessibilityResult: SymbolAccessibilityResult) => (SymbolAccessibilityDiagnostic | undefined); export interface SymbolAccessibilityDiagnostic { @@ -481,4 +481,4 @@ namespace ts { }; } } -} + diff --git a/src/compiler/transformers/destructuring.ts b/src/compiler/transformers/destructuring.ts index 1dcbc0814750d..1efa594065b2f 100644 --- a/src/compiler/transformers/destructuring.ts +++ b/src/compiler/transformers/destructuring.ts @@ -1,5 +1,16 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, Expression, BindingOrAssignmentElementTarget, TextRange, Node, BindingOrAssignmentElement, ArrayBindingOrAssignmentPattern, ObjectBindingOrAssignmentPattern, Identifier, VisitResult, VariableDeclaration, DestructuringAssignment, __String, BindingOrAssignmentPattern, ParameterDeclaration, BindingName, TransformFlags, ElementAccessExpression, PropertyName, LeftHandSideExpression, NodeFactory, ArrayBindingElement, BindingElement } from "../types"; +import { isDestructuringAssignment, isEmptyArrayLiteral, isEmptyObjectLiteral, nodeIsSynthesized, isStringOrNumericLiteralLike } from "../utilities"; +import { visitNode } from "../visitorPublic"; +import { isExpression, isBindingOrAssignmentPattern, isLiteralExpression, isBindingName, isObjectBindingOrAssignmentPattern, isArrayBindingOrAssignmentPattern, isDeclarationBindingElement, idText, isArrayBindingElement } from "../utilitiesPublic"; +import { isIdentifier, isComputedPropertyName, isVariableDeclaration, isOmittedExpression, isBindingElement } from "../factory/nodeTests"; +import { some, append, forEach, last, addRange, every, map } from "../core"; +import { Debug } from "../debug"; +import { setTextRange } from "../factory/utilitiesPublic"; +import { getTargetOfBindingOrAssignmentElement, getElementsOfBindingOrAssignmentPattern, tryGetPropertyNameOfBindingOrAssignmentElement, getInitializerOfBindingOrAssignmentElement, getRestIndicatorOfBindingOrAssignmentElement, getPropertyNameOfBindingOrAssignmentElement } from "../factory/utilities"; +import { factory } from "../factory/nodeFactory"; + interface FlattenContext { context: TransformationContext; level: FlattenLevel; @@ -519,4 +530,4 @@ namespace ts { function makeAssignmentElement(name: Identifier) { return name; } -} + diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index f9d94f3ee5976..e0170913ac5cf 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -1,5 +1,21 @@ /*@internal*/ -namespace ts { + +import { Identifier, ParameterDeclaration, IterationStatement, LabeledStatement, Statement, TransformationContext, SourceFile, VariableDeclaration, Node, SyntaxKind, ReturnStatement, TransformFlags, EmitFlags, VisitResult, ClassDeclaration, ClassExpression, FunctionDeclaration, ArrowFunction, FunctionExpression, VariableDeclarationList, SwitchStatement, CaseBlock, Block, BreakOrContinueStatement, DoStatement, WhileStatement, ForStatement, ForInStatement, ForOfStatement, ExpressionStatement, ObjectLiteralExpression, CatchClause, ShorthandPropertyAssignment, ComputedPropertyName, ArrayLiteralExpression, CallExpression, NewExpression, ParenthesizedExpression, BinaryExpression, LiteralExpression, StringLiteral, NumericLiteral, TaggedTemplateExpression, TemplateExpression, YieldExpression, SpreadElement, MetaProperty, MethodDeclaration, AccessorDeclaration, VariableStatement, GeneratedIdentifierFlags, Expression, ModifierFlags, ExpressionWithTypeArguments, ConstructorDeclaration, FunctionBody, IfStatement, FunctionLikeDeclaration, BindingPattern, SemicolonClassElement, LeftHandSideExpression, AllAccessorDeclarations, ObjectLiteralElementLike, TextRange, NodeFlags, NodeCheckFlags, CaseClause, BindingElement, PropertyAssignment, NodeArray, __String, TokenFlags, EmitHint, NamedDeclaration, Declaration, PrimaryExpression, ClassLikeDeclaration, ClassElement } from "../types"; +import { append, addRange, concatenate, singleOrMany, cast, lastOrUndefined, some, arrayIsEqualTo, flatMap, last, createMap, firstOrUndefined, map, first, filter, tryCast, elementAt, flatten, spanMap, every, reduceLeft, singleOrUndefined } from "../core"; +import { chainBundle } from "./utilities"; +import { addEmitHelpers, setEmitFlags, addSyntheticLeadingComment, setCommentRange, getCommentRange, setSourceMapRange, getSourceMapRange, moveSyntheticComments, setTokenSourceMapRange } from "../factory/emitNode"; +import { isReturnStatement, isIfStatement, isWithStatement, isSwitchStatement, isCaseBlock, isCaseClause, isDefaultClause, isTryStatement, isCatchClause, isLabeledStatement, isBlock, isExpressionStatement, isBinaryExpression, isCallExpression, isPrivateIdentifier, isComputedPropertyName, isIdentifier, isVariableDeclarationList, isForStatement, isOmittedExpression, isSpreadElement, isArrowFunction, isVariableStatement, isFunctionExpression, isArrayLiteralExpression } from "../factory/nodeTests"; +import { isIterationStatement, isStatement, isExpression, idText, isBindingPattern, isPropertyName, unescapeLeadingUnderscores, isModifier, isClassLike, isObjectLiteralElementLike, isForInitializer, getCombinedNodeFlags, isFunctionLike, getParseTreeNode, getNameOfDeclaration, isClassElement } from "../utilitiesPublic"; +import { getEmitFlags, hasSyntacticModifier, getClassExtendsHeritageElement, setTextRangeEnd, createTokenRange, setTextRangePos, insertStatementsAfterStandardPrologue, getFirstConstructorWithBody, isSuperCall, insertStatementAfterCustomPrologue, setParent, insertStatementsAfterCustomPrologue, getAllAccessorDeclarations, isHoistedFunction, isHoistedVariableStatement, moveRangeEnd, nodeIsSynthesized, rangeEndIsOnSameLineAsRangeStart, isDestructuringAssignment, createRange, unwrapInnermostStatementOfLabel, moveRangePos, isSuperProperty, isAssignmentExpression, getEnclosingBlockScopeContainer } from "../utilities"; +import { visitEachChild, visitNodes, visitNode, visitParameterList } from "../visitorPublic"; +import { setTextRange } from "../factory/utilitiesPublic"; +import { setOriginalNode } from "../factory/nodeFactory"; +import { startOnNewLine, skipOuterExpressions, createMemberAccessForPropertyName, createExpressionForPropertyName, isInternalName } from "../factory/utilities"; +import { skipTrivia } from "../scanner"; +import { flattenDestructuringBinding, FlattenLevel, flattenDestructuringAssignment } from "./destructuring"; +import { Debug } from "../debug"; +import { processTaggedTemplateExpression, ProcessLevel } from "./taggedTemplate"; + const enum ES2015SubstitutionFlags { /** Enables substitutions for captured `this` */ CapturedThis = 1 << 0, @@ -4319,4 +4335,4 @@ namespace ts { return isIdentifier(expression) && expression.escapedText === "arguments"; } } -} + diff --git a/src/compiler/transformers/es2016.ts b/src/compiler/transformers/es2016.ts index 653c66174d4ff..b52eecaa91584 100644 --- a/src/compiler/transformers/es2016.ts +++ b/src/compiler/transformers/es2016.ts @@ -1,5 +1,12 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, SourceFile, Node, VisitResult, TransformFlags, SyntaxKind, BinaryExpression, Expression } from "../types"; +import { chainBundle } from "./utilities"; +import { visitEachChild, visitNode } from "../visitorPublic"; +import { isExpression } from "../utilitiesPublic"; +import { isElementAccessExpression, isPropertyAccessExpression } from "../factory/nodeTests"; +import { setTextRange } from "../factory/utilitiesPublic"; + export function transformES2016(context: TransformationContext) { const { factory, @@ -102,4 +109,4 @@ namespace ts { return setTextRange(factory.createGlobalMethodCall("Math", "pow", [left, right]), node); } } -} + diff --git a/src/compiler/transformers/es2017.ts b/src/compiler/transformers/es2017.ts index 64971fffe6369..b7067ff7da58c 100644 --- a/src/compiler/transformers/es2017.ts +++ b/src/compiler/transformers/es2017.ts @@ -1,5 +1,19 @@ /*@internal*/ -namespace ts { + +import { ClassDeclaration, MethodDeclaration, GetAccessorDeclaration, SetAccessorDeclaration, ConstructorDeclaration, TransformationContext, NodeCheckFlags, UnderscoreEscapedMap, SourceFile, Node, VisitResult, TransformFlags, SyntaxKind, AwaitExpression, FunctionDeclaration, FunctionExpression, ArrowFunction, ElementAccessExpression, CatchClause, VariableStatement, ForInStatement, ForOfStatement, ForStatement, Expression, Statement, ParameterDeclaration, VariableDeclaration, BindingElement, ForInitializer, VariableDeclarationList, NodeFlags, AccessorDeclaration, FunctionBody, ConciseBody, FunctionLikeDeclaration, ScriptTarget, Block, TypeNode, TypeReferenceSerializationKind, EmitHint, PropertyAccessExpression, CallExpression, GeneratedIdentifierFlags, TextRange, LeftHandSideExpression, NodeFactory, EmitResolver, PropertyAssignment, EmitFlags } from "../types"; +import { getEmitScriptTarget, isEffectiveStrictModeSourceFile, isNodeWithPossibleHoistedDeclaration, createUnderscoreEscapedMap, cloneMap, getFunctionFlags, FunctionFlags, getInitializedVariables, insertStatementsAfterStandardPrologue, hasEntries, getEntityNameFromTypeNode, isSuperProperty } from "../utilities"; +import { chainBundle } from "./utilities"; +import { visitEachChild, visitNode, visitNodes, visitParameterList, visitFunctionBody } from "../visitorPublic"; +import { addEmitHelpers, setSourceMapRange, addEmitHelper, setEmitFlags } from "../factory/emitNode"; +import { isPropertyAccessExpression, isIdentifier, isOmittedExpression, isVariableDeclarationList, isBlock } from "../factory/nodeTests"; +import { Debug } from "../debug"; +import { isForInitializer, isExpression, isStatement, isToken, isModifier, getOriginalNode, isFunctionLike, isConciseBody, isEntityName, unescapeLeadingUnderscores } from "../utilitiesPublic"; +import { setOriginalNode } from "../factory/nodeFactory"; +import { setTextRange } from "../factory/utilitiesPublic"; +import { map, forEach, some, concatenate } from "../core"; +import { getNodeId } from "../checker"; +import { advancedAsyncSuperHelper, asyncSuperHelper } from "../factory/emitHelpers"; + type SuperContainer = ClassDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration; const enum ES2017SubstitutionFlags { @@ -822,4 +836,4 @@ namespace ts { ], NodeFlags.Const)); } -} + diff --git a/src/compiler/transformers/es2018.ts b/src/compiler/transformers/es2018.ts index 143a864edb40b..e991ad72d5ca8 100644 --- a/src/compiler/transformers/es2018.ts +++ b/src/compiler/transformers/es2018.ts @@ -1,5 +1,23 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, NodeCheckFlags, SourceFile, VariableDeclaration, UnderscoreEscapedMap, Identifier, Node, VisitResult, SyntaxKind, TransformFlags, AwaitExpression, YieldExpression, ReturnStatement, LabeledStatement, ObjectLiteralExpression, BinaryExpression, CatchClause, VariableStatement, ForOfStatement, ForStatement, VoidExpression, ConstructorDeclaration, MethodDeclaration, GetAccessorDeclaration, SetAccessorDeclaration, FunctionDeclaration, FunctionExpression, ArrowFunction, ParameterDeclaration, ExpressionStatement, ParenthesizedExpression, TaggedTemplateExpression, ElementAccessExpression, Expression, ObjectLiteralElementLike, ModifierFlags, Statement, ForInitializer, TextRange, NodeFlags, EmitFlags, Token, AccessorDeclaration, FunctionBody, ScriptTarget, ConciseBody, FunctionLikeDeclaration, EmitHint, PropertyAccessExpression, CallExpression, GeneratedIdentifierFlags, LeftHandSideExpression } from "../types"; +import { getEmitScriptTarget, FunctionFlags, unwrapInnermostStatementOfLabel, isEffectiveStrictModeSourceFile, isDestructuringAssignment, hasSyntacticModifier, skipParentheses, getFunctionFlags, createUnderscoreEscapedMap, insertStatementsAfterStandardPrologue, isSuperProperty } from "../utilities"; +import { chainBundle } from "./utilities"; +import { append, concatenate, some, addRange } from "../core"; +import { addEmitHelpers, setEmitFlags, addEmitHelper } from "../factory/emitNode"; +import { visitEachChild, visitNode, visitParameterList, visitNodes, visitLexicalEnvironment } from "../visitorPublic"; +import { isPropertyAccessExpression, isBlock, isVariableDeclarationList, isIdentifier } from "../factory/nodeTests"; +import { setOriginalNode } from "../factory/nodeFactory"; +import { setTextRange } from "../factory/utilitiesPublic"; +import { isExpression, isStatement, isObjectLiteralElementLike, isBindingPattern, isForInitializer, isAssignmentPattern, isPropertyName, isModifier, isToken, isConciseBody } from "../utilitiesPublic"; +import { Debug } from "../debug"; +import { processTaggedTemplateExpression, ProcessLevel } from "./taggedTemplate"; +import { flattenDestructuringAssignment, FlattenLevel, flattenDestructuringBinding } from "./destructuring"; +import { createForOfBindingStatement } from "../factory/utilities"; +import { createSuperAccessVariableStatement } from "./es2017"; +import { getNodeId } from "../checker"; +import { advancedAsyncSuperHelper, asyncSuperHelper } from "../factory/emitHelpers"; + const enum ESNextSubstitutionFlags { /** Enables substitutions for async methods with `super` calls. */ AsyncMethodsWithSuper = 1 << 0 @@ -1166,4 +1184,4 @@ namespace ts { } } } -} + diff --git a/src/compiler/transformers/es2019.ts b/src/compiler/transformers/es2019.ts index 0d696b4f5ca01..79ac2b99184ad 100644 --- a/src/compiler/transformers/es2019.ts +++ b/src/compiler/transformers/es2019.ts @@ -1,5 +1,10 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, SourceFile, Node, VisitResult, TransformFlags, SyntaxKind, CatchClause } from "../types"; +import { chainBundle } from "./utilities"; +import { visitEachChild, visitNode } from "../visitorPublic"; +import { isBlock } from "../factory/nodeTests"; + export function transformES2019(context: TransformationContext) { const factory = context.factory; return chainBundle(context, transformSourceFile); @@ -35,4 +40,4 @@ namespace ts { return visitEachChild(node, visitor, context); } } -} + diff --git a/src/compiler/transformers/es2020.ts b/src/compiler/transformers/es2020.ts index a3a87df91ed33..b0c775859639d 100644 --- a/src/compiler/transformers/es2020.ts +++ b/src/compiler/transformers/es2020.ts @@ -1,5 +1,15 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, SourceFile, Node, VisitResult, TransformFlags, SyntaxKind, NodeFlags, OptionalChain, BinaryExpression, DeleteExpression, ParenthesizedExpression, Expression, AccessExpression, CallExpression } from "../types"; +import { chainBundle, isSimpleCopiableExpression } from "./utilities"; +import { visitEachChild, visitNode, visitNodes } from "../visitorPublic"; +import { Debug } from "../debug"; +import { isSyntheticReference, isTaggedTemplateExpression, isIdentifier } from "../factory/nodeTests"; +import { isNonNullChain, skipPartiallyEmittedExpressions, isOptionalChain, isExpression, isCallChain } from "../utilitiesPublic"; +import { cast } from "../core"; +import { setOriginalNode } from "../factory/nodeFactory"; +import { skipParentheses } from "../utilities"; + export function transformES2020(context: TransformationContext) { const { factory, @@ -205,4 +215,4 @@ namespace ts { : factory.updateDeleteExpression(node, visitNode(node.expression, visitor, isExpression)); } } -} + diff --git a/src/compiler/transformers/es5.ts b/src/compiler/transformers/es5.ts index 74fff32a2644e..ad0530aa9dd97 100644 --- a/src/compiler/transformers/es5.ts +++ b/src/compiler/transformers/es5.ts @@ -1,5 +1,13 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, EmitHint, Node, JsxEmit, SyntaxKind, SourceFile, JsxOpeningElement, JsxClosingElement, JsxSelfClosingElement, PropertyAccessExpression, Expression, PropertyAssignment, Identifier } from "../types"; +import { chainBundle, getOriginalNodeId } from "./utilities"; +import { isPropertyAccessExpression, isPropertyAssignment, isPrivateIdentifier, isIdentifier } from "../factory/nodeTests"; +import { setTextRange } from "../factory/utilitiesPublic"; +import { nodeIsSynthesized } from "../utilities"; +import { stringToToken } from "../scanner"; +import { idText } from "../utilitiesPublic"; + /** * Transforms ES5 syntax into ES3 syntax. * @@ -119,4 +127,4 @@ namespace ts { return undefined; } } -} + diff --git a/src/compiler/transformers/esnext.ts b/src/compiler/transformers/esnext.ts index 09b68d57e25b5..5cdae0da83322 100644 --- a/src/compiler/transformers/esnext.ts +++ b/src/compiler/transformers/esnext.ts @@ -1,5 +1,12 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, SourceFile, Node, VisitResult, TransformFlags, SyntaxKind, BinaryExpression, AssignmentExpression, Token, LogicalOrCoalescingAssignmentOperator } from "../types"; +import { chainBundle, getNonAssignmentOperatorForCompoundAssignment, isSimpleCopiableExpression } from "./utilities"; +import { visitEachChild, visitNode } from "../visitorPublic"; +import { isLogicalOrCoalescingAssignmentExpression, skipParentheses, isAccessExpression } from "../utilities"; +import { isLeftHandSideExpression, isExpression } from "../utilitiesPublic"; +import { isPropertyAccessExpression } from "../factory/nodeTests"; + export function transformESNext(context: TransformationContext) { const { hoistVariableDeclaration, @@ -88,4 +95,4 @@ namespace ts { ); } } -} + diff --git a/src/compiler/transformers/generators.ts b/src/compiler/transformers/generators.ts index 7b0f8419b0b59..6495f614d9ec9 100644 --- a/src/compiler/transformers/generators.ts +++ b/src/compiler/transformers/generators.ts @@ -117,8 +117,21 @@ // .endtry | // .mark END | case END: +import { Expression, Statement, Identifier, TransformationContext, LiteralExpression, TextRange, CaseClause, SourceFile, TransformFlags, Node, VisitResult, SyntaxKind, DoStatement, WhileStatement, SwitchStatement, LabeledStatement, FunctionDeclaration, FunctionExpression, AccessorDeclaration, VariableStatement, ForStatement, ForInStatement, BreakStatement, ContinueStatement, ReturnStatement, BinaryExpression, ConditionalExpression, YieldExpression, ArrayLiteralExpression, ObjectLiteralExpression, ElementAccessExpression, CallExpression, NewExpression, Block, EmitFlags, PropertyAccessExpression, LeftHandSideExpression, NodeArray, ObjectLiteralElementLike, ExpressionStatement, IfStatement, WithStatement, ThrowStatement, TryStatement, VariableDeclarationList, InitializedVariableDeclaration, EmitHint, VariableDeclaration, NumericLiteral } from "../types"; +import { getEmitScriptTarget, Mutable, insertStatementsAfterStandardPrologue, getEmitFlags, getInitializedVariables, getExpressionAssociativity, Associativity, isLogicalOperator, setParent, isImportCall } from "../utilities"; +import { chainBundle, isCompoundAssignment, getNonAssignmentOperatorForCompoundAssignment, getOriginalNodeId } from "./utilities"; +import { visitEachChild, visitParameterList, visitNode, visitNodes } from "../visitorPublic"; +import { addEmitHelpers, setSourceMapRange, setCommentRange, addSyntheticTrailingComment, setEmitFlags } from "../factory/emitNode"; +import { isFunctionLikeDeclaration, isLeftHandSideExpression, isExpression, isObjectLiteralElementLike, isStatement, idText, isGeneratedIdentifier, getOriginalNode } from "../utilitiesPublic"; +import { Debug } from "../debug"; +import { setOriginalNode } from "../factory/nodeFactory"; +import { setTextRange } from "../factory/utilitiesPublic"; +import { map, reduceLeft, forEach, lastOrUndefined, createMap } from "../core"; +import { isBinaryExpression, isBlock, isVariableDeclarationList, isIdentifier } from "../factory/nodeTests"; +import { startOnNewLine, createExpressionForObjectLiteralElementLike } from "../factory/utilities"; + /*@internal*/ -namespace ts { + type Label = number; const enum OpCode { @@ -3155,4 +3168,4 @@ namespace ts { ); } } -} + diff --git a/src/compiler/transformers/jsx.ts b/src/compiler/transformers/jsx.ts index cc000666143c0..cb95cef8d7f31 100644 --- a/src/compiler/transformers/jsx.ts +++ b/src/compiler/transformers/jsx.ts @@ -1,5 +1,18 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, SourceFile, Node, VisitResult, TransformFlags, SyntaxKind, JsxElement, JsxSelfClosingElement, JsxFragment, JsxExpression, JsxChild, Expression, JsxOpeningLikeElement, TextRange, ObjectLiteralExpression, JsxOpeningFragment, JsxSpreadAttribute, JsxAttribute, StringLiteral, JsxText, Identifier } from "../types"; +import { chainBundle } from "./utilities"; +import { visitEachChild, visitNode } from "../visitorPublic"; +import { addEmitHelpers } from "../factory/emitNode"; +import { Debug } from "../debug"; +import { flatten, spanMap, map, singleOrUndefined, mapDefined, createMapFromTemplate } from "../core"; +import { isJsxSpreadAttribute, isIdentifier } from "../factory/nodeTests"; +import { createExpressionForJsxElement, startOnNewLine, createExpressionForJsxFragment, createExpressionFromEntityName } from "../factory/utilities"; +import { isExpression, idText } from "../utilitiesPublic"; +import { isStringDoubleQuoted, isIntrinsicJsxName } from "../utilities"; +import { setTextRange } from "../factory/utilitiesPublic"; +import { isLineBreak, isWhiteSpaceSingleLine, utf16EncodeAsString } from "../scanner"; + export function transformJsx(context: TransformationContext) { const { factory, @@ -570,4 +583,4 @@ namespace ts { hearts: 0x2665, diams: 0x2666 }); -} + diff --git a/src/compiler/transformers/module/esnextAnd2015.ts b/src/compiler/transformers/module/esnextAnd2015.ts index 1b87011064204..7f9790b6e9e7f 100644 --- a/src/compiler/transformers/module/esnextAnd2015.ts +++ b/src/compiler/transformers/module/esnextAnd2015.ts @@ -1,5 +1,5 @@ /*@internal*/ -namespace ts { + export function transformECMAScriptModule(context: TransformationContext) { const { factory, @@ -162,4 +162,4 @@ namespace ts { return substitution; } } -} + diff --git a/src/compiler/transformers/module/module.ts b/src/compiler/transformers/module/module.ts index 90422838e5739..b8484596ef611 100644 --- a/src/compiler/transformers/module/module.ts +++ b/src/compiler/transformers/module/module.ts @@ -1,5 +1,23 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, Expression, ParameterDeclaration, ModuleKind, SourceFile, SyntaxKind, Statement, TransformFlags, EmitFlags, ImportDeclaration, ExportDeclaration, ImportEqualsDeclaration, Node, VisitResult, ExportAssignment, VariableStatement, FunctionDeclaration, ClassDeclaration, MergeDeclarationMarker, EndOfDeclarationMarker, DestructuringAssignment, ImportCall, FunctionExpression, ArrowFunction, ScriptTarget, VariableDeclaration, NodeFlags, ModifierFlags, NodeArray, Modifier, InitializedVariableDeclaration, Identifier, TextRange, BindingElement, Declaration, EmitHint, ShorthandPropertyAssignment, ObjectLiteralElementLike, BinaryExpression, PrefixUnaryExpression, PostfixUnaryExpression, UnscopedEmitHelper, EmitHelper } from "../../types"; +import { getEmitScriptTarget, getEmitModuleKind, isEffectiveExternalModule, isJsonSourceFile, hasJsonModuleEmitEnabled, outFile, getStrictOptionValue, insertStatementsAfterStandardPrologue, isImportCall, isDestructuringAssignment, getEmitFlags, getNamespaceDeclarationNode, isDefaultImport, isExternalModuleImportEqualsDeclaration, hasSyntacticModifier, isAssignmentOperator, isDeclarationNameOfEnumOrNamespace } from "../../utilities"; +import { ExternalModuleInfo, chainBundle, collectExternalModuleInfo, getOriginalNodeId, isSimpleCopiableExpression, getExportNeedsImportStarHelper, getImportNeedsImportStarHelper, getImportNeedsImportDefaultHelper } from "../utilities"; +import { isExternalModule } from "../../parser"; +import { append, reduceLeft, addRange, neverArray, mapDefined, firstOrUndefined, singleOrMany } from "../../core"; +import { length } from "module"; +import { idText, isStatement, isGeneratedIdentifier, isModifier, isBindingPattern } from "../../utilitiesPublic"; +import { visitNode, visitNodes, visitEachChild } from "../../visitorPublic"; +import { setTextRange } from "../../factory/utilitiesPublic"; +import { addEmitHelpers, setEmitFlags, addEmitHelper } from "../../factory/emitNode"; +import { tryGetModuleNameFromFile, getExternalModuleNameLiteral, getLocalNameForExternalImport, isExportName, isLocalName, startOnNewLine, getExternalHelpersModuleName } from "../../factory/utilities"; +import { isImportEqualsDeclaration, isExportDeclaration, isObjectLiteralExpression, isArrayLiteralExpression, isSpreadElement, isIdentifier, isStringLiteral, isNamedExports, isOmittedExpression, isShorthandPropertyAssignment, isImportClause, isImportSpecifier } from "../../factory/nodeTests"; +import { Debug } from "../../debug"; +import { flattenDestructuringAssignment, FlattenLevel } from "../destructuring"; +import { importStarHelper, importDefaultHelper, createBindingHelper } from "../../factory/emitHelpers"; +import { setOriginalNode } from "../../factory/nodeFactory"; +import { getNodeId } from "../../checker"; + export function transformModule(context: TransformationContext) { interface AsynchronousDependencies { aliasedModuleNames: Expression[]; @@ -162,7 +180,7 @@ namespace ts { // Add the dependency array argument: // // ["require", "exports", module1", "module2", ...] - factory.createArrayLiteralExpression(jsonSourceFile ? emptyArray : [ + factory.createArrayLiteralExpression(jsonSourceFile ? neverArray : [ factory.createStringLiteral("require"), factory.createStringLiteral("exports"), ...aliasedModuleNames, @@ -1882,4 +1900,4 @@ namespace ts { text: ` var __syncRequire = typeof module === "object" && typeof module.exports === "object";` }; -} + diff --git a/src/compiler/transformers/module/system.ts b/src/compiler/transformers/module/system.ts index 26590fbb5d9d1..a4426a95baa74 100644 --- a/src/compiler/transformers/module/system.ts +++ b/src/compiler/transformers/module/system.ts @@ -1,5 +1,20 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, StringLiteral, ImportDeclaration, ImportEqualsDeclaration, ExportDeclaration, SyntaxKind, Statement, Identifier, SourceFile, Node, TransformFlags, EmitFlags, ModifierFlags, ObjectLiteralElementLike, Expression, PropertyAssignment, VisitResult, ExportAssignment, FunctionDeclaration, ClassDeclaration, VariableStatement, VariableDeclaration, BindingElement, VariableDeclarationList, NodeFlags, TextRange, MergeDeclarationMarker, EndOfDeclarationMarker, Declaration, ForStatement, ForInStatement, ForOfStatement, DoStatement, WhileStatement, LabeledStatement, WithStatement, SwitchStatement, CaseBlock, CaseClause, DefaultClause, TryStatement, CatchClause, Block, ForInitializer, CaseOrDefaultClause, ImportCall, DestructuringAssignment, EmitHint, ShorthandPropertyAssignment, BinaryExpression, PrefixUnaryExpression, PostfixUnaryExpression, MetaProperty } from "../../types"; +import { ExternalModuleInfo, chainBundle, getOriginalNodeId, collectExternalModuleInfo } from "../utilities"; +import { isEffectiveExternalModule, outFile, getStrictOptionValue, insertStatementsAfterStandardPrologue, isExternalModuleImportEqualsDeclaration, hasSyntacticModifier, isParameterDeclaration, getEmitFlags, getTextOfIdentifierOrLiteral, isDestructuringAssignment, isImportCall, isAssignmentExpression, isAssignmentOperator, isDeclarationNameOfEnumOrNamespace, isImportMeta } from "../../utilities"; +import { tryGetModuleNameFromFile, getExternalModuleNameLiteral, getLocalNameForExternalImport, startOnNewLine, isLocalName, getExternalHelpersModuleName } from "../../factory/utilities"; +import { map, createMap, addRange, forEach, singleOrMany, append, some } from "../../core"; +import { setEmitFlags, moveEmitHelpers, setCommentRange } from "../../factory/emitNode"; +import { setTextRange } from "../../factory/utilitiesPublic"; +import { isExternalModule } from "../../parser"; +import { visitNode, visitNodes, visitEachChild } from "../../visitorPublic"; +import { isStatement, idText, isExpression, isModifier, isClassElement, isBindingPattern, getOriginalNode, isModuleOrEnumDeclaration, isGeneratedIdentifier, isCaseOrDefaultClause } from "../../utilitiesPublic"; +import { Debug } from "../../debug"; +import { isNamedExports, isBlock, isDecorator, isHeritageClause, isOmittedExpression, isIdentifier, isVariableDeclarationList, isCaseBlock, isSpreadElement, isObjectLiteralExpression, isArrayLiteralExpression, isShorthandPropertyAssignment, isPropertyAssignment, isImportClause, isImportSpecifier } from "../../factory/nodeTests"; +import { flattenDestructuringAssignment, FlattenLevel } from "../destructuring"; +import { getNodeId } from "../../checker"; + export function transformSystemModule(context: TransformationContext) { interface DependencyGroup { name: StringLiteral; @@ -1386,6 +1401,7 @@ namespace ts { const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; enclosingBlockScopedContainer = node; + node = factory.updateCaseBlock( node, visitNodes(node.clauses, nestedElementVisitor, isCaseOrDefaultClause) @@ -1893,4 +1909,4 @@ namespace ts { return noSubstitution && node.id && noSubstitution[node.id]; } } -} + diff --git a/src/compiler/transformers/taggedTemplate.ts b/src/compiler/transformers/taggedTemplate.ts index c3b3231916ab1..a4e17f4a3ef3f 100644 --- a/src/compiler/transformers/taggedTemplate.ts +++ b/src/compiler/transformers/taggedTemplate.ts @@ -1,5 +1,14 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, TaggedTemplateExpression, Visitor, SourceFile, Identifier, Expression, TemplateHead, TemplateMiddle, TemplateTail, NoSubstitutionTemplateLiteral, TemplateLiteralLikeNode, SyntaxKind } from "../types"; +import { visitNode, visitEachChild } from "../visitorPublic"; +import { isExpression } from "../utilitiesPublic"; +import { hasInvalidEscape, getSourceTextOfNodeFromSourceFile } from "../utilities"; +import { isNoSubstitutionTemplateLiteral } from "../factory/nodeTests"; +import { factory } from "../factory/nodeFactory"; +import { isExternalModule } from "../parser"; +import { setTextRange } from "../factory/utilitiesPublic"; + export enum ProcessLevel { LiftRestriction, All @@ -97,4 +106,4 @@ namespace ts { text = text.replace(/\r\n?/g, "\n"); return setTextRange(factory.createStringLiteral(text), node); } -} + diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index 1eb4ddb777928..8203b02505bc6 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -1,5 +1,24 @@ /*@internal*/ -namespace ts { + +import { TransformationContext, SyntaxKind, SourceFile, ModuleDeclaration, Identifier, Block, ModuleBlock, CaseBlock, ClassDeclaration, UnderscoreEscapedMap, Node, Bundle, ModifierFlags, FunctionDeclaration, VisitResult, TransformFlags, ImportDeclaration, ImportEqualsDeclaration, ExportAssignment, ExportDeclaration, ConstructorDeclaration, PropertyDeclaration, ClassExpression, HeritageClause, ExpressionWithTypeArguments, MethodDeclaration, GetAccessorDeclaration, SetAccessorDeclaration, FunctionExpression, ArrowFunction, ParameterDeclaration, ParenthesizedExpression, AssertionExpression, CallExpression, NewExpression, TaggedTemplateExpression, NonNullExpression, EnumDeclaration, VariableStatement, VariableDeclaration, JsxSelfClosingElement, JsxOpeningElement, ModuleKind, ScriptTarget, ClassLikeDeclaration, Statement, EmitFlags, NodeFlags, Expression, ClassElement, Decorator, FunctionLikeDeclaration, AccessorDeclaration, Declaration, ObjectLiteralElementLike, BinaryExpression, PropertyAccessExpression, VoidExpression, ConditionalExpression, ArrayLiteralExpression, SignatureDeclaration, TypeNode, ParenthesizedTypeNode, LiteralTypeNode, TypeReferenceNode, UnionOrIntersectionTypeNode, ConditionalTypeNode, TypeOperatorNode, JSDocNullableType, JSDocNonNullableType, JSDocOptionalType, TypeReferenceSerializationKind, EntityName, QualifiedName, EnumMember, PropertyName, InitializedVariableDeclaration, OuterExpressionKinds, __String, TextRange, ImportsNotUsedAsValues, ImportClause, NamedImportBindings, ImportSpecifier, NamedExports, NamespaceExport, NamedExportBindings, ExportSpecifier, NodeCheckFlags, EmitHint, ShorthandPropertyAssignment, ElementAccessExpression, LeftHandSideExpression } from "../types"; +import { getStrictOptionValue, getEmitScriptTarget, getEmitModuleKind, hasSyntacticModifier, modifierToFlag, isJsonSourceFile, getFirstConstructorWithBody, getEffectiveBaseTypeNode, childIsDecorated, createTokenRange, setTextRangeEnd, setTextRangePos, insertStatementsAfterStandardPrologue, moveRangePastDecorators, getEmitFlags, nodeOrChildIsDecorated, parameterIsThisKeyword, getAllAccessorDeclarations, getSetAccessorTypeAnnotationNode, getEffectiveReturnTypeNode, nodeIsPresent, getRestParameterElementType, isAsyncFunction, findAncestor, setParent, hasStaticModifier, nodeIsMissing, moveRangePos, moveRangePastModifiers, getInitializedVariables, getLeadingCommentRangesOfNode, isEnumConst, createUnderscoreEscapedMap, isExternalModuleImportEqualsDeclaration, createRange, isAccessExpression, declarationNameToString, getTextOfNode } from "../utilities"; +import { mapDefined, forEach, some, singleOrMany, filter, addRange, map, flatMap } from "../core"; +import { createUnparsedSourceFile, setOriginalNode } from "../factory/nodeFactory"; +import { addEmitHelpers, setEmitFlags, setCommentRange, setSourceMapRange, removeAllComments, setSyntheticLeadingComments, setSyntheticTrailingComments, addEmitFlags, setConstantValue, addSyntheticTrailingComment } from "../factory/emitNode"; +import { Debug } from "../debug"; +import { isClassDeclaration, isHeritageClause, isIdentifier, isConditionalTypeNode, isPrivateIdentifier, isComputedPropertyName, isJsxAttributes, isModuleDeclaration, isImportClause, isImportSpecifier, isNamespaceExport, isExportSpecifier, isSourceFile, isShorthandPropertyAssignment, isPropertyAccessExpression, isElementAccessExpression } from "../factory/nodeTests"; +import { getParseTreeNode, isStatement, isModifier, isParameterPropertyDeclaration, isClassElement, isExpression, isClassLike, isFunctionLike, idText, skipPartiallyEmittedExpressions, isPropertyName, isLeftHandSideExpression, ParameterPropertyDeclaration, isBindingName, isBindingPattern, isAssertionExpression, isJsxTagNameExpression, isNamedImportBindings, isNamedExportBindings, isGeneratedIdentifier, getOriginalNode } from "../utilitiesPublic"; +import { visitEachChild, visitLexicalEnvironment, visitNodes, visitNode, visitParameterList, visitFunctionBody } from "../visitorPublic"; +import { isExternalModule, parseNodeFactory } from "../parser"; +import { skipOuterExpressions, startOnNewLine, createExpressionFromEntityName, isLocalName } from "../factory/utilities"; +import { getProperties, getOriginalNodeId, isSimpleInlineableExpression, addPrologueDirectivesAndInitialSuperCall } from "./utilities"; +import { skipTrivia } from "../scanner"; +import { setTextRange } from "../factory/utilitiesPublic"; +import { flattenDestructuringAssignment, FlattenLevel } from "./destructuring"; +import { length } from "module"; +import { isInstantiatedModule } from "../checker"; +import { isArray } from "util"; + /** * Indicates whether to emit type metadata in the new format. */ @@ -2751,6 +2770,7 @@ namespace ts { const moduleBlock = getInnerMostModuleDeclarationFromDottedModule(node)!.body; statementsLocation = moveRangePos(moduleBlock.statements, -1); + } } @@ -3365,4 +3385,4 @@ namespace ts { return isPropertyAccessExpression(node) || isElementAccessExpression(node) ? resolver.getConstantValue(node) : undefined; } } -} + diff --git a/src/compiler/transformers/utilities.ts b/src/compiler/transformers/utilities.ts index 7c245ca2f1b43..0bf30ee5cbf60 100644 --- a/src/compiler/transformers/utilities.ts +++ b/src/compiler/transformers/utilities.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts { + +import { Node, ImportDeclaration, ImportEqualsDeclaration, ExportDeclaration, ExportSpecifier, Identifier, ExportAssignment, NamedImportBindings, ImportSpecifier, InternalSymbolName, CoreTransformationContext, SourceFile, Bundle, SyntaxKind, TransformationContext, EmitResolver, CompilerOptions, NamespaceExport, ModifierFlags, VariableStatement, FunctionDeclaration, ClassDeclaration, VariableDeclaration, BindingElement, Expression, BinaryOperator, CompoundAssignmentOperator, LogicalOperatorOrHigher, NodeFactory, ConstructorDeclaration, Statement, Visitor, ClassExpression, InitializedPropertyDeclaration, PropertyDeclaration, ClassElement } from "../types"; +import { getOriginalNode, idText, isBindingPattern, isGeneratedIdentifier, isStringLiteralLike, isStatement } from "../utilitiesPublic"; +import { getNodeId } from "../checker"; +import { isNamedImports, isNamedExports, isOmittedExpression, isIdentifier, isExpressionStatement, isPropertyDeclaration } from "../factory/nodeTests"; +import { some, map, createMultiMap, createMap, append, cast, findIndex, filter } from "../core"; +import { getNamespaceDeclarationNode, isDefaultImport, hasSyntacticModifier, isKeyword, isWellKnownSymbolSyntactically, isSuperCall, hasStaticModifier } from "../utilities"; +import { createExternalHelpersImportDeclarationIfNeeded } from "../factory/utilities"; +import { visitNode } from "../visitorPublic"; + export function getOriginalNodeId(node: Node) { node = getOriginalNode(node); return node ? getNodeId(node) : 0; @@ -363,4 +372,4 @@ namespace ts { return member.kind === SyntaxKind.PropertyDeclaration && (member).initializer !== undefined; } -} + diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index ed14804e19c06..76581b2102df6 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -1,5 +1,8 @@ /*@internal*/ -namespace ts { + +import { ResolvedConfigFileName, Extension } from "./types"; +import { fileExtensionIs, combinePaths } from "./path"; + export enum UpToDateStatusType { Unbuildable, UpToDate, @@ -149,4 +152,4 @@ namespace ts { return combinePaths(project, "tsconfig.json") as ResolvedConfigFileName; } -} \ No newline at end of file + diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 1fa6516340dca..d91fd4274f4ee 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -1,4 +1,23 @@ -namespace ts { +import { CompilerOptionsValue, ResolvedConfigFileName, Path, Extension, ParsedCommandLine, Diagnostic, CancellationToken, ExitStatus, CompilerOptions, WatchOptions, CompilerHost, ResolvedProjectReference, ResolvedModuleFull, WriteFileCallback, CustomTransformers, Program, SourceFile, EmitResult, DiagnosticCollection, DiagnosticMessage } from "./types"; +import { createMap, returnUndefined, noop, maybeBind, copyProperties, hasProperty, GetCanonicalFileName, createGetCanonicalFileName, neverArray, findIndex, identity, assertType, arrayIsEqualTo, forEach, createMapFromTemplate, arrayToMap, arrayFrom, mapDefinedIterator } from "./core"; +import { fileExtensionIs, toPath, resolvePath, getDirectoryPath, convertToRelativePath } from "./path"; +import { BuilderProgram, EmitAndSemanticDiagnosticsBuilderProgram, AffectedFileResult, SemanticDiagnosticsBuilderProgram } from "./builderPublic"; +import { ProgramHost, WatchHost, CreateProgram, WatchStatusReporter, readBuilderProgram } from "./watchPublic"; +import { DiagnosticReporter, commonOptionsWithBuild, ParseConfigFileHost, ExtendedConfigCacheEntry, getParsedCommandLineOfConfigFile, getFileNamesFromConfigSpecs, updateErrorForNoInputFiles, canJsonReportNoInputFiles } from "./commandLineParser"; +import { UpToDateStatus, resolveConfigFileProjectName, UpToDateStatusType, Status } from "./tsbuild"; +import { ConfigFileProgramReloadLevel, WildcardDirectoryWatcher, WatchFile, WatchFilePath, WatchDirectory, closeFileWatcherOf, updateWatchingWildcardDirectories, isIgnoredFileFromWildCardWatching } from "./watchUtilities"; +import { System, sys, FileWatcher, missingFileModifiedTime, PollingInterval } from "./sys"; +import { formatColorAndReset, ForegroundColorEscapeSequences, flattenDiagnosticMessageText, loadWithLocalCache, parseConfigHostFromCompilerHostLike, changeCompilerHostLikeToUseCache, getConfigFileParsingDiagnostics, resolveProjectReferencePath } from "./program"; +import { getLocaleTimeString, createProgramHost, createDiagnosticReporter, createWatchHost, WatchType, createCompilerHostFromProgramHost, setGetSourceFileAsHashVersioned, createWatchFactory, emitFilesAndReportErrors, listFiles, getErrorCountForSummary, getWatchErrorSummaryDiagnosticMessage } from "./watch"; +import { ModuleResolutionCache, createModuleResolutionCache, resolveModuleName } from "./moduleNameResolver"; +import { Debug } from "./debug"; +import { createCompilerDiagnostic, arrayToSet, mutateMapSkippingNewValues, closeFileWatcher, createDiagnosticCollection, isIncrementalCompilation, outFile, mutateMap, clearMap } from "./utilities"; +import { OutputFile } from "./builderStatePublic"; +import { writeFile } from "fs"; +import { getFirstProjectOutput, emitUsingBuildInfo, getAllProjectOutputs, getTsBuildInfoEmitOutputFilePath, getBuildInfo } from "./emitter"; +import { isString } from "util"; +import { version } from "os"; + const minimumDate = new Date(-8640000000000000); const maximumDate = new Date(8640000000000000); @@ -338,8 +357,8 @@ namespace ts { return state; } - function toPath(state: SolutionBuilderState, fileName: string) { - return ts.toPath(fileName, state.currentDirectory, state.getCanonicalFileName); + function toPathNameSpaceLocal(state: SolutionBuilderState, fileName: string) { + return toPath(fileName, state.currentDirectory, state.getCanonicalFileName); } function toResolvedConfigFilePath(state: SolutionBuilderState, fileName: ResolvedConfigFileName): ResolvedConfigFilePath { @@ -347,7 +366,7 @@ namespace ts { const path = resolvedConfigFilePaths.get(fileName); if (path !== undefined) return path; - const resolvedPath = toPath(state, fileName) as ResolvedConfigFilePath; + const resolvedPath = toPathNameSpaceLocal(state, fileName) as ResolvedConfigFilePath; resolvedConfigFilePaths.set(fileName, resolvedPath); return resolvedPath; } @@ -394,8 +413,8 @@ namespace ts { } return circularDiagnostics ? - { buildOrder: buildOrder || emptyArray, circularDiagnostics } : - buildOrder || emptyArray; + { buildOrder: buildOrder || neverArray, circularDiagnostics } : + buildOrder || neverArray; function visit(configFileName: ResolvedConfigFileName, inCircularContext?: boolean) { const projPath = toResolvedConfigFilePath(state, configFileName); @@ -512,7 +531,7 @@ namespace ts { getSourceFileWithCache, readFileWithCache } = changeCompilerHostLikeToUseCache( host, - fileName => toPath(state, fileName), + fileName => toPathNameSpaceLocal(state, fileName), (...args) => originalGetSourceFile.call(compilerHost, ...args) ); state.readFileWithCache = readFileWithCache; @@ -800,7 +819,7 @@ namespace ts { } function withProgramOrEmptyArray(action: (program: T) => readonly U[]): readonly U[] { - return withProgramOrUndefined(action) || emptyArray; + return withProgramOrUndefined(action) || neverArray; } function createProgram() { @@ -938,7 +957,7 @@ namespace ts { } } - emittedOutputs.set(toPath(state, name), name); + emittedOutputs.set(toPathNameSpaceLocal(state, name), name); writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark); if (priorChangeTime !== undefined) { newestDeclarationFileContentChangedTime = newer(priorChangeTime, newestDeclarationFileContentChangedTime); @@ -1059,7 +1078,7 @@ namespace ts { const emitterDiagnostics = createDiagnosticCollection(); const emittedOutputs = new Map(); outputFiles.forEach(({ name, text, writeByteOrderMark }) => { - emittedOutputs.set(toPath(state, name), name); + emittedOutputs.set(toPathNameSpaceLocal(state, name), name); writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark); }); @@ -1300,7 +1319,7 @@ namespace ts { // Update module resolution cache if needed const { moduleResolutionCache } = state; - const projPath = toPath(state, proj); + const projPath = toPathNameSpaceLocal(state, proj); if (moduleResolutionCache.directoryToModuleNameMap.redirectsMap.size === 0) { // The own map will be for projectCompilerOptions Debug.assert(moduleResolutionCache.moduleNameToDirectoryMap.redirectsMap.size === 0); @@ -1490,7 +1509,7 @@ namespace ts { if (configStatus) return configStatus; // Check extended config time - const extendedConfigStatus = forEach(project.options.configFile!.extendedSourceFiles || emptyArray, configFile => checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName)); + const extendedConfigStatus = forEach(project.options.configFile!.extendedSourceFiles || neverArray, configFile => checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName)); if (extendedConfigStatus) return extendedConfigStatus; } @@ -1551,7 +1570,7 @@ namespace ts { let reportVerbose = !!state.options.verbose; const now = host.now ? host.now() : new Date(); for (const file of outputs) { - if (skipOutputs && skipOutputs.has(toPath(state, file))) { + if (skipOutputs && skipOutputs.has(toPathNameSpaceLocal(state, file))) { continue; } @@ -1802,9 +1821,9 @@ namespace ts { dir, fileOrDirectory => { if (isIgnoredFileFromWildCardWatching({ - watchedDirPath: toPath(state, dir), + watchedDirPath: toPathNameSpaceLocal(state, dir), fileOrDirectory, - fileOrDirectoryPath: toPath(state, fileOrDirectory), + fileOrDirectoryPath: toPathNameSpaceLocal(state, fileOrDirectory), configFileName: resolved, configFileSpecs: parsed.configFileSpecs!, currentDirectory: state.currentDirectory, @@ -1828,7 +1847,7 @@ namespace ts { if (!state.watch) return; mutateMap( getOrCreateValueMapFromConfigFileMap(state.allWatchedInputFiles, resolvedPath), - arrayToMap(parsed.fileNames, fileName => toPath(state, fileName)), + arrayToMap(parsed.fileNames, fileName => toPathNameSpaceLocal(state, fileName)), { createNewValue: (path, input) => state.watchFilePath( state.hostWithWatch, @@ -1948,7 +1967,7 @@ namespace ts { buildOrder.forEach(project => { const projectPath = toResolvedConfigFilePath(state, project); if (!state.projectErrorsReported.has(projectPath)) { - reportErrors(state, diagnostics.get(projectPath) || emptyArray); + reportErrors(state, diagnostics.get(projectPath) || neverArray); } }); if (canReportSummary) diagnostics.forEach(singleProjectErrors => totalErrors += getErrorCountForSummary(singleProjectErrors)); @@ -2071,4 +2090,4 @@ namespace ts { reportUpToDateStatus(state, configFileName, status); } } -} + diff --git a/src/compiler/tsconfig.json b/src/compiler/tsconfig.json index 6b17c1b21d32b..33db4a8444f5a 100644 --- a/src/compiler/tsconfig.json +++ b/src/compiler/tsconfig.json @@ -5,7 +5,8 @@ }, "references": [ - { "path": "../shims" } + { "path": "../shims" }, + { "path": "../namespaceLike" } ], "files": [ @@ -18,6 +19,7 @@ "semver.ts", "types.ts", + "types.generated.ts", "sys.ts", "path.ts", "diagnosticInformationMap.generated.ts", diff --git a/src/compiler/types.generated.ts b/src/compiler/types.generated.ts new file mode 100644 index 0000000000000..4bcf8665678e9 --- /dev/null +++ b/src/compiler/types.generated.ts @@ -0,0 +1,851 @@ + enum SyntaxKind { + Unknown, + EndOfFileToken, + SingleLineCommentTrivia, + MultiLineCommentTrivia, + NewLineTrivia, + WhitespaceTrivia, + // We detect and preserve #! on the first line + ShebangTrivia, + // We detect and provide better error recovery when we encounter a git merge marker. This + // allows us to edit files with git-conflict markers in them in a much more pleasant manner. + ConflictMarkerTrivia, + // Literals + NumericLiteral, + BigIntLiteral, + StringLiteral, + JsxText, + JsxTextAllWhiteSpaces, + RegularExpressionLiteral, + NoSubstitutionTemplateLiteral, + // Pseudo-literals + TemplateHead, + TemplateMiddle, + TemplateTail, + // Punctuation + OpenBraceToken, + CloseBraceToken, + OpenParenToken, + CloseParenToken, + OpenBracketToken, + CloseBracketToken, + DotToken, + DotDotDotToken, + SemicolonToken, + CommaToken, + QuestionDotToken, + LessThanToken, + LessThanSlashToken, + GreaterThanToken, + LessThanEqualsToken, + GreaterThanEqualsToken, + EqualsEqualsToken, + ExclamationEqualsToken, + EqualsEqualsEqualsToken, + ExclamationEqualsEqualsToken, + EqualsGreaterThanToken, + PlusToken, + MinusToken, + AsteriskToken, + AsteriskAsteriskToken, + SlashToken, + PercentToken, + PlusPlusToken, + MinusMinusToken, + LessThanLessThanToken, + GreaterThanGreaterThanToken, + GreaterThanGreaterThanGreaterThanToken, + AmpersandToken, + BarToken, + CaretToken, + ExclamationToken, + TildeToken, + AmpersandAmpersandToken, + BarBarToken, + QuestionToken, + ColonToken, + AtToken, + QuestionQuestionToken, + /** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTemplateLiteral and related kinds. */ + BacktickToken, + // Assignments + EqualsToken, + PlusEqualsToken, + MinusEqualsToken, + AsteriskEqualsToken, + AsteriskAsteriskEqualsToken, + SlashEqualsToken, + PercentEqualsToken, + LessThanLessThanEqualsToken, + GreaterThanGreaterThanEqualsToken, + GreaterThanGreaterThanGreaterThanEqualsToken, + AmpersandEqualsToken, + BarEqualsToken, + BarBarEqualsToken, + AmpersandAmpersandEqualsToken, + QuestionQuestionEqualsToken, + CaretEqualsToken, + // Identifiers and PrivateIdentifiers + Identifier, + PrivateIdentifier, + // Reserved words + BreakKeyword, + CaseKeyword, + CatchKeyword, + ClassKeyword, + ConstKeyword, + ContinueKeyword, + DebuggerKeyword, + DefaultKeyword, + DeleteKeyword, + DoKeyword, + ElseKeyword, + EnumKeyword, + ExportKeyword, + ExtendsKeyword, + FalseKeyword, + FinallyKeyword, + ForKeyword, + FunctionKeyword, + IfKeyword, + ImportKeyword, + InKeyword, + InstanceOfKeyword, + NewKeyword, + NullKeyword, + ReturnKeyword, + SuperKeyword, + SwitchKeyword, + ThisKeyword, + ThrowKeyword, + TrueKeyword, + TryKeyword, + TypeOfKeyword, + VarKeyword, + VoidKeyword, + WhileKeyword, + WithKeyword, + // Strict mode reserved words + ImplementsKeyword, + InterfaceKeyword, + LetKeyword, + PackageKeyword, + PrivateKeyword, + ProtectedKeyword, + PublicKeyword, + StaticKeyword, + YieldKeyword, + // Contextual keywords + AbstractKeyword, + AsKeyword, + AssertsKeyword, + AnyKeyword, + AsyncKeyword, + AwaitKeyword, + BooleanKeyword, + ConstructorKeyword, + DeclareKeyword, + GetKeyword, + InferKeyword, + IsKeyword, + KeyOfKeyword, + ModuleKeyword, + NamespaceKeyword, + NeverKeyword, + ReadonlyKeyword, + RequireKeyword, + NumberKeyword, + ObjectKeyword, + SetKeyword, + StringKeyword, + SymbolKeyword, + TypeKeyword, + UndefinedKeyword, + UniqueKeyword, + UnknownKeyword, + FromKeyword, + GlobalKeyword, + BigIntKeyword, + OfKeyword, // LastKeyword and LastToken and LastContextualKeyword + + // Parse tree nodes + + // Names + QualifiedName, + ComputedPropertyName, + // Signature elements + TypeParameter, + Parameter, + Decorator, + // TypeMember + PropertySignature, + PropertyDeclaration, + MethodSignature, + MethodDeclaration, + Constructor, + GetAccessor, + SetAccessor, + CallSignature, + ConstructSignature, + IndexSignature, + // Type + TypePredicate, + TypeReference, + FunctionType, + ConstructorType, + TypeQuery, + TypeLiteral, + ArrayType, + TupleType, + OptionalType, + RestType, + UnionType, + IntersectionType, + ConditionalType, + InferType, + ParenthesizedType, + ThisType, + TypeOperator, + IndexedAccessType, + MappedType, + LiteralType, + NamedTupleMember, + ImportType, + // Binding patterns + ObjectBindingPattern, + ArrayBindingPattern, + BindingElement, + // Expression + ArrayLiteralExpression, + ObjectLiteralExpression, + PropertyAccessExpression, + ElementAccessExpression, + CallExpression, + NewExpression, + TaggedTemplateExpression, + TypeAssertionExpression, + ParenthesizedExpression, + FunctionExpression, + ArrowFunction, + DeleteExpression, + TypeOfExpression, + VoidExpression, + AwaitExpression, + PrefixUnaryExpression, + PostfixUnaryExpression, + BinaryExpression, + ConditionalExpression, + TemplateExpression, + YieldExpression, + SpreadElement, + ClassExpression, + OmittedExpression, + ExpressionWithTypeArguments, + AsExpression, + NonNullExpression, + MetaProperty, + SyntheticExpression, + + // Misc + TemplateSpan, + SemicolonClassElement, + // Element + Block, + EmptyStatement, + VariableStatement, + ExpressionStatement, + IfStatement, + DoStatement, + WhileStatement, + ForStatement, + ForInStatement, + ForOfStatement, + ContinueStatement, + BreakStatement, + ReturnStatement, + WithStatement, + SwitchStatement, + LabeledStatement, + ThrowStatement, + TryStatement, + DebuggerStatement, + VariableDeclaration, + VariableDeclarationList, + FunctionDeclaration, + ClassDeclaration, + InterfaceDeclaration, + TypeAliasDeclaration, + EnumDeclaration, + ModuleDeclaration, + ModuleBlock, + CaseBlock, + NamespaceExportDeclaration, + ImportEqualsDeclaration, + ImportDeclaration, + ImportClause, + NamespaceImport, + NamedImports, + ImportSpecifier, + ExportAssignment, + ExportDeclaration, + NamedExports, + NamespaceExport, + ExportSpecifier, + MissingDeclaration, + + // Module references + ExternalModuleReference, + + // JSX + JsxElement, + JsxSelfClosingElement, + JsxOpeningElement, + JsxClosingElement, + JsxFragment, + JsxOpeningFragment, + JsxClosingFragment, + JsxAttribute, + JsxAttributes, + JsxSpreadAttribute, + JsxExpression, + + // Clauses + CaseClause, + DefaultClause, + HeritageClause, + CatchClause, + + // Property assignments + PropertyAssignment, + ShorthandPropertyAssignment, + SpreadAssignment, + + // Enum + EnumMember, + // Unparsed + UnparsedPrologue, + UnparsedPrepend, + UnparsedText, + UnparsedInternalText, + UnparsedSyntheticReference, + + // Top-level nodes + SourceFile, + Bundle, + UnparsedSource, + InputFiles, + + // JSDoc nodes + JSDocTypeExpression, + // The * type + JSDocAllType, + // The ? type + JSDocUnknownType, + JSDocNullableType, + JSDocNonNullableType, + JSDocOptionalType, + JSDocFunctionType, + JSDocVariadicType, + // https://jsdoc.app/about-namepaths.html + JSDocNamepathType, + JSDocComment, + JSDocTypeLiteral, + JSDocSignature, + JSDocTag, + JSDocAugmentsTag, + JSDocImplementsTag, + JSDocAuthorTag, + JSDocDeprecatedTag, + JSDocClassTag, + JSDocPublicTag, + JSDocPrivateTag, + JSDocProtectedTag, + JSDocReadonlyTag, + JSDocCallbackTag, + JSDocEnumTag, + JSDocParameterTag, + JSDocReturnTag, + JSDocThisTag, + JSDocTypeTag, + JSDocTemplateTag, + JSDocTypedefTag, + JSDocPropertyTag, + + // Synthesized list + SyntaxList, + + // Transformation nodes + NotEmittedStatement, + PartiallyEmittedExpression, + CommaListExpression, + MergeDeclarationMarker, + EndOfDeclarationMarker, + SyntheticReferenceExpression, + + // Enum value count + Count, + + // Markers + FirstAssignment = EqualsToken, + LastAssignment = CaretEqualsToken, + FirstCompoundAssignment = PlusEqualsToken, + LastCompoundAssignment = CaretEqualsToken, + FirstReservedWord = BreakKeyword, + LastReservedWord = WithKeyword, + FirstKeyword = BreakKeyword, + LastKeyword = OfKeyword, + FirstFutureReservedWord = ImplementsKeyword, + LastFutureReservedWord = YieldKeyword, + FirstTypeNode = TypePredicate, + LastTypeNode = ImportType, + FirstPunctuation = OpenBraceToken, + LastPunctuation = CaretEqualsToken, + FirstToken = Unknown, + LastToken = LastKeyword, + FirstTriviaToken = SingleLineCommentTrivia, + LastTriviaToken = ConflictMarkerTrivia, + FirstLiteralToken = NumericLiteral, + LastLiteralToken = NoSubstitutionTemplateLiteral, + FirstTemplateToken = NoSubstitutionTemplateLiteral, + LastTemplateToken = TemplateTail, + FirstBinaryOperator = LessThanToken, + LastBinaryOperator = CaretEqualsToken, + FirstStatement = VariableStatement, + LastStatement = DebuggerStatement, + FirstNode = QualifiedName, + FirstJSDocNode = JSDocTypeExpression, + LastJSDocNode = JSDocPropertyTag, + FirstJSDocTagNode = JSDocTag, + LastJSDocTagNode = JSDocPropertyTag, + /* @internal */ FirstContextualKeyword = AbstractKeyword, + /* @internal */ LastContextualKeyword = OfKeyword, + } + enum NodeFlags { + None = 0, + Let = 1 << 0, // Variable declaration + Const = 1 << 1, // Variable declaration + NestedNamespace = 1 << 2, // Namespace declaration + Synthesized = 1 << 3, // Node was synthesized during transformation + Namespace = 1 << 4, // Namespace declaration + OptionalChain = 1 << 5, // Chained MemberExpression rooted to a pseudo-OptionalExpression + ExportContext = 1 << 6, // Export context (initialized by binding) + ContainsThis = 1 << 7, // Interface contains references to "this" + HasImplicitReturn = 1 << 8, // If function implicitly returns on one of codepaths (initialized by binding) + HasExplicitReturn = 1 << 9, // If function has explicit reachable return on one of codepaths (initialized by binding) + GlobalAugmentation = 1 << 10, // Set if module declaration is an augmentation for the global scope + HasAsyncFunctions = 1 << 11, // If the file has async functions (initialized by binding) + DisallowInContext = 1 << 12, // If node was parsed in a context where 'in-expressions' are not allowed + YieldContext = 1 << 13, // If node was parsed in the 'yield' context created when parsing a generator + DecoratorContext = 1 << 14, // If node was parsed as part of a decorator + AwaitContext = 1 << 15, // If node was parsed in the 'await' context created when parsing an async function + ThisNodeHasError = 1 << 16, // If the parser encountered an error when parsing the code that created this node + JavaScriptFile = 1 << 17, // If node was parsed in a JavaScript + ThisNodeOrAnySubNodesHasError = 1 << 18, // If this node or any of its children had an error + HasAggregatedChildData = 1 << 19, // If we've computed data from children and cached it in this node + + // These flags will be set when the parser encounters a dynamic import expression or 'import.meta' to avoid + // walking the tree if the flags are not set. However, these flags are just a approximation + // (hence why it's named "PossiblyContainsDynamicImport") because once set, the flags never get cleared. + // During editing, if a dynamic import is removed, incremental parsing will *NOT* clear this flag. + // This means that the tree will always be traversed during module resolution, or when looking for external module indicators. + // However, the removal operation should not occur often and in the case of the + // removal, it is likely that users will add the import anyway. + // The advantage of this approach is its simplicity. For the case of batch compilation, + // we guarantee that users won't have to pay the price of walking the tree if a dynamic import isn't used. + /* @internal */ PossiblyContainsDynamicImport = 1 << 20, + /* @internal */ PossiblyContainsImportMeta = 1 << 21, + + JSDoc = 1 << 22, // If node was parsed inside jsdoc + /* @internal */ Ambient = 1 << 23, // If node was inside an ambient context -- a declaration file, or inside something with the `declare` modifier. + /* @internal */ InWithStatement = 1 << 24, // If any ancestor of node was the `statement` of a WithStatement (not the `expression`) + JsonFile = 1 << 25, // If node was parsed in a Json + /* @internal */ TypeCached = 1 << 26, // If a type was cached for node at any point + /* @internal */ Deprecated = 1 << 27, // If has '@deprecated' JSDoc tag + + BlockScoped = Let | Const, + + ReachabilityCheckFlags = HasImplicitReturn | HasExplicitReturn, + ReachabilityAndEmitFlags = ReachabilityCheckFlags | HasAsyncFunctions, + + // Parsing context flags + ContextFlags = DisallowInContext | YieldContext | DecoratorContext | AwaitContext | JavaScriptFile | InWithStatement | Ambient, + + // Exclude these flags when parsing a Type + TypeExcludesFlags = YieldContext | AwaitContext, + + // Represents all flags that are potentially set once and + // never cleared on SourceFiles which get re-used in between incremental parses. + // See the comment above on `PossiblyContainsDynamicImport` and `PossiblyContainsImportMeta`. + /* @internal */ PermanentlySetIncrementalFlags = PossiblyContainsDynamicImport | PossiblyContainsImportMeta, + } + enum ModifierFlags { + None = 0, + Export = 1 << 0, // Declarations + Ambient = 1 << 1, // Declarations + Public = 1 << 2, // Property/Method + Private = 1 << 3, // Property/Method + Protected = 1 << 4, // Property/Method + Static = 1 << 5, // Property/Method + Readonly = 1 << 6, // Property/Method + Abstract = 1 << 7, // Class/Method/ConstructSignature + Async = 1 << 8, // Property/Method/Function + Default = 1 << 9, // Function/Class (export default declaration) + Const = 1 << 11, // Const enum + HasComputedJSDocModifiers = 1 << 12, // Indicates the computed modifier flags include modifiers from JSDoc. + + Deprecated = 1 << 13, // Deprecated tag. + HasComputedFlags = 1 << 29, // Modifier flags have been computed + + AccessibilityModifier = Public | Private | Protected, + // Accessibility modifiers and 'readonly' can be attached to a parameter in a constructor to make it a property. + ParameterPropertyModifier = AccessibilityModifier | Readonly, + NonPublicAccessibilityModifier = Private | Protected, + + TypeScriptModifier = Ambient | Public | Private | Protected | Readonly | Abstract | Const, + ExportDefault = Export | Default, + All = Export | Ambient | Public | Private | Protected | Static | Readonly | Abstract | Async | Default | Const | Deprecated + } + enum SymbolFlags { + None = 0, + FunctionScopedVariable = 1 << 0, // Variable (var) or parameter + BlockScopedVariable = 1 << 1, // A block-scoped variable (let or const) + Property = 1 << 2, // Property or enum member + EnumMember = 1 << 3, // Enum member + Function = 1 << 4, // Function + Class = 1 << 5, // Class + Interface = 1 << 6, // Interface + ConstEnum = 1 << 7, // Const enum + RegularEnum = 1 << 8, // Enum + ValueModule = 1 << 9, // Instantiated module + NamespaceModule = 1 << 10, // Uninstantiated module + TypeLiteral = 1 << 11, // Type Literal or mapped type + ObjectLiteral = 1 << 12, // Object Literal + Method = 1 << 13, // Method + Constructor = 1 << 14, // Constructor + GetAccessor = 1 << 15, // Get accessor + SetAccessor = 1 << 16, // Set accessor + Signature = 1 << 17, // Call, construct, or index signature + TypeParameter = 1 << 18, // Type parameter + TypeAlias = 1 << 19, // Type alias + ExportValue = 1 << 20, // Exported value marker (see comment in declareModuleMember in binder) + Alias = 1 << 21, // An alias for another symbol (see comment in isAliasSymbolDeclaration in checker) + Prototype = 1 << 22, // Prototype property (no source representation) + ExportStar = 1 << 23, // Export * declaration + Optional = 1 << 24, // Optional property + Transient = 1 << 25, // Transient symbol (created during type check) + Assignment = 1 << 26, // Assignment treated as declaration (eg `this.prop = 1`) + ModuleExports = 1 << 27, // Symbol for CommonJS `module` of `module.exports` + Deprecated = 1 << 28, // Symbol has Deprecated declaration tag (eg `@deprecated`) + /* @internal */ + All = FunctionScopedVariable | BlockScopedVariable | Property | EnumMember | Function | Class | Interface | ConstEnum | RegularEnum | ValueModule | NamespaceModule | TypeLiteral + | ObjectLiteral | Method | Constructor | GetAccessor | SetAccessor | Signature | TypeParameter | TypeAlias | ExportValue | Alias | Prototype | ExportStar | Optional | Transient | Deprecated, + + Enum = RegularEnum | ConstEnum, + Variable = FunctionScopedVariable | BlockScopedVariable, + Value = Variable | Property | EnumMember | ObjectLiteral | Function | Class | Enum | ValueModule | Method | GetAccessor | SetAccessor, + Type = Class | Interface | Enum | EnumMember | TypeLiteral | TypeParameter | TypeAlias, + Namespace = ValueModule | NamespaceModule | Enum, + Module = ValueModule | NamespaceModule, + Accessor = GetAccessor | SetAccessor, + + // Variables can be redeclared, but can not redeclare a block-scoped declaration with the + // same name, or any other value that is not a variable, e.g. ValueModule or Class + FunctionScopedVariableExcludes = Value & ~FunctionScopedVariable, + + // Block-scoped declarations are not allowed to be re-declared + // they can not merge with anything in the value space + BlockScopedVariableExcludes = Value, + + ParameterExcludes = Value, + PropertyExcludes = None, + EnumMemberExcludes = Value | Type, + FunctionExcludes = Value & ~(Function | ValueModule | Class), + ClassExcludes = (Value | Type) & ~(ValueModule | Interface | Function), // class-interface mergability done in checker.ts + InterfaceExcludes = Type & ~(Interface | Class), + RegularEnumExcludes = (Value | Type) & ~(RegularEnum | ValueModule), // regular enums merge only with regular enums and modules + ConstEnumExcludes = (Value | Type) & ~ConstEnum, // const enums merge only with const enums + ValueModuleExcludes = Value & ~(Function | Class | RegularEnum | ValueModule), + NamespaceModuleExcludes = 0, + MethodExcludes = Value & ~Method, + GetAccessorExcludes = Value & ~SetAccessor, + SetAccessorExcludes = Value & ~GetAccessor, + TypeParameterExcludes = Type & ~TypeParameter, + TypeAliasExcludes = Type, + AliasExcludes = Alias, + + ModuleMember = Variable | Function | Class | Interface | Enum | Module | TypeAlias | Alias, + + ExportHasLocal = Function | Class | Enum | ValueModule, + + BlockScoped = BlockScopedVariable | Class | Enum, + + PropertyOrAccessor = Property | Accessor, + + ClassMember = Method | Accessor | Property, + + /* @internal */ + ExportSupportsDefaultModifier = Class | Function | Interface, + + /* @internal */ + ExportDoesNotSupportDefaultModifier = ~ExportSupportsDefaultModifier, + + /* @internal */ + // The set of things we consider semantically classifiable. Used to speed up the LS during + // classification. + Classifiable = Class | Enum | TypeAlias | Interface | TypeParameter | Module | Alias, + + /* @internal */ + LateBindingContainer = Class | Interface | TypeLiteral | ObjectLiteral | Function, + } + enum TypeFlags { + Any = 1 << 0, + Unknown = 1 << 1, + String = 1 << 2, + Number = 1 << 3, + Boolean = 1 << 4, + Enum = 1 << 5, + BigInt = 1 << 6, + StringLiteral = 1 << 7, + NumberLiteral = 1 << 8, + BooleanLiteral = 1 << 9, + EnumLiteral = 1 << 10, // Always combined with StringLiteral, NumberLiteral, or Union + BigIntLiteral = 1 << 11, + ESSymbol = 1 << 12, // Type of symbol primitive introduced in ES6 + UniqueESSymbol = 1 << 13, // unique symbol + Void = 1 << 14, + Undefined = 1 << 15, + Null = 1 << 16, + Never = 1 << 17, // Never type + TypeParameter = 1 << 18, // Type parameter + Object = 1 << 19, // Object type + Union = 1 << 20, // Union (T | U) + Intersection = 1 << 21, // Intersection (T & U) + Index = 1 << 22, // keyof T + IndexedAccess = 1 << 23, // T[K] + Conditional = 1 << 24, // T extends U ? X : Y + Substitution = 1 << 25, // Type parameter substitution + NonPrimitive = 1 << 26, // intrinsic object type + + /* @internal */ + AnyOrUnknown = Any | Unknown, + /* @internal */ + Nullable = Undefined | Null, + Literal = StringLiteral | NumberLiteral | BigIntLiteral | BooleanLiteral, + Unit = Literal | UniqueESSymbol | Nullable, + StringOrNumberLiteral = StringLiteral | NumberLiteral, + /* @internal */ + StringOrNumberLiteralOrUnique = StringLiteral | NumberLiteral | UniqueESSymbol, + /* @internal */ + DefinitelyFalsy = StringLiteral | NumberLiteral | BigIntLiteral | BooleanLiteral | Void | Undefined | Null, + PossiblyFalsy = DefinitelyFalsy | String | Number | BigInt | Boolean, + /* @internal */ + Intrinsic = Any | Unknown | String | Number | BigInt | Boolean | BooleanLiteral | ESSymbol | Void | Undefined | Null | Never | NonPrimitive, + /* @internal */ + Primitive = String | Number | BigInt | Boolean | Enum | EnumLiteral | ESSymbol | Void | Undefined | Null | Literal | UniqueESSymbol, + StringLike = String | StringLiteral, + NumberLike = Number | NumberLiteral | Enum, + BigIntLike = BigInt | BigIntLiteral, + BooleanLike = Boolean | BooleanLiteral, + EnumLike = Enum | EnumLiteral, + ESSymbolLike = ESSymbol | UniqueESSymbol, + VoidLike = Void | Undefined, + /* @internal */ + DisjointDomains = NonPrimitive | StringLike | NumberLike | BigIntLike | BooleanLike | ESSymbolLike | VoidLike | Null, + UnionOrIntersection = Union | Intersection, + StructuredType = Object | Union | Intersection, + TypeVariable = TypeParameter | IndexedAccess, + InstantiableNonPrimitive = TypeVariable | Conditional | Substitution, + InstantiablePrimitive = Index, + Instantiable = InstantiableNonPrimitive | InstantiablePrimitive, + StructuredOrInstantiable = StructuredType | Instantiable, + /* @internal */ + ObjectFlagsType = Any | Nullable | Never | Object | Union | Intersection, + /* @internal */ + Simplifiable = IndexedAccess | Conditional, + /* @internal */ + Substructure = Object | Union | Intersection | Index | IndexedAccess | Conditional | Substitution, + // 'Narrowable' types are types where narrowing actually narrows. + // This *should* be every type other than null, undefined, void, and never + Narrowable = Any | Unknown | StructuredOrInstantiable | StringLike | NumberLike | BigIntLike | BooleanLike | ESSymbol | UniqueESSymbol | NonPrimitive, + NotUnionOrUnit = Any | Unknown | ESSymbol | Object | NonPrimitive, + /* @internal */ + NotPrimitiveUnion = Any | Unknown | Enum | Void | Never | StructuredOrInstantiable, + // The following flags are aggregated during union and intersection type construction + /* @internal */ + IncludesMask = Any | Unknown | Primitive | Never | Object | Union | Intersection | NonPrimitive, + // The following flags are used for different purposes during union and intersection type construction + /* @internal */ + IncludesStructuredOrInstantiable = TypeParameter, + /* @internal */ + IncludesNonWideningType = Index, + /* @internal */ + IncludesWildcard = IndexedAccess, + /* @internal */ + IncludesEmptyObject = Conditional, + } + enum ObjectFlags { + Class = 1 << 0, // Class + Interface = 1 << 1, // Interface + Reference = 1 << 2, // Generic type reference + Tuple = 1 << 3, // Synthesized generic tuple type + Anonymous = 1 << 4, // Anonymous + Mapped = 1 << 5, // Mapped + Instantiated = 1 << 6, // Instantiated anonymous or mapped type + ObjectLiteral = 1 << 7, // Originates in an object literal + EvolvingArray = 1 << 8, // Evolving array type + ObjectLiteralPatternWithComputedProperties = 1 << 9, // Object literal pattern with computed properties + ContainsSpread = 1 << 10, // Object literal contains spread operation + ReverseMapped = 1 << 11, // Object contains a property from a reverse-mapped type + JsxAttributes = 1 << 12, // Jsx attributes type + MarkerType = 1 << 13, // Marker type used for variance probing + JSLiteral = 1 << 14, // Object type declared in JS - disables errors on read/write of nonexisting members + FreshLiteral = 1 << 15, // Fresh object literal + ArrayLiteral = 1 << 16, // Originates in an array literal + ObjectRestType = 1 << 17, // Originates in object rest declaration + /* @internal */ + PrimitiveUnion = 1 << 18, // Union of only primitive types + /* @internal */ + ContainsWideningType = 1 << 19, // Type is or contains undefined or null widening type + /* @internal */ + ContainsObjectOrArrayLiteral = 1 << 20, // Type is or contains object literal type + /* @internal */ + NonInferrableType = 1 << 21, // Type is or contains anyFunctionType or silentNeverType + /* @internal */ + IsGenericObjectTypeComputed = 1 << 22, // IsGenericObjectType flag has been computed + /* @internal */ + IsGenericObjectType = 1 << 23, // Union or intersection contains generic object type + /* @internal */ + IsGenericIndexTypeComputed = 1 << 24, // IsGenericIndexType flag has been computed + /* @internal */ + IsGenericIndexType = 1 << 25, // Union or intersection contains generic index type + /* @internal */ + CouldContainTypeVariablesComputed = 1 << 26, // CouldContainTypeVariables flag has been computed + /* @internal */ + CouldContainTypeVariables = 1 << 27, // Type could contain a type variable + /* @internal */ + ContainsIntersections = 1 << 28, // Union contains intersections + /* @internal */ + IsNeverIntersectionComputed = 1 << 28, // IsNeverLike flag has been computed + /* @internal */ + IsNeverIntersection = 1 << 29, // Intersection reduces to never + ClassOrInterface = Class | Interface, + /* @internal */ + RequiresWidening = ContainsWideningType | ContainsObjectOrArrayLiteral, + /* @internal */ + PropagatingFlags = ContainsWideningType | ContainsObjectOrArrayLiteral | NonInferrableType + } + enum TransformFlags { + None = 0, + + // Facts + // - Flags used to indicate that a node or subtree contains syntax that requires transformation. + ContainsTypeScript = 1 << 0, + ContainsJsx = 1 << 1, + ContainsESNext = 1 << 2, + ContainsES2020 = 1 << 3, + ContainsES2019 = 1 << 4, + ContainsES2018 = 1 << 5, + ContainsES2017 = 1 << 6, + ContainsES2016 = 1 << 7, + ContainsES2015 = 1 << 8, + ContainsGenerator = 1 << 9, + ContainsDestructuringAssignment = 1 << 10, + + // Markers + // - Flags used to indicate that a subtree contains a specific transformation. + ContainsTypeScriptClassSyntax = 1 << 11, // Decorators, Property Initializers, Parameter Property Initializers + ContainsLexicalThis = 1 << 12, + ContainsRestOrSpread = 1 << 13, + ContainsObjectRestOrSpread = 1 << 14, + ContainsComputedPropertyName = 1 << 15, + ContainsBlockScopedBinding = 1 << 16, + ContainsBindingPattern = 1 << 17, + ContainsYield = 1 << 18, + ContainsAwait = 1 << 19, + ContainsHoistedDeclarationOrCompletion = 1 << 20, + ContainsDynamicImport = 1 << 21, + ContainsClassFields = 1 << 22, + ContainsPossibleTopLevelAwait = 1 << 23, + + // Please leave this as 1 << 29. + // It is the maximum bit we can set before we outgrow the size of a v8 small integer (SMI) on an x86 system. + // It is a good reminder of how much room we have left + HasComputedFlags = 1 << 29, // Transform flags have been computed. + + // Assertions + // - Bitmasks that are used to assert facts about the syntax of a node and its subtree. + AssertTypeScript = ContainsTypeScript, + AssertJsx = ContainsJsx, + AssertESNext = ContainsESNext, + AssertES2020 = ContainsES2020, + AssertES2019 = ContainsES2019, + AssertES2018 = ContainsES2018, + AssertES2017 = ContainsES2017, + AssertES2016 = ContainsES2016, + AssertES2015 = ContainsES2015, + AssertGenerator = ContainsGenerator, + AssertDestructuringAssignment = ContainsDestructuringAssignment, + + // Scope Exclusions + // - Bitmasks that exclude flags from propagating out of a specific context + // into the subtree flags of their container. + OuterExpressionExcludes = HasComputedFlags, + PropertyAccessExcludes = OuterExpressionExcludes, + NodeExcludes = PropertyAccessExcludes, + ArrowFunctionExcludes = NodeExcludes | ContainsTypeScriptClassSyntax | ContainsBlockScopedBinding | ContainsYield | ContainsAwait | ContainsHoistedDeclarationOrCompletion | ContainsBindingPattern | ContainsObjectRestOrSpread | ContainsPossibleTopLevelAwait, + FunctionExcludes = NodeExcludes | ContainsTypeScriptClassSyntax | ContainsLexicalThis | ContainsBlockScopedBinding | ContainsYield | ContainsAwait | ContainsHoistedDeclarationOrCompletion | ContainsBindingPattern | ContainsObjectRestOrSpread | ContainsPossibleTopLevelAwait, + ConstructorExcludes = NodeExcludes | ContainsLexicalThis | ContainsBlockScopedBinding | ContainsYield | ContainsAwait | ContainsHoistedDeclarationOrCompletion | ContainsBindingPattern | ContainsObjectRestOrSpread | ContainsPossibleTopLevelAwait, + MethodOrAccessorExcludes = NodeExcludes | ContainsLexicalThis | ContainsBlockScopedBinding | ContainsYield | ContainsAwait | ContainsHoistedDeclarationOrCompletion | ContainsBindingPattern | ContainsObjectRestOrSpread, + PropertyExcludes = NodeExcludes | ContainsLexicalThis, + ClassExcludes = NodeExcludes | ContainsTypeScriptClassSyntax | ContainsComputedPropertyName, + ModuleExcludes = NodeExcludes | ContainsTypeScriptClassSyntax | ContainsLexicalThis | ContainsBlockScopedBinding | ContainsHoistedDeclarationOrCompletion | ContainsPossibleTopLevelAwait, + TypeExcludes = ~ContainsTypeScript, + ObjectLiteralExcludes = NodeExcludes | ContainsTypeScriptClassSyntax | ContainsComputedPropertyName | ContainsObjectRestOrSpread, + ArrayLiteralOrCallOrNewExcludes = NodeExcludes | ContainsRestOrSpread, + VariableDeclarationListExcludes = NodeExcludes | ContainsBindingPattern | ContainsObjectRestOrSpread, + ParameterExcludes = NodeExcludes, + CatchClauseExcludes = NodeExcludes | ContainsObjectRestOrSpread, + BindingPatternExcludes = NodeExcludes | ContainsRestOrSpread, + + // Propagating flags + // - Bitmasks for flags that should propagate from a child + PropertyNamePropagatingFlags = ContainsLexicalThis, + + // Masks + // - Additional bitmasks + } + enum EmitFlags { + None = 0, + SingleLine = 1 << 0, // The contents of this node should be emitted on a single line. + AdviseOnEmitNode = 1 << 1, // The printer should invoke the onEmitNode callback when printing this node. + NoSubstitution = 1 << 2, // Disables further substitution of an expression. + CapturesThis = 1 << 3, // The function captures a lexical `this` + NoLeadingSourceMap = 1 << 4, // Do not emit a leading source map location for this node. + NoTrailingSourceMap = 1 << 5, // Do not emit a trailing source map location for this node. + NoSourceMap = NoLeadingSourceMap | NoTrailingSourceMap, // Do not emit a source map location for this node. + NoNestedSourceMaps = 1 << 6, // Do not emit source map locations for children of this node. + NoTokenLeadingSourceMaps = 1 << 7, // Do not emit leading source map location for token nodes. + NoTokenTrailingSourceMaps = 1 << 8, // Do not emit trailing source map location for token nodes. + NoTokenSourceMaps = NoTokenLeadingSourceMaps | NoTokenTrailingSourceMaps, // Do not emit source map locations for tokens of this node. + NoLeadingComments = 1 << 9, // Do not emit leading comments for this node. + NoTrailingComments = 1 << 10, // Do not emit trailing comments for this node. + NoComments = NoLeadingComments | NoTrailingComments, // Do not emit comments for this node. + NoNestedComments = 1 << 11, + HelperName = 1 << 12, // The Identifier refers to an *unscoped* emit helper (one that is emitted at the top of the file) + ExportName = 1 << 13, // Ensure an export prefix is added for an identifier that points to an exported declaration with a local name (see SymbolFlags.ExportHasLocal). + LocalName = 1 << 14, // Ensure an export prefix is not added for an identifier that points to an exported declaration. + InternalName = 1 << 15, // The name is internal to an ES5 class body function. + Indented = 1 << 16, // Adds an explicit extra indentation level for class and function bodies when printing (used to match old emitter). + NoIndentation = 1 << 17, // Do not indent the node. + AsyncFunctionBody = 1 << 18, + ReuseTempVariableScope = 1 << 19, // Reuse the existing temp variable scope during emit. + CustomPrologue = 1 << 20, // Treat the statement as if it were a prologue directive (NOTE: Prologue directives are *not* transformed). + NoHoisting = 1 << 21, // Do not hoist this declaration in --module system + HasEndOfDeclarationMarker = 1 << 22, // Declaration has an associated NotEmittedStatement to mark the end of the declaration + Iterator = 1 << 23, // The expression to a `yield*` should be treated as an Iterator when down-leveling, not an Iterable. + NoAsciiEscaping = 1 << 24, // When synthesizing nodes that lack an original node or textSourceNode, we want to write the text on the node with ASCII escaping substitutions. + /*@internal*/ TypeScriptClassWrapper = 1 << 25, // The node is an IIFE class wrapper created by the ts transform. + /*@internal*/ NeverApplyImportHelper = 1 << 26, // Indicates the node should never be wrapped with an import star helper (because, for example, it imports tslib itself) + /*@internal*/ IgnoreSourceNewlines = 1 << 27, // Overrides `printerOptions.preserveSourceNewlines` to print this node (and all descendants) with default whitespace. + } +export const EnumType = {SyntaxKind,NodeFlags,ModifierFlags,TransformFlags,EmitFlags,SymbolFlags,TypeFlags,ObjectFlags} \ No newline at end of file diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 05ad94c7599f1..e8cee6eaf3919 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -1,5 +1,11 @@ -namespace ts { + // branded string type used to store absolute, normalized and canonicalized paths + +import { MultiMap, Pattern } from "./core"; +import { ProgramBuildInfo } from "./builder"; +import { MapLike, Push } from "./corePublic"; +import { EmitHelperFactory } from "./factory/emitHelpers"; + // arbitrary file name can be converted to Path via toPath function export type Path = string & { __pathBrand: any }; @@ -3382,7 +3388,7 @@ namespace ts { /** * If two source files are for the same version of the same package, one will redirect to the other. - * (See `createRedirectSourceFile` in program.ts.) + * (See `createRedirectSourceFile` in program.) * The redirect will have this set. The redirected-to source file will be in `redirectTargetsMap`. */ /* @internal */ redirectInfo?: RedirectInfo; @@ -8036,4 +8042,4 @@ namespace ts { negative: boolean; base10Value: string; } -} + diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index a6978df31b5df..c4b77399dee3c 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1,5 +1,19 @@ /* @internal */ -namespace ts { + +import { createMap, noop, arrayToMap, returnTrue, arrayFrom, binarySearch, compareValues, find, assertType, every, concatenate, filter, contains, singleOrUndefined, tryCast, firstDefined, neverArray, some, forEach, firstOrUndefined, append, last, addRange, lastOrUndefined, singleElementArray, startsWith, identity, insertSorted, compareStringsCaseSensitive, flatMapToMutable, createMapFromTemplate, stringContains, GetCanonicalFileName, createGetCanonicalFileName, flatMap, flatten, mapDefined, compact, mapIterator, tryRemovePrefix, map, sort, findIndex, getStringComparer, indexOfAnyCharCode, deduplicate, equateStringsCaseSensitive, Pattern, findBestPatternMatch, equalOwnProperties, equateValues } from "./core"; +import { Node, Symbol, ReadonlyPragmaMap, ReadonlyUnderscoreEscapedMap, Declaration, UnderscoreEscapedMap, SymbolTable, TransientSymbol, SymbolFlags, EmitTextWriter, CompilerOptions, __String, SourceFile, ResolvedModuleFull, ResolvedTypeReferenceDirective, ProjectReference, PackageId, NodeFlags, SyntaxKind, SourceFileLike, PrintHandlers, Statement, EmitFlags, CharacterCodes, CommentDirective, CommentDirectivesMap, CommentDirectiveType, SyntaxList, LiteralLikeNode, TokenFlags, StringLiteral, TemplateLiteralLikeNode, AmbientModuleDeclaration, ModuleDeclaration, ModuleKind, ScriptKind, DeclarationWithTypeParameters, DeclarationWithTypeParameterChildren, AnyImportSyntax, LateVisibilityPaintedStatement, AnyImportOrReExport, DeclarationName, QualifiedName, IndexInfo, PropertyName, NoSubstitutionTemplateLiteral, EntityNameOrEntityNameExpression, JsxTagNameExpression, PrivateIdentifier, DiagnosticMessage, DiagnosticWithLocation, NodeArray, DiagnosticMessageChain, DiagnosticRelatedInformation, TextRange, TextSpan, ArrowFunction, NamedDeclaration, CaseOrDefaultClause, JsonSourceFile, EnumDeclaration, ModifierFlags, VariableDeclaration, VariableDeclarationList, SuperCall, CallExpression, ImportCall, ImportMetaProperty, LiteralImportTypeNode, PrologueDirective, ExpressionStatement, PropertyAccessExpression, ImportTypeNode, TypeParameterDeclaration, JSDocTemplateTag, HasType, FunctionLikeDeclaration, SignatureDeclaration, TypeAssertion, Block, ReturnStatement, YieldExpression, TypeNode, ArrayTypeNode, TypeReferenceNode, ClassElement, TypeElement, ObjectLiteralElement, ObjectTypeDeclaration, ObjectLiteralExpression, VariableLikeDeclaration, AccessorDeclaration, PropertyDeclaration, LabeledStatement, MethodDeclaration, TypePredicate, IdentifierTypePredicate, TypePredicateKind, ThisTypePredicate, PropertyAssignment, TsConfigSourceFile, ClassLikeDeclaration, SuperExpression, SuperProperty, ElementAccessExpression, ExpressionWithTypeArguments, EntityNameExpression, TypeNodeSyntaxKind, EntityName, CallLikeExpression, Expression, ClassDeclaration, JsxOpeningLikeElement, HasInitializer, ForStatement, ForInStatement, ForOfStatement, AssertionExpression, TemplateSpan, ComputedPropertyName, ShorthandPropertyAssignment, ImportEqualsDeclaration, ExternalModuleReference, RequireOrImportCall, StringLiteralLike, RequireVariableDeclaration, VariableStatement, BindingName, HasExpressionInitializer, BinaryExpression, LiteralLikeElementAccessExpression, AssignmentDeclarationKind, BindableObjectDefinePropertyCall, BindableStaticAccessExpression, BindableStaticElementAccessExpression, BindableStaticNameExpression, AccessExpression, NumericLiteral, AnyValidImportOrReExport, ValidImportTypeNode, ImportDeclaration, ExportDeclaration, NamespaceImport, NamespaceExport, ImportClause, ImportSpecifier, ParameterDeclaration, JSDocTypedefTag, JSDocCallbackTag, JSDocEnumTag, TypeAliasDeclaration, JSDoc, JSDocTag, HasJSDoc, JSDocParameterTag, InterfaceDeclaration, JSDocSignature, HasTypeArguments, PrefixUnaryExpression, PostfixUnaryExpression, ForInOrOfStatement, WithStatement, IfStatement, SwitchStatement, CaseBlock, CaseClause, DefaultClause, DoStatement, WhileStatement, TryStatement, CatchClause, FunctionDeclaration, ConstructorDeclaration, FunctionExpression, OuterExpressionKinds, BindingElement, ExportAssignment, HeritageClause, DynamicNamedDeclaration, DynamicNamedBinaryExpression, WellKnownSymbolExpression, PropertyNameLiteral, NewExpression, DiagnosticCollection, Diagnostic, TemplateLiteral, EmitResolver, EmitHost, Extension, SourceFileMayBeEmittedHost, WriteFileCallback, FunctionBody, SetAccessorDeclaration, AllAccessorDeclarations, GetAccessorDeclaration, CommentRange, Modifier, LogicalOrCoalescingAssignmentOperator, AssignmentExpression, EqualsToken, AssignmentOperatorToken, DestructuringAssignment, ParenthesizedExpression, PropertyAccessEntityNameExpression, ArrayLiteralExpression, PrinterOptions, NewLineKind, InitializedVariableDeclaration, CheckFlags, TypeChecker, ObjectFlags, TypeFlags, ObjectFlagsType, SignatureKind, BundleFileSection, BundleFileTextLike, BundleFileSectionKind, NamedImportsOrExports, ConditionalExpression, TaggedTemplateExpression, AsExpression, NonNullExpression, PartiallyEmittedExpression, SignatureFlags, TransformFlags, DiagnosticWithDetachedLocation, LanguageVariant, ScriptTarget, ModuleResolutionKind, CommandLineOption, FileExtensionInfo, Path, PseudoBigInt, ReadonlyTextRange } from "./types"; +import { isWhiteSpaceLike, getLineStarts, getLineAndCharacterOfPosition, isLineBreak, skipTrivia, createScanner, getLeadingCommentRanges, getTrailingCommentRanges, stringToToken, tokenToString, computeLineStarts, computeLineOfPosition, computeLineAndCharacterOfPosition, isWhiteSpaceSingleLine, getLinesBetweenPositions } from "./scanner"; +import { moduleResolutionOptionDeclarations, parseConfigFileTextToJson, semanticDiagnosticsOptionDeclarations, affectsEmitOptionDeclarations } from "./commandLineParser"; +import { isSourceFile, isJSDocTypeExpression, isNumericLiteral, isBigIntLiteral, isModuleDeclaration, isStringLiteral, isIdentifier, isExportDeclaration, isPrivateIdentifier, isJSDoc, isJsxText, isMetaProperty, isImportTypeNode, isLiteralTypeNode, isFunctionDeclaration, isVariableStatement, isVariableDeclaration, isPropertyDeclaration, isPropertySignature, isObjectLiteralExpression, isArrayLiteralExpression, isClassDeclaration, isTypeReferenceNode, isBinaryExpression, isCallExpression, isPropertyAssignment, isPropertyAccessExpression, isElementAccessExpression, isNamespaceImport, isNamespaceExport, isJSDocFunctionType, isTypeAliasDeclaration, isExpressionStatement, isJSDocParameterTag, isFunctionExpression, isArrowFunction, isConstructorDeclaration, isComputedPropertyName, isQualifiedName, isClassExpression, isExportAssignment, isInterfaceDeclaration, isPrefixUnaryExpression, isNoSubstitutionTemplateLiteral, isJSDocSignature, isJSDocTemplateTag, isParameter, isExpressionWithTypeArguments, isHeritageClause, isNamespaceExportDeclaration, isTypeLiteralNode } from "./factory/nodeTests"; +import { ReadonlyCollection, SortedArray, MapLike, Comparison, EqualityComparer } from "./corePublic"; +import { Debug } from "./debug"; +import { forEachChild, isExternalModule, forEachChildRecursively } from "./parser"; +import { isJSDocNode, hasJSDocNodes, getCombinedNodeFlags, isFunctionLike, escapeLeadingUnderscores, idText, createTextSpanFromBounds, createTextSpan, getCombinedModifierFlags, isParameterPropertyDeclaration, isAccessor, isFunctionLikeDeclaration, isClassLike, isClassElement, isNamedDeclaration, isStringLiteralLike, getJSDocTypeTag, hasInitializer, getJSDocParameterTagsNoCache, getJSDocParameterTags, getJSDocTypeParameterTagsNoCache, getJSDocTypeParameterTags, isMethodOrAccessor, isBindingPattern, isDeclaration, getNameOfDeclaration, getJSDocAugmentsTag, getJSDocImplementsTags, isIdentifierOrPrivateIdentifier, getParseTreeNode, isJSDocPropertyLikeTag, getJSDocType, getJSDocReturnType, getJSDocTags, getJSDocPublicTagNoCache, getJSDocPrivateTagNoCache, getJSDocProtectedTagNoCache, getJSDocReadonlyTagNoCache, getJSDocDeprecatedTagNoCache, isLeftHandSideExpression, unescapeLeadingUnderscores } from "./utilitiesPublic"; +import { getBaseFileName, toPath, getDirectoryPath, getNormalizedAbsolutePath, getRelativePathToDirectoryOrUrl, ensurePathIsNonModuleName, combinePaths, getRootLength, normalizePath, fileExtensionIs, forEachAncestorDirectory, getPathComponents, getPathFromPathComponents, isAnyDirectorySeparator, getNormalizedPathComponents, removeTrailingDirectorySeparator, directorySeparator, fileExtensionIsOneOf, isRootedDiskPath, containsPath, hasExtension, changeAnyExtension } from "./path"; +import { startsWithUseStrict, skipOuterExpressions } from "./factory/utilities"; +import { getSymbolId, getNodeId } from "./checker"; +import { sys, FileWatcher } from "./sys"; + export const resolvingEmptyArray: never[] = [] as never[]; export const emptyMap = createMap() as ReadonlyMap & ReadonlyPragmaMap; export const emptyUnderscoreEscapedMap: ReadonlyUnderscoreEscapedMap = emptyMap as ReadonlyUnderscoreEscapedMap; @@ -1442,7 +1456,7 @@ namespace ts { export function getTsConfigPropArray(tsConfigSourceFile: TsConfigSourceFile | undefined, propKey: string): readonly PropertyAssignment[] { const jsonObjectLiteral = getTsConfigObjectLiteralExpression(tsConfigSourceFile); - return jsonObjectLiteral ? getPropertyAssignment(jsonObjectLiteral, propKey) : emptyArray; + return jsonObjectLiteral ? getPropertyAssignment(jsonObjectLiteral, propKey) : neverArray; } export function getContainingFunction(node: Node): SignatureDeclaration | undefined { @@ -2498,7 +2512,7 @@ namespace ts { } node = getNextJSDocCommentLocation(node); } - return result || emptyArray; + return result || neverArray; } function getNextJSDocCommentLocation(node: Node) { @@ -2908,9 +2922,9 @@ namespace ts { /** Returns the node in an `extends` or `implements` clause of a class or interface. */ export function getAllSuperTypeNodes(node: Node): readonly TypeNode[] { - return isInterfaceDeclaration(node) ? getInterfaceBaseTypeNodes(node) || emptyArray : - isClassLike(node) ? concatenate(singleElementArray(getEffectiveBaseTypeNode(node)), getEffectiveImplementsTypeNodes(node)) || emptyArray : - emptyArray; + return isInterfaceDeclaration(node) ? getInterfaceBaseTypeNodes(node) || neverArray : + isClassLike(node) ? concatenate(singleElementArray(getEffectiveBaseTypeNode(node)), getEffectiveImplementsTypeNodes(node)) || neverArray : + neverArray; } export function getInterfaceBaseTypeNodes(node: InterfaceDeclaration) { @@ -6498,8 +6512,8 @@ namespace ts { } export const emptyFileSystemEntries: FileSystemEntries = { - files: emptyArray, - directories: emptyArray + files: neverArray, + directories: neverArray }; @@ -6906,4 +6920,4 @@ namespace ts { return bindParentToChildIgnoringJSDoc(child, parent) || bindJSDoc(child); } } -} + diff --git a/src/compiler/utilitiesPublic.ts b/src/compiler/utilitiesPublic.ts index e9d28e8fab5c1..265ac61c6dc6a 100644 --- a/src/compiler/utilitiesPublic.ts +++ b/src/compiler/utilitiesPublic.ts @@ -1,4 +1,13 @@ -namespace ts { +import { pathIsRelative, isRootedDiskPath, normalizePath, getDirectoryPath, combinePaths } from "./path"; +import { Diagnostic, CompilerOptions, ScriptTarget, TextSpan, TextRange, TextChangeRange, Declaration, SyntaxKind, Node, ParameterDeclaration, ConstructorDeclaration, Identifier, ModifierFlags, BindingName, BindingPattern, BindingElement, VariableDeclaration, NodeFlags, __String, CharacterCodes, PrivateIdentifier, JSDocTypedefTag, JSDocEnumTag, BinaryExpression, PropertyAccessExpression, ElementAccessExpression, Expression, NamedDeclaration, DeclarationName, JSDocPropertyLikeTag, CallExpression, AssignmentDeclarationKind, AccessExpression, BindableObjectDefinePropertyCall, ExportAssignment, JSDocParameterTag, TypeParameterDeclaration, JSDocTemplateTag, FunctionLikeDeclaration, SignatureDeclaration, JSDocAugmentsTag, JSDocImplementsTag, JSDocClassTag, JSDocPublicTag, JSDocPrivateTag, JSDocProtectedTag, JSDocReadonlyTag, JSDocDeprecatedTag, JSDocThisTag, JSDocReturnTag, JSDocTypeTag, TypeNode, JSDocTag, JSDocContainer, DeclarationWithTypeParameters, AccessorDeclaration, PropertyAccessChain, ElementAccessChain, CallChain, NonNullChain, OptionalChainRoot, OptionalChain, OuterExpressionKinds, BreakOrContinueStatement, NamedExportBindings, UnparsedTextLike, UnparsedNode, NodeArray, LiteralToken, LiteralExpression, TemplateLiteralToken, TemplateMiddle, TemplateTail, ImportSpecifier, ExportSpecifier, TypeOnlyCompatibleAliasDeclaration, ImportOrExportSpecifier, NamespaceImport, ImportClause, StringLiteral, GeneratedIdentifier, GeneratedIdentifierFlags, PrivateIdentifierPropertyDeclaration, PrivateIdentifierPropertyAccessExpression, Modifier, EntityName, PropertyName, ClassElement, ClassLikeDeclaration, MethodDeclaration, TypeElement, ObjectLiteralElementLike, FunctionTypeNode, ConstructorTypeNode, AssignmentPattern, ArrayBindingElement, BindingOrAssignmentElement, BindingOrAssignmentElementTarget, BindingOrAssignmentPattern, ObjectBindingOrAssignmentPattern, ArrayBindingOrAssignmentPattern, QualifiedName, ImportTypeNode, CallLikeExpression, NewExpression, TemplateLiteral, LeftHandSideExpression, UnaryExpression, PrefixUnaryExpression, PostfixUnaryExpression, AssertionExpression, NotEmittedStatement, PartiallyEmittedExpression, IterationStatement, LabeledStatement, Statement, ForInOrOfStatement, ConciseBody, FunctionBody, ForInitializer, ModuleBody, NamespaceBody, JSDocNamespaceBody, NamedImportBindings, ModuleDeclaration, EnumDeclaration, DeclarationStatement, Block, ModuleReference, JsxTagNameExpression, JsxChild, JsxAttributeLike, JsxExpression, JsxOpeningLikeElement, CaseOrDefaultClause, SetAccessorDeclaration, GetAccessorDeclaration, HasJSDoc, HasType, HasInitializer, HasExpressionInitializer, ObjectLiteralElement, TypeReferenceType, StringLiteralLike } from "./types"; +import { SortedReadonlyArray, Push } from "./corePublic"; +import { sortAndDeduplicate, every, setUILocale, some, neverArray, find, flatMap } from "./core"; +import { compareDiagnostics, hasSyntacticModifier, getEffectiveModifierFlags, getEffectiveModifierFlagsAlwaysIncludeJSDoc, createCompilerDiagnostic, setLocalizedDiagnosticMessages, getAssignmentDeclarationKind, getElementOrPropertyAccessArgumentExpressionOrName, isBindableStaticElementAccessExpression, isAccessExpression, getJSDocCommentsAndTags, isJSDocTypeAlias, isInJSFile, getJSDocTypeParameterDeclarations, modifierToFlag, isTypeNodeKind, isAnyImportOrReExport, isAmbientModule, isFunctionBlock } from "./utilities"; +import { isOmittedExpression, isBindingElement, isIdentifier, isVariableStatement, isFunctionExpression, isClassExpression, isPropertyAssignment, isBinaryExpression, isVariableDeclaration, isJSDocParameterTag, isJSDocTemplateTag, isJSDocAugmentsTag, isJSDocImplementsTag, isJSDocClassTag, isJSDocPublicTag, isJSDocPrivateTag, isJSDocProtectedTag, isJSDocReadonlyTag, isJSDocDeprecatedTag, isJSDocEnumTag, isJSDocThisTag, isJSDocReturnTag, isJSDocTypeTag, isParameter, isTypeLiteralNode, isCallSignatureDeclaration, isFunctionTypeNode, isJSDocFunctionType, isJSDoc, isJSDocSignature, isPropertyAccessExpression, isElementAccessExpression, isCallExpression, isNonNullExpression, isTypeReferenceNode, isImportSpecifier, isExportSpecifier, isPropertyDeclaration, isPrivateIdentifier, isSourceFile, isModuleBlock, isBlock, isNotEmittedStatement, isPartiallyEmittedExpression, isExportAssignment, isExportDeclaration, isVariableDeclarationList, isJSDocTypeLiteral } from "./factory/nodeTests"; +import { Debug } from "./debug"; +import { skipOuterExpressions } from "./factory/utilities"; +import { isWhiteSpaceLike } from "./scanner"; + export function isExternalModuleNameRelative(moduleName: string): boolean { // TypeScript 1.0 spec (April 2014): 11.2.1 // An external module name is "relative" if the first term is "." or "..". @@ -631,7 +640,7 @@ namespace ts { } } // return empty array for: out-of-order binding patterns and JSDoc function syntax, which has un-named parameters - return emptyArray; + return neverArray; } /** @@ -874,7 +883,7 @@ namespace ts { */ export function getEffectiveTypeParameterDeclarations(node: DeclarationWithTypeParameters): readonly TypeParameterDeclaration[] { if (isJSDocSignature(node)) { - return emptyArray; + return neverArray; } if (isJSDocTypeAlias(node)) { Debug.assert(node.parent.kind === SyntaxKind.JSDocComment); @@ -893,7 +902,7 @@ namespace ts { return typeTag.typeParameters; } } - return emptyArray; + return neverArray; } export function getEffectiveConstraintOfTypeParameter(node: TypeParameterDeclaration): TypeNode | undefined { @@ -1913,4 +1922,4 @@ namespace ts { } // #endregion -} + diff --git a/src/compiler/visitorPublic.ts b/src/compiler/visitorPublic.ts index b2ec665ce8962..9570ce1697f67 100644 --- a/src/compiler/visitorPublic.ts +++ b/src/compiler/visitorPublic.ts @@ -1,4 +1,14 @@ -namespace ts { +import { or, some, singleOrUndefined } from "./core"; +import { isTypeNode, isStatement, isBindingPattern, isConciseBody, isEntityName, isExpression, isModifier, isToken, isBindingName, isPropertyName, isTypeElement, isArrayBindingElement, isObjectLiteralElementLike, isIdentifierOrPrivateIdentifier, isTemplateLiteral, isClassElement, isTemplateMiddleOrTemplateTail, isForInitializer, isModuleBody, isCaseOrDefaultClause, isModuleReference, isNamedImportBindings, isNamedExportBindings, isJsxChild, isJsxTagNameExpression, isStringLiteralOrJsxExpression, isJsxAttributeLike } from "./utilitiesPublic"; +import { isTypeParameterDeclaration, isIdentifier, isDecorator, isBindingElement, isTemplateHead, isTemplateSpan, isHeritageClause, isVariableDeclarationList, isCaseBlock, isBlock, isCatchClause, isVariableDeclaration, isEnumMember, isImportClause, isImportSpecifier, isExportSpecifier, isJsxOpeningElement, isJsxClosingElement, isJsxAttributes, isJsxOpeningFragment, isJsxClosingFragment, isExpressionWithTypeArguments } from "./factory/nodeTests"; +import { Node, Visitor, NodeArray, Statement, TransformationContext, NodesVisitor, ParameterDeclaration, LexicalEnvironmentFlags, ScriptTarget, Identifier, Expression, EmitFlags, FunctionBody, ConciseBody, NodeVisitor, SyntaxKind, QualifiedName, ComputedPropertyName, TypeParameterDeclaration, Decorator, PropertySignature, PropertyDeclaration, MethodSignature, MethodDeclaration, ConstructorDeclaration, GetAccessorDeclaration, SetAccessorDeclaration, CallSignatureDeclaration, ConstructSignatureDeclaration, IndexSignatureDeclaration, TypePredicateNode, TypeReferenceNode, FunctionTypeNode, ConstructorTypeNode, TypeQueryNode, TypeLiteralNode, ArrayTypeNode, TupleTypeNode, OptionalTypeNode, RestTypeNode, UnionTypeNode, IntersectionTypeNode, ConditionalTypeNode, InferTypeNode, ImportTypeNode, NamedTupleMember, ParenthesizedTypeNode, TypeOperatorNode, IndexedAccessTypeNode, MappedTypeNode, LiteralTypeNode, ObjectBindingPattern, ArrayBindingPattern, BindingElement, ArrayLiteralExpression, ObjectLiteralExpression, NodeFlags, PropertyAccessChain, PropertyAccessExpression, ElementAccessChain, ElementAccessExpression, CallChain, CallExpression, NewExpression, TaggedTemplateExpression, TypeAssertion, ParenthesizedExpression, FunctionExpression, ArrowFunction, DeleteExpression, TypeOfExpression, VoidExpression, AwaitExpression, PrefixUnaryExpression, PostfixUnaryExpression, BinaryExpression, ConditionalExpression, TemplateExpression, YieldExpression, SpreadElement, ClassExpression, ExpressionWithTypeArguments, AsExpression, NonNullChain, NonNullExpression, MetaProperty, TemplateSpan, Block, VariableStatement, ExpressionStatement, IfStatement, DoStatement, WhileStatement, ForStatement, ForInStatement, ForOfStatement, ContinueStatement, BreakStatement, ReturnStatement, WithStatement, SwitchStatement, LabeledStatement, ThrowStatement, TryStatement, VariableDeclaration, VariableDeclarationList, FunctionDeclaration, ClassDeclaration, InterfaceDeclaration, TypeAliasDeclaration, EnumDeclaration, ModuleDeclaration, ModuleBlock, CaseBlock, NamespaceExportDeclaration, ImportEqualsDeclaration, ImportDeclaration, ImportClause, NamespaceImport, NamespaceExport, NamedImports, ImportSpecifier, ExportAssignment, ExportDeclaration, NamedExports, ExportSpecifier, ExternalModuleReference, JsxElement, JsxSelfClosingElement, JsxOpeningElement, JsxClosingElement, JsxFragment, JsxAttribute, JsxAttributes, JsxSpreadAttribute, JsxExpression, CaseClause, DefaultClause, HeritageClause, CatchClause, PropertyAssignment, ShorthandPropertyAssignment, SpreadAssignment, EnumMember, SourceFile, PartiallyEmittedExpression, CommaListExpression } from "./types"; +import { isArray } from "util"; +import { Debug } from "./debug"; +import { factory } from "./factory/nodeFactory"; +import { setTextRangePosEnd, isParameterDeclaration, getEmitScriptTarget, getEmitFlags } from "./utilities"; +import { setTextRange } from "./factory/utilitiesPublic"; +import { setEmitFlags } from "./factory/emitNode"; + const isTypeNodeOrTypeParameterDeclaration = or(isTypeNode, isTypeParameterDeclaration); /** @@ -133,7 +143,7 @@ namespace ts { } if (updated) { - // TODO(rbuckton): Remove dependency on `ts.factory` in favor of a provided factory. + // TODO(rbuckton): Remove dependency on `factory` in favor of a provided factory. const updatedArray = factory.createNodeArray(updated, hasTrailingComma); setTextRangePosEnd(updatedArray, pos, end); return updatedArray; @@ -1103,4 +1113,4 @@ namespace ts { Debug.assert(nodes.length <= 1, "Too many nodes written to output."); return singleOrUndefined(nodes); } -} + diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 724d57f48b29d..fd9d33a9b9bdb 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -1,5 +1,19 @@ /*@internal*/ -namespace ts { + +import { FormatDiagnosticsHost, formatDiagnostic, formatDiagnosticsWithColorAndContext, formatColorAndReset, ForegroundColorEscapeSequences, flattenDiagnosticMessageText } from "./program"; +import { sys, System, FileWatcher, generateDjb2Hash } from "./sys"; +import { createGetCanonicalFileName, contains, countWhere, forEach, addRange, neverArray, noop, maybeBind, memoize, copyProperties } from "./core"; +import { DiagnosticReporter, ParseConfigFileHost, getParsedCommandLineOfConfigFile } from "./commandLineParser"; +import { Diagnostic, CompilerOptions, WatchOptions, DiagnosticCategory, SourceFile, CancellationToken, DiagnosticWithLocation, WriteFileCallback, CustomTransformers, EmitResult, ExitStatus, CompilerHost, FileExtensionInfo, ProjectReference } from "./types"; +import { WatchStatusReporter, WatchHost, ProgramHost, CreateProgram, WatchCompilerHost, WatchCompilerHostOfConfigFile, WatchCompilerHostOfFilesAndCompilerOptions, createIncrementalCompilerHost, createIncrementalProgram } from "./watchPublic"; +import { createCompilerDiagnostic, getNewLineCharacter, writeFileEnsuringDirectories } from "./utilities"; +import { ReportEmitErrorSummary } from "./tsbuildPublic"; +import { sortAndDeduplicateDiagnostics, getDefaultLibFileName } from "./utilitiesPublic"; +import { getNormalizedAbsolutePath, getDirectoryPath, normalizePath, combinePaths } from "./path"; +import { WatchFactory, WatchLogLevel, getWatchFactory, DirectoryStructureHost } from "./watchUtilities"; +import { createSourceFile } from "./parser"; +import { BuilderProgram, EmitAndSemanticDiagnosticsBuilderProgram, createEmitAndSemanticDiagnosticsBuilderProgram } from "./builderPublic"; + const sysFormatDiagnosticsHost: FormatDiagnosticsHost = sys ? { getCurrentDirectory: () => sys.getCurrentDirectory(), getNewLine: () => sys.newLine, @@ -174,7 +188,7 @@ namespace ts { // Emit and report any errors we ran into. const emitResult = isListFilesOnly - ? { emitSkipped: true, diagnostics: emptyArray } + ? { emitSkipped: true, diagnostics: neverArray } : program.emit(/*targetSourceFile*/ undefined, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers); const { emittedFiles, diagnostics: emitDiagnostics } = emitResult; addRange(allDiagnostics, emitDiagnostics); @@ -266,14 +280,14 @@ namespace ts { TypeRoots: "Type roots" } - interface WatchFactory extends ts.WatchFactory { + interface WatchFactoryNameSpaceLocal extends WatchFactory { writeLog: (s: string) => void; } export function createWatchFactory(host: { trace?(s: string): void; }, options: { extendedDiagnostics?: boolean; diagnostics?: boolean; }) { const watchLogLevel = host.trace ? options.extendedDiagnostics ? WatchLogLevel.Verbose : options.diagnostics ? WatchLogLevel.TriggerOnly : WatchLogLevel.None : WatchLogLevel.None; const writeLog: (s: string) => void = watchLogLevel !== WatchLogLevel.None ? (s => host.trace!(s)) : noop; - const result = getWatchFactory(watchLogLevel, writeLog) as WatchFactory; + const result = getWatchFactory(watchLogLevel, writeLog) as WatchFactoryNameSpaceLocal; result.writeLog = writeLog; return result; } @@ -490,4 +504,4 @@ namespace ts { if (input.afterProgramEmitAndDiagnostics) input.afterProgramEmitAndDiagnostics(builderProgram); return exitStatus; } -} + diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 85c5859ee8cbc..572a4bb273be3 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -1,4 +1,19 @@ -namespace ts { +import { CompilerOptions, CompilerHost, Diagnostic, ProjectReference, ResolvedProjectReference, ResolvedModule, ResolvedTypeReferenceDirective, WatchOptions, FileExtensionInfo, ParsedCommandLine, SourceFile, Path, ConfigFileSpecs, HasInvalidatedResolution, ScriptTarget, DiagnosticMessage, WatchDirectoryFlags } from "./types"; +import { outFile, getNewLineCharacter, clearMap, closeFileWatcher, changesAffectModuleResolution, createCompilerDiagnostic } from "./utilities"; +import { getTsBuildInfoEmitOutputFilePath, getBuildInfo } from "./emitter"; +import { createBuildProgramUsingProgramBuildInfo } from "./builder"; +import { sys, FileWatcherCallback, FileWatcher, DirectoryWatcherCallback, System, PollingInterval, FileWatcherEventKind } from "./sys"; +import { createCompilerHostWorker, changeCompilerHostLikeToUseCache, parseConfigHostFromCompilerHostLike, isProgramUptoDate, getConfigFileParsingDiagnostics } from "./program"; +import { maybeBind, createMap, createGetCanonicalFileName, returnFalse, createMapFromTemplate } from "./core"; +import { setGetSourceFileAsHashVersioned, createWatchCompilerHostOfFilesAndCompilerOptions, createWatchCompilerHostOfConfigFile, createWatchFactory, WatchType, createCompilerHostFromProgramHost } from "./watch"; +import { toPath, getDirectoryPath, getNormalizedAbsolutePath } from "./path"; +import { BuilderProgram, EmitAndSemanticDiagnosticsBuilderProgram, createEmitAndSemanticDiagnosticsBuilderProgram } from "./builderPublic"; +import { ConfigFileDiagnosticsReporter, DiagnosticReporter, getFileNamesFromConfigSpecs, updateErrorForNoInputFiles, getParsedCommandLineOfConfigFile, canJsonReportNoInputFiles } from "./commandLineParser"; +import { ConfigFileProgramReloadLevel, WildcardDirectoryWatcher, createCachedDirectoryStructureHost, DirectoryStructureHost, closeFileWatcherOf, updateMissingFilePathsWatch, updateWatchingWildcardDirectories, isIgnoredFileFromWildCardWatching } from "./watchUtilities"; +import { Debug } from "./debug"; +import { ResolutionCacheHost, createResolutionCache } from "./resolutionCache"; +import { perfLogger } from "./perfLogger"; + export interface ReadBuildProgramHost { useCaseSensitiveFileNames(): boolean; getCurrentDirectory(): string; @@ -296,13 +311,13 @@ namespace ts { setGetSourceFileAsHashVersioned(compilerHost, host); // Members for CompilerHost const getNewSourceFile = compilerHost.getSourceFile; - compilerHost.getSourceFile = (fileName, ...args) => getVersionedSourceFileByPath(fileName, toPath(fileName), ...args); + compilerHost.getSourceFile = (fileName, ...args) => getVersionedSourceFileByPath(fileName, toPathNameSpaceLocal(fileName), ...args); compilerHost.getSourceFileByPath = getVersionedSourceFileByPath; compilerHost.getNewLine = () => newLine; compilerHost.fileExists = fileExists; compilerHost.onReleaseOldSourceFile = onReleaseOldSourceFile; // Members for ResolutionCacheHost - compilerHost.toPath = toPath; + compilerHost.toPath = toPathNameSpaceLocal; compilerHost.getCompilationSettings = () => compilerOptions; compilerHost.useSourceOfProjectReferenceRedirect = maybeBind(host, host.useSourceOfProjectReferenceRedirect); compilerHost.watchDirectoryOfFailedLookupLocation = (dir, cb, flags) => watchDirectory(host, dir, cb, flags, watchOptions, WatchType.FailedLookupLocations); @@ -449,8 +464,8 @@ namespace ts { return getNewLineCharacter(compilerOptions || optionsToExtendForConfigFile, () => host.getNewLine()); } - function toPath(fileName: string) { - return ts.toPath(fileName, currentDirectory, getCanonicalFileName); + function toPathNameSpaceLocal(fileName: string) { + return toPath(fileName, currentDirectory, getCanonicalFileName); } function isFileMissingOnHost(hostSourceFile: HostFileInfo | undefined): hostSourceFile is FileMissingOnHost { @@ -462,7 +477,7 @@ namespace ts { } function fileExists(fileName: string) { - const path = toPath(fileName); + const path = toPathNameSpaceLocal(fileName); // If file is missing on host from cache, we can definitely say file doesnt exist // otherwise we need to ensure from the disk if (isFileMissingOnHost(sourceFilesCache.get(path))) { @@ -734,7 +749,7 @@ namespace ts { fileOrDirectory => { Debug.assert(!!configFileName); - const fileOrDirectoryPath = toPath(fileOrDirectory); + const fileOrDirectoryPath = toPathNameSpaceLocal(fileOrDirectory); // Since the file existence changed, update the sourceFiles cache if (cachedDirectoryStructureHost) { @@ -743,7 +758,7 @@ namespace ts { nextSourceFileVersion(fileOrDirectoryPath); if (isIgnoredFileFromWildCardWatching({ - watchedDirPath: toPath(directory), + watchedDirPath: toPathNameSpaceLocal(directory), fileOrDirectory, fileOrDirectoryPath, configFileName, @@ -769,4 +784,4 @@ namespace ts { ); } } -} + diff --git a/src/compiler/watchUtilities.ts b/src/compiler/watchUtilities.ts index f6fd12e29e5a8..781107d14aaa2 100644 --- a/src/compiler/watchUtilities.ts +++ b/src/compiler/watchUtilities.ts @@ -1,5 +1,16 @@ /* @internal */ -namespace ts { + +import { Path, Program, WatchDirectoryFlags, CompilerOptions, ConfigFileSpecs, FileExtensionInfo, Extension, WatchOptions, WatchFileKind } from "./types"; +import { FileWatcherEventKind, FileWatcher, FileWatcherCallback, DirectoryWatcherCallback, PollingInterval, sysLog, setSysLog } from "./sys"; +import { createMap, createGetCanonicalFileName, map, some, filterMutate, noop } from "./core"; +import { toPath, ensureTrailingDirectorySeparator, getDirectoryPath, getBaseFileName, normalizePath, hasExtension, getNormalizedAbsolutePath, fileExtensionIs, fileExtensionIsOneOf } from "./path"; +import { Debug } from "./debug"; +import { matchFiles, FileSystemEntries, emptyFileSystemEntries, arrayToSet, mutateMap, closeFileWatcher, isSupportedSourceFileName, supportedJSExtensions, removeFileExtension } from "./utilities"; +import { BuilderProgram } from "./builderPublic"; +import { removeIgnoredPath } from "./resolutionCache"; +import { isExcludedFile } from "./commandLineParser"; +import { timestamp } from "./performanceTimestamp"; + /** * Partial interface of the System thats needed to support the caching of directory structure */ @@ -61,8 +72,8 @@ namespace ts { realpath: host.realpath && realpath }; - function toPath(fileName: string) { - return ts.toPath(fileName, currentDirectory, getCanonicalFileName); + function toPathNameSpaceLocal(fileName: string) { + return toPath(fileName, currentDirectory, getCanonicalFileName); } function getCachedFileSystemEntries(rootDirPath: Path): MutableFileSystemEntries | undefined { @@ -129,7 +140,7 @@ namespace ts { } function writeFile(fileName: string, data: string, writeByteOrderMark?: boolean): void { - const path = toPath(fileName); + const path = toPathNameSpaceLocal(fileName); const result = getCachedFileSystemEntriesForBaseDir(path); if (result) { updateFilesOfFileSystemEntry(result, getBaseNameOfFileName(fileName), /*fileExists*/ true); @@ -138,19 +149,19 @@ namespace ts { } function fileExists(fileName: string): boolean { - const path = toPath(fileName); + const path = toPathNameSpaceLocal(fileName); const result = getCachedFileSystemEntriesForBaseDir(path); return result && hasEntry(result.files, getBaseNameOfFileName(fileName)) || host.fileExists(fileName); } function directoryExists(dirPath: string): boolean { - const path = toPath(dirPath); + const path = toPathNameSpaceLocal(dirPath); return cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(path)) || host.directoryExists!(dirPath); } function createDirectory(dirPath: string) { - const path = toPath(dirPath); + const path = toPathNameSpaceLocal(dirPath); const result = getCachedFileSystemEntriesForBaseDir(path); const baseFileName = getBaseNameOfFileName(dirPath); if (result) { @@ -160,7 +171,7 @@ namespace ts { } function getDirectories(rootDir: string): string[] { - const rootDirPath = toPath(rootDir); + const rootDirPath = toPathNameSpaceLocal(rootDir); const result = tryReadDirectory(rootDir, rootDirPath); if (result) { return result.directories.slice(); @@ -169,7 +180,7 @@ namespace ts { } function readDirectory(rootDir: string, extensions?: readonly string[], excludes?: readonly string[], includes?: readonly string[], depth?: number): string[] { - const rootDirPath = toPath(rootDir); + const rootDirPath = toPathNameSpaceLocal(rootDir); const result = tryReadDirectory(rootDir, rootDirPath); if (result) { return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath); @@ -177,7 +188,7 @@ namespace ts { return host.readDirectory!(rootDir, extensions, excludes, includes, depth); function getFileSystemEntries(dir: string): FileSystemEntries { - const path = toPath(dir); + const path = toPathNameSpaceLocal(dir); if (path === rootDirPath) { return result!; } @@ -549,4 +560,4 @@ namespace ts { export function closeFileWatcherOf(objWithWatcher: T) { objWithWatcher.watcher.close(); } -} + diff --git a/src/debug/dbg.ts b/src/debug/dbg.ts index fc8a5cdafc87d..3940641791d25 100644 --- a/src/debug/dbg.ts +++ b/src/debug/dbg.ts @@ -491,7 +491,6 @@ namespace Debug { return s; } } - // Export as a module. NOTE: Can't use module exports as this is built using --outFile declare const module: { exports: {} }; if (typeof module !== "undefined" && module.exports) { diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index e2e802f1afedc..aabcd31c537a2 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -1,4 +1,4 @@ -namespace ts { + interface Statistic { name: string; value: string; @@ -273,7 +273,7 @@ namespace ts { ); } else if (isIncrementalCompilation(configParseResult.options)) { - performIncrementalCompilation( + performIncrementalCompilationNameSpaceLocal( sys, cb, reportDiagnostic, @@ -312,7 +312,7 @@ namespace ts { ); } else if (isIncrementalCompilation(commandLineOptions)) { - performIncrementalCompilation( + performIncrementalCompilationNameSpaceLocal( sys, cb, reportDiagnostic, @@ -438,7 +438,7 @@ namespace ts { /*createProgram*/ undefined, reportDiagnostic, createBuilderStatusReporter(sys, shouldBePretty(sys, buildOptions)), - createWatchStatusReporter(sys, buildOptions) + createWatchStatusReporterNameSpaceLocal(sys, buildOptions) ); updateSolutionBuilderHost(sys, cb, buildHost); const builder = createSolutionBuilderWithWatch(buildHost, projects, buildOptions, watchOptions); @@ -497,7 +497,7 @@ namespace ts { return sys.exit(exitStatus); } - function performIncrementalCompilation( + function performIncrementalCompilationNameSpaceLocal( sys: System, cb: ExecuteCommandLineCallbacks, reportDiagnostic: DiagnosticReporter, @@ -506,7 +506,7 @@ namespace ts { const { options, fileNames, projectReferences } = config; enableStatistics(sys, options); const host = createIncrementalCompilerHost(options, sys); - const exitStatus = ts.performIncrementalCompilation({ + const exitStatus = performIncrementalCompilation({ host, system: sys, rootNames: fileNames, @@ -561,8 +561,8 @@ namespace ts { }; } - function createWatchStatusReporter(sys: System, options: CompilerOptions | BuildOptions) { - return ts.createWatchStatusReporter(sys, shouldBePretty(sys, options)); + function createWatchStatusReporterNameSpaceLocal(sys: System, options: CompilerOptions | BuildOptions) { + return createWatchStatusReporter(sys, shouldBePretty(sys, options)); } function createWatchOfConfigFile( @@ -579,7 +579,7 @@ namespace ts { watchOptionsToExtend, system, reportDiagnostic, - reportWatchStatus: createWatchStatusReporter(system, configParseResult.options) + reportWatchStatus: createWatchStatusReporterNameSpaceLocal(system, configParseResult.options) }); updateWatchCompilationHost(system, cb, watchCompilerHost); watchCompilerHost.configFileParsingResult = configParseResult; @@ -600,7 +600,7 @@ namespace ts { watchOptions, system, reportDiagnostic, - reportWatchStatus: createWatchStatusReporter(system, options) + reportWatchStatus: createWatchStatusReporterNameSpaceLocal(system, options) }); updateWatchCompilationHost(system, cb, watchCompilerHost); return createWatchProgram(watchCompilerHost); @@ -713,4 +713,4 @@ namespace ts { return; } -} + diff --git a/src/harness/client.ts b/src/harness/client.ts index 32b9b7f4e16e3..62b7e0ca80d28 100644 --- a/src/harness/client.ts +++ b/src/harness/client.ts @@ -1,4 +1,15 @@ -namespace ts.server { +import { LanguageServiceHost, RenameInfo, RenameLocation, LanguageService, TextChange, FormatCodeSettings, QuickInfo, CompletionInfo, CompletionEntry, ScriptElementKind, FormatCodeOptions, CompletionEntryDetails, NavigateToItem, DefinitionInfo, DefinitionInfoAndBoundSpan, ImplementationLocation, ReferencedSymbol, ReferenceEntry, RenameInfoOptions, RenameInfoSuccess, RenameInfoFailure, NavigationBarItem, NavigationTree, SignatureHelpItems, OutliningSpan, TodoCommentDescriptor, TodoComment, TextInsertion, CodeFixAction, CodeActionCommand, ApplicableRefactorInfo, RefactorEditInfo, FileTextChanges, OrganizeImportsScope, EditorOptions, ClassifiedSpan, Classifications, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from "../services/types"; +import { Debug } from "../compiler/debug"; +import { createMap, map, notImplemented, firstDefined, identity } from "../compiler/core"; +import { computeLineStarts, computePositionOfLineAndCharacter, computeLineAndCharacterOfPosition } from "../compiler/scanner"; +import { getSnapshotText, mapOneOrMany } from "../services/utilities"; +import { UserPreferences, DiagnosticWithLocation, Diagnostic, SourceFile, DiagnosticCategory, TextSpan, TextRange, Program } from "../compiler/types"; +import { CommandNames } from "../server/session"; +import { PatternMatchKind } from "../services/patternMatcher"; +import { EmitOutput, createTextSpanFromBounds } from "../../built/local/compiler"; +import { isString } from "util"; +import { DocumentHighlights } from "../../built/local/services"; + export interface SessionClientHost extends LanguageServiceHost { writeMessage(message: string): void; } @@ -829,4 +840,4 @@ namespace ts.server { throw new Error("dispose is not available through the server layer."); } } -} + diff --git a/src/harness/collectionsImpl.ts b/src/harness/collectionsImpl.ts index e149960b5e9f6..cb8a668a3953d 100644 --- a/src/harness/collectionsImpl.ts +++ b/src/harness/collectionsImpl.ts @@ -1,4 +1,5 @@ -namespace collections { +import { binarySearch, identity, orderedRemoveItemAt } from "../compiler/core"; + export interface SortOptions { comparer: (a: T, b: T) => number; sort: "insertion" | "comparison"; @@ -42,16 +43,16 @@ namespace collections { } public has(key: K) { - return ts.binarySearch(this._keys, key, ts.identity, this._comparer) >= 0; + return binarySearch(this._keys, key, identity, this._comparer) >= 0; } public get(key: K) { - const index = ts.binarySearch(this._keys, key, ts.identity, this._comparer); + const index = binarySearch(this._keys, key, identity, this._comparer); return index >= 0 ? this._values[index] : undefined; } public set(key: K, value: V) { - const index = ts.binarySearch(this._keys, key, ts.identity, this._comparer); + const index = binarySearch(this._keys, key, identity, this._comparer); if (index >= 0) { this._values[index] = value; } @@ -66,12 +67,12 @@ namespace collections { } public delete(key: K) { - const index = ts.binarySearch(this._keys, key, ts.identity, this._comparer); + const index = binarySearch(this._keys, key, identity, this._comparer); if (index >= 0) { this.writePreamble(); - ts.orderedRemoveItemAt(this._keys, index); - ts.orderedRemoveItemAt(this._values, index); - if (this._order) ts.orderedRemoveItemAt(this._order, index); + orderedRemoveItemAt(this._keys, index); + orderedRemoveItemAt(this._values, index); + if (this._order) orderedRemoveItemAt(this._order, index); this.writePostScript(); return true; } @@ -318,4 +319,4 @@ namespace collections { return (text.length >= 3 && text.charAt(0) === "_" && text.charAt(1) === "_" && text.charAt(2) === "_" ? text.slice(1) : text); } } -} + diff --git a/src/harness/compilerImpl.ts b/src/harness/compilerImpl.ts index 19d6545c999fa..eb310c48c16de 100644 --- a/src/harness/compilerImpl.ts +++ b/src/harness/compilerImpl.ts @@ -1,14 +1,20 @@ /** * Test harness compiler functionality. */ -namespace compiler { + +import { ParsedCommandLine, Diagnostic, CompilerOptions, Program, EmitResult, Extension, ScriptTarget, NewLineKind } from "../compiler/types"; +import { readConfigFile, parseJsonConfigFileContent } from "../../built/local/compiler"; +import { fileExtensionIs } from "../compiler/path"; +import { getOutputExtension } from "../compiler/emitter"; +import { createProgram, getPreEmitDiagnostics } from "../compiler/program"; +export namespace compiler { export interface Project { file: string; - config?: ts.ParsedCommandLine; - errors?: ts.Diagnostic[]; + config?: ParsedCommandLine; + errors?: Diagnostic[]; } - export function readProject(host: fakes.ParseConfigHost, project: string | undefined, existingOptions?: ts.CompilerOptions): Project | undefined { + export function readProject(host: fakes.ParseConfigHost, project: string | undefined, existingOptions?: CompilerOptions): Project | undefined { if (project) { project = vpath.isTsConfigFile(project) ? project : vpath.combine(project, "tsconfig.json"); } @@ -23,13 +29,13 @@ namespace compiler { // project = vpath.resolve(host.vfs.currentDirectory, project); // read the config file - const readResult = ts.readConfigFile(project, path => host.readFile(path)); + const readResult = readConfigFile(project, path => host.readFile(path)); if (readResult.error) { return { file: project, errors: [readResult.error] }; } // parse the config file - const config = ts.parseJsonConfigFileContent(readResult.config, host, vpath.dirname(project), existingOptions); + const config = parseJsonConfigFileContent(readResult.config, host, vpath.dirname(project), existingOptions); return { file: project, errors: config.errors, config }; } } @@ -46,10 +52,10 @@ namespace compiler { export class CompilationResult { public readonly host: fakes.CompilerHost; - public readonly program: ts.Program | undefined; - public readonly result: ts.EmitResult | undefined; - public readonly options: ts.CompilerOptions; - public readonly diagnostics: readonly ts.Diagnostic[]; + public readonly program: Program | undefined; + public readonly result: EmitResult | undefined; + public readonly options: CompilerOptions; + public readonly diagnostics: readonly Diagnostic[]; public readonly js: ReadonlyMap; public readonly dts: ReadonlyMap; public readonly maps: ReadonlyMap; @@ -58,7 +64,7 @@ namespace compiler { private _inputs: documents.TextDocument[] = []; private _inputsAndOutputs: collections.SortedMap; - constructor(host: fakes.CompilerHost, options: ts.CompilerOptions, program: ts.Program | undefined, result: ts.EmitResult | undefined, diagnostics: readonly ts.Diagnostic[]) { + constructor(host: fakes.CompilerHost, options: CompilerOptions, program: Program | undefined, result: EmitResult | undefined, diagnostics: readonly Diagnostic[]) { this.host = host; this.program = program; this.result = result; @@ -70,7 +76,7 @@ namespace compiler { const dts = this.dts = new collections.SortedMap({ comparer: this.vfs.stringComparer, sort: "insertion" }); const maps = this.maps = new collections.SortedMap({ comparer: this.vfs.stringComparer, sort: "insertion" }); for (const document of this.host.outputs) { - if (vpath.isJavaScript(document.file) || ts.fileExtensionIs(document.file, ts.Extension.Json)) { + if (vpath.isJavaScript(document.file) || fileExtensionIs(document.file, Extension.Json)) { js.set(document.file, document); } else if (vpath.isDeclaration(document.file)) { @@ -118,7 +124,7 @@ namespace compiler { const input = new documents.TextDocument(sourceFile.fileName, sourceFile.text); this._inputs.push(input); if (!vpath.isDeclaration(sourceFile.fileName)) { - const extname = ts.getOutputExtension(sourceFile, this.options); + const extname = getOutputExtension(sourceFile, this.options); const outputs: CompilationOutput = { inputs: [input], js: js.get(this.getOutputPath(sourceFile.fileName, extname)), @@ -185,7 +191,7 @@ namespace compiler { public getSourceMapRecord(): string | undefined { const maps = this.result!.sourceMaps; if (maps && maps.length > 0) { - return Harness.SourceMapRecorder.getSourceMapRecord(maps, this.program!, Array.from(this.js.values()).filter(d => !ts.fileExtensionIs(d.file, ts.Extension.Json)), Array.from(this.dts.values())); + return Harness.SourceMapRecorder.getSourceMapRecord(maps, this.program!, Array.from(this.js.values()).filter(d => !fileExtensionIs(d.file, Extension.Json)), Array.from(this.dts.values())); } } @@ -226,7 +232,7 @@ namespace compiler { else { let count = this.js.size; this.js.forEach(document => { - if (ts.fileExtensionIs(document.file, ts.Extension.Json)) { + if (fileExtensionIs(document.file, Extension.Json)) { count--; } }); @@ -235,7 +241,7 @@ namespace compiler { } } - export function compileFiles(host: fakes.CompilerHost, rootFiles: string[] | undefined, compilerOptions: ts.CompilerOptions): CompilationResult { + export function compileFiles(host: fakes.CompilerHost, rootFiles: string[] | undefined, compilerOptions: CompilerOptions): CompilationResult { if (compilerOptions.project || !rootFiles || rootFiles.length === 0) { const project = readProject(host.parseConfigHost, compilerOptions.project, compilerOptions); if (project) { @@ -251,14 +257,14 @@ namespace compiler { } // establish defaults (aligns with old harness) - if (compilerOptions.target === undefined) compilerOptions.target = ts.ScriptTarget.ES3; - if (compilerOptions.newLine === undefined) compilerOptions.newLine = ts.NewLineKind.CarriageReturnLineFeed; + if (compilerOptions.target === undefined) compilerOptions.target = ScriptTarget.ES3; + if (compilerOptions.newLine === undefined) compilerOptions.newLine = NewLineKind.CarriageReturnLineFeed; if (compilerOptions.skipDefaultLibCheck === undefined) compilerOptions.skipDefaultLibCheck = true; if (compilerOptions.noErrorTruncation === undefined) compilerOptions.noErrorTruncation = true; - const program = ts.createProgram(rootFiles || [], compilerOptions, host); + const program = createProgram(rootFiles || [], compilerOptions, host); const emitResult = program.emit(); - const errors = ts.getPreEmitDiagnostics(program); + const errors = getPreEmitDiagnostics(program); return new CompilationResult(host, compilerOptions, program, emitResult, errors); } } diff --git a/src/harness/documentsUtil.ts b/src/harness/documentsUtil.ts index c07142e794fb7..d02ff516e31d1 100644 --- a/src/harness/documentsUtil.ts +++ b/src/harness/documentsUtil.ts @@ -1,6 +1,9 @@ // NOTE: The contents of this file are all exported from the namespace 'documents'. This is to // support the eventual conversion of harness into a modular system. +import { computeLineStarts } from "../compiler/scanner"; +import { sys } from "../compiler/sys"; + namespace documents { export class TextDocument { public readonly meta: Map; @@ -17,7 +20,7 @@ namespace documents { } public get lineStarts(): readonly number[] { - return this._lineStarts || (this._lineStarts = ts.computeLineStarts(this.text)); + return this._lineStarts || (this._lineStarts = computeLineStarts(this.text)); } public static fromTestFile(file: Harness.Compiler.TestFile) { @@ -148,7 +151,7 @@ namespace documents { public static fromUrl(url: string) { const match = SourceMap._dataURLRegExp.exec(url); - return match ? new SourceMap(/*mapFile*/ undefined, ts.sys.base64decode!(match[1])) : undefined; + return match ? new SourceMap(/*mapFile*/ undefined, sys.base64decode!(match[1])) : undefined; } public static fromSource(text: string): SourceMap | undefined { @@ -184,4 +187,4 @@ namespace documents { return vlq; } } -} \ No newline at end of file +} diff --git a/src/harness/evaluatorImpl.ts b/src/harness/evaluatorImpl.ts index 260c65567853f..5cc9f98fba492 100644 --- a/src/harness/evaluatorImpl.ts +++ b/src/harness/evaluatorImpl.ts @@ -1,15 +1,21 @@ -namespace evaluator { +import { CompilerOptions, ScriptTarget, ModuleKind } from "../compiler/types"; +import { hasProperty, some } from "../compiler/core"; +import { formatDiagnostics } from "../compiler/program"; +import { fakes } from "./fakesHosts"; +import { compiler } from "./compilerImpl"; +import { assert } from "chai"; +export namespace evaluator { declare let Symbol: SymbolConstructor; const sourceFile = vpath.combine(vfs.srcFolder, "source.ts"); const sourceFileJs = vpath.combine(vfs.srcFolder, "source.js"); - function compile(sourceText: string, options?: ts.CompilerOptions) { + function compile(sourceText: string, options?: CompilerOptions) { const fs = vfs.createFromFileSystem(Harness.IO, /*ignoreCase*/ false); fs.writeFileSync(sourceFile, sourceText); - const compilerOptions: ts.CompilerOptions = { - target: ts.ScriptTarget.ES5, - module: ts.ModuleKind.CommonJS, + const compilerOptions: CompilerOptions = { + target: ScriptTarget.ES5, + module: ModuleKind.CommonJS, lib: ["lib.esnext.d.ts", "lib.dom.d.ts"], ...options }; @@ -30,12 +36,12 @@ namespace evaluator { } // Add "asyncIterator" if missing - if (!ts.hasProperty(FakeSymbol, "asyncIterator")) Object.defineProperty(FakeSymbol, "asyncIterator", { value: Symbol.for("Symbol.asyncIterator"), configurable: true }); + if (!hasProperty(FakeSymbol, "asyncIterator")) Object.defineProperty(FakeSymbol, "asyncIterator", { value: Symbol.for("Symbol.asyncIterator"), configurable: true }); - export function evaluateTypeScript(sourceText: string, options?: ts.CompilerOptions, globals?: Record) { + export function evaluateTypeScript(sourceText: string, options?: CompilerOptions, globals?: Record) { const result = compile(sourceText, options); - if (ts.some(result.diagnostics)) { - assert.ok(/*value*/ false, "Syntax error in evaluation source text:\n" + ts.formatDiagnostics(result.diagnostics, { + if (some(result.diagnostics)) { + assert.ok(/*value*/ false, "Syntax error in evaluation source text:\n" + formatDiagnostics(result.diagnostics, { getCanonicalFileName: file => file, getCurrentDirectory: () => "", getNewLine: () => "\n" @@ -54,7 +60,7 @@ namespace evaluator { const globalNames: string[] = []; const globalArgs: any[] = []; for (const name in globals) { - if (ts.hasProperty(globals, name)) { + if (hasProperty(globals, name)) { globalNames.push(name); globalArgs.push(globals[name]); } diff --git a/src/harness/fakesHosts.ts b/src/harness/fakesHosts.ts index 8d7db1d333cb3..5758d34bc7e0c 100644 --- a/src/harness/fakesHosts.ts +++ b/src/harness/fakesHosts.ts @@ -1,7 +1,22 @@ /** * Fake implementations of various compiler dependencies. */ -namespace fakes { + +import { matchFiles, FileSystemEntries, getNewLineCharacter, getLocaleSpecificMessage, formatStringFromArgs } from "../compiler/utilities"; +import { notImplemented, isArray } from "../compiler/core"; +import { generateDjb2Hash, sys } from "../compiler/sys"; +import { SourceFile, CompilerOptions, DiagnosticMessage, Diagnostic, DiagnosticMessageChain, DiagnosticRelatedInformation } from "../compiler/types"; +import { getDefaultCompilerOptions } from "../services/services"; +import { getDefaultLibFileName } from "../../built/local/compiler"; +import { createSourceFile } from "../compiler/parser"; +import { isBuildInfoFile, getBuildInfo, getBuildInfoText } from "../compiler/emitter"; +import { Debug } from "../compiler/debug"; +import { BuilderProgram, createEmitAndSemanticDiagnosticsBuilderProgram } from "../compiler/builderPublic"; +import { CreateProgram } from "../compiler/watchPublic"; +import { createDiagnosticReporter } from "../compiler/watch"; +import { assert } from "console"; +import { SortedMap } from "./collectionsImpl"; +export namespace fakes { const processExitSentinel = new Error("System exit"); export interface SystemOptions { @@ -11,9 +26,9 @@ namespace fakes { } /** - * A fake `ts.System` that leverages a virtual file system. + * A fake `System` that leverages a virtual file system. */ - export class System implements ts.System { + export class System implements System { public readonly vfs: vfs.FileSystem; public readonly args: string[] = []; public readonly output: string[] = []; @@ -92,10 +107,10 @@ namespace fakes { } public readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[] { - return ts.matchFiles(path, extensions, exclude, include, this.useCaseSensitiveFileNames, this.getCurrentDirectory(), depth, path => this.getAccessibleFileSystemEntries(path), path => this.realpath(path)); + return matchFiles(path, extensions, exclude, include, this.useCaseSensitiveFileNames, this.getCurrentDirectory(), depth, path => this.getAccessibleFileSystemEntries(path), path => this.realpath(path)); } - public getAccessibleFileSystemEntries(path: string): ts.FileSystemEntries { + public getAccessibleFileSystemEntries(path: string): FileSystemEntries { const files: string[] = []; const directories: string[] = []; try { @@ -131,7 +146,7 @@ namespace fakes { } public getExecutingFilePath() { - if (this._executingFilePath === undefined) return ts.notImplemented(); + if (this._executingFilePath === undefined) return notImplemented(); return this._executingFilePath; } @@ -145,7 +160,7 @@ namespace fakes { } public createHash(data: string): string { - return `${ts.generateDjb2Hash(data)}-${data}`; + return `${generateDjb2Hash(data)}-${data}`; } public realpath(path: string) { @@ -176,9 +191,9 @@ namespace fakes { } /** - * A fake `ts.ParseConfigHost` that leverages a virtual file system. + * A fake `ParseConfigHost` that leverages a virtual file system. */ - export class ParseConfigHost implements ts.ParseConfigHost { + export class ParseConfigHost implements ParseConfigHost { public readonly sys: System; constructor(sys: System | vfs.FileSystem) { @@ -212,29 +227,29 @@ namespace fakes { } /** - * A fake `ts.CompilerHost` that leverages a virtual file system. + * A fake `CompilerHost` that leverages a virtual file system. */ - export class CompilerHost implements ts.CompilerHost { + export class CompilerHost implements CompilerHost { public readonly sys: System; public readonly defaultLibLocation: string; public readonly outputs: documents.TextDocument[] = []; - private readonly _outputsMap: collections.SortedMap; + private readonly _outputsMap: SortedMap; public readonly traces: string[] = []; public readonly shouldAssertInvariants = !Harness.lightMode; private _setParentNodes: boolean; - private _sourceFiles: collections.SortedMap; + private _sourceFiles: SortedMap; private _parseConfigHost: ParseConfigHost | undefined; private _newLine: string; - constructor(sys: System | vfs.FileSystem, options = ts.getDefaultCompilerOptions(), setParentNodes = false) { + constructor(sys: System | vfs.FileSystem, options = getDefaultCompilerOptions(), setParentNodes = false) { if (sys instanceof vfs.FileSystem) sys = new System(sys); this.sys = sys; this.defaultLibLocation = sys.vfs.meta.get("defaultLibLocation") || ""; - this._newLine = ts.getNewLineCharacter(options, () => this.sys.newLine); - this._sourceFiles = new collections.SortedMap({ comparer: sys.vfs.stringComparer, sort: "insertion" }); + this._newLine = getNewLineCharacter(options, () => this.sys.newLine); + this._sourceFiles = new SortedMap({ comparer: sys.vfs.stringComparer, sort: "insertion" }); this._setParentNodes = setParentNodes; - this._outputsMap = new collections.SortedMap(this.vfs.stringComparer); + this._outputsMap = new SortedMap(this.vfs.stringComparer); } public get vfs() { @@ -319,11 +334,11 @@ namespace fakes { return vpath.resolve(this.getCurrentDirectory(), this.defaultLibLocation); } - public getDefaultLibFileName(options: ts.CompilerOptions): string { - return vpath.resolve(this.getDefaultLibLocation(), ts.getDefaultLibFileName(options)); + public getDefaultLibFileName(options: CompilerOptions): string { + return vpath.resolve(this.getDefaultLibLocation(), getDefaultLibFileName(options)); } - public getSourceFile(fileName: string, languageVersion: number): ts.SourceFile | undefined { + public getSourceFile(fileName: string, languageVersion: number): SourceFile | undefined { const canonicalFileName = this.getCanonicalFileName(vpath.resolve(this.getCurrentDirectory(), fileName)); const existing = this._sourceFiles.get(canonicalFileName); if (existing) return existing; @@ -340,14 +355,14 @@ namespace fakes { const cacheKey = this.vfs.shadowRoot && `SourceFile[languageVersion=${languageVersion},setParentNodes=${this._setParentNodes}]`; if (cacheKey) { const meta = this.vfs.filemeta(canonicalFileName); - const sourceFileFromMetadata = meta.get(cacheKey) as ts.SourceFile | undefined; + const sourceFileFromMetadata = meta.get(cacheKey) as SourceFile | undefined; if (sourceFileFromMetadata && sourceFileFromMetadata.getFullText() === content) { this._sourceFiles.set(canonicalFileName, sourceFileFromMetadata); return sourceFileFromMetadata; } } - const parsed = ts.createSourceFile(fileName, content, languageVersion, this._setParentNodes || this.shouldAssertInvariants); + const parsed = createSourceFile(fileName, content, languageVersion, this._setParentNodes || this.shouldAssertInvariants); if (this.shouldAssertInvariants) { Utils.assertInvariants(parsed, /*parent*/ undefined); } @@ -384,7 +399,7 @@ namespace fakes { } } - export type ExpectedDiagnosticMessage = [ts.DiagnosticMessage, ...(string | number)[]]; + export type ExpectedDiagnosticMessage = [DiagnosticMessage, ...(string | number)[]]; export interface ExpectedDiagnosticMessageChain { message: ExpectedDiagnosticMessage; next?: ExpectedDiagnosticMessageChain[]; @@ -411,7 +426,7 @@ namespace fakes { interface SolutionBuilderDiagnostic { kind: DiagnosticKind; - diagnostic: ts.Diagnostic; + diagnostic: Diagnostic; } function indentedText(indent: number, text: string) { @@ -425,9 +440,9 @@ ${indentText}${text}`; } function expectedDiagnosticMessageToText([message, ...args]: ExpectedDiagnosticMessage) { - let text = ts.getLocaleSpecificMessage(message); + let text = getLocaleSpecificMessage(message); if (args.length) { - text = ts.formatStringFromArgs(text, args); + text = formatStringFromArgs(text, args); } return text; } @@ -462,12 +477,12 @@ ${indentText}${text}`; } function expectedDiagnosticToText(errorOrStatus: ExpectedDiagnostic) { - return ts.isArray(errorOrStatus) ? + return isArray(errorOrStatus) ? `${DiagnosticKind.Status}!: ${expectedDiagnosticMessageToText(errorOrStatus)}` : expectedErrorDiagnosticToText(errorOrStatus); } - function diagnosticMessageChainToText({ messageText, next}: ts.DiagnosticMessageChain, indent = 0) { + function diagnosticMessageChainToText({ messageText, next}: DiagnosticMessageChain, indent = 0) { let text = indentedText(indent, messageText); if (next) { indent++; @@ -476,7 +491,7 @@ ${indentText}${text}`; return text; } - function diagnosticRelatedInformationToText({ file, start, length, messageText }: ts.DiagnosticRelatedInformation) { + function diagnosticRelatedInformationToText({ file, start, length, messageText }: DiagnosticRelatedInformation) { const text = typeof messageText === "string" ? messageText : diagnosticMessageChainToText(messageText); @@ -498,56 +513,56 @@ ${indentText}${text}`; export const version = "FakeTSVersion"; - export function patchHostForBuildInfoReadWrite(sys: T) { + export function patchHostForBuildInfoReadWrite(sys: T) { const originalReadFile = sys.readFile; sys.readFile = (path, encoding) => { const value = originalReadFile.call(sys, 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 (!value || !isBuildInfoFile(path)) return value; + const buildInfo = getBuildInfo(value); + Debug.assert(buildInfo.version === version); + buildInfo.version = version; + return getBuildInfoText(buildInfo); }; const originalWrite = sys.write; - sys.write = msg => originalWrite.call(sys, msg.replace(ts.version, version)); + sys.write = msg => originalWrite.call(sys, msg.replace(version, version)); if (sys.writeFile) { const originalWriteFile = sys.writeFile; sys.writeFile = (fileName: string, content: string, writeByteOrderMark: boolean) => { - if (!ts.isBuildInfoFile(fileName)) return originalWriteFile.call(sys, fileName, content, writeByteOrderMark); - const buildInfo = ts.getBuildInfo(content); + if (!isBuildInfoFile(fileName)) return originalWriteFile.call(sys, fileName, content, writeByteOrderMark); + const buildInfo = getBuildInfo(content); buildInfo.version = version; - originalWriteFile.call(sys, fileName, ts.getBuildInfoText(buildInfo), writeByteOrderMark); + originalWriteFile.call(sys, fileName, getBuildInfoText(buildInfo), writeByteOrderMark); }; } return sys; } - export class SolutionBuilderHost extends CompilerHost implements ts.SolutionBuilderHost { - createProgram: ts.CreateProgram; + export class SolutionBuilderHost extends CompilerHost implements SolutionBuilderHost { + createProgram: CreateProgram; - private constructor(sys: System | vfs.FileSystem, options?: ts.CompilerOptions, setParentNodes?: boolean, createProgram?: ts.CreateProgram) { + private constructor(sys: System | vfs.FileSystem, options?: CompilerOptions, setParentNodes?: boolean, createProgram?: CreateProgram) { super(sys, options, setParentNodes); - this.createProgram = createProgram || ts.createEmitAndSemanticDiagnosticsBuilderProgram; + this.createProgram = createProgram || createEmitAndSemanticDiagnosticsBuilderProgram; } - static create(sys: System | vfs.FileSystem, options?: ts.CompilerOptions, setParentNodes?: boolean, createProgram?: ts.CreateProgram) { + static create(sys: System | vfs.FileSystem, options?: CompilerOptions, setParentNodes?: boolean, createProgram?: CreateProgram) { const host = new SolutionBuilderHost(sys, options, setParentNodes, createProgram); patchHostForBuildInfoReadWrite(host.sys); return host; } createHash(data: string) { - return `${ts.generateDjb2Hash(data)}-${data}`; + return `${generateDjb2Hash(data)}-${data}`; } diagnostics: SolutionBuilderDiagnostic[] = []; - reportDiagnostic(diagnostic: ts.Diagnostic) { + reportDiagnostic(diagnostic: Diagnostic) { this.diagnostics.push({ kind: DiagnosticKind.Error, diagnostic }); } - reportSolutionBuilderStatus(diagnostic: ts.Diagnostic) { + reportSolutionBuilderStatus(diagnostic: Diagnostic) { this.diagnostics.push({ kind: DiagnosticKind.Status, diagnostic }); } @@ -573,8 +588,8 @@ Actual All:: ${JSON.stringify(this.diagnostics.slice().map(diagnosticToText), /* } printDiagnostics(header = "== Diagnostics ==") { - const out = ts.createDiagnosticReporter(ts.sys); - ts.sys.write(header + "\r\n"); + const out = createDiagnosticReporter(sys); + sys.write(header + "\r\n"); for (const { diagnostic } of this.diagnostics) { out(diagnostic); } diff --git a/src/harness/fourslashImpl.ts b/src/harness/fourslashImpl.ts index 88ba1fa6508c7..718645bae477a 100644 --- a/src/harness/fourslashImpl.ts +++ b/src/harness/fourslashImpl.ts @@ -1,4 +1,28 @@ -namespace FourSlash { + + +import { MultiMap, createMap, forEach, extend, getAllKeys, neverArray, flatMap, some, hasProperty, zipWith, first, createMapFromTemplate, contains, map, find, compareStringsCaseSensitive, sort, padLeft, findLastIndex, concatenate, clone, arrayIsEqualTo, arrayFrom, createMultiMap, filter, mapDefined, getOwnKeys, deduplicate, equalOwnProperties, firstOrUndefined, firstDefined, createGetCanonicalFileName, append, isString, isNumber, isArray } from "../compiler/core"; +import { TextRange, CompilerOptions, ScriptTarget, OperationCanceledException, DiagnosticMessage, FileReference, LineAndCharacter, Diagnostic, SourceFile, DiagnosticCategory, Program, TypeChecker, Node, SymbolFlags, UserPreferences, CharacterCodes, DiagnosticMessageChain, Extension } from "../compiler/types"; +import { ImplementationLocation, HostCancellationToken, IScriptSnapshot, ScriptSnapshot, LanguageService, FormatCodeSettings, SymbolDisplayPart, testFormatSettings, emptyOptions, DefinitionInfo, DefinitionInfoAndBoundSpan, CompletionEntry, ReferenceEntry, ReferencedSymbol, GetCompletionsAtPositionOptions, CompletionInfo, CompletionEntryDetails, JSDocTagInfo, RenameLocation, SignatureHelpTriggerReason, SignatureHelpParameter, RenameInfoOptions, SelectionRange, SignatureHelpItems, TextChange, FormatCodeOptions, IndentStyle, ClassifiedSpan, OutliningSpan, FileTextChanges, CodeFixAction, TextInsertion, JsxClosingTagInfo, NavigateToItem, ScriptElementKind, RefactorTriggerReason, CallHierarchyItem, ApplicableRefactorInfo } from "../services/types"; +import { Debug } from "../compiler/debug"; +import { parseConfigFileTextToJson, convertCompilerOptionsFromJson, parseJsonSourceFileConfigFileContent, textSpanEnd, OutputFile, textSpanIntersectsWithPosition, createTextSpan, textRangeContainsPositionInclusive } from "../../built/local/compiler"; +import { normalizePath, getDirectoryPath, getNormalizedAbsolutePath, normalizeSlashes, getBaseFileName, comparePaths, combinePaths, isRootedDiskPath } from "../compiler/path"; +import { parseJsonText } from "../compiler/parser"; +import { getSupportedExtensions, forEachEntry, isAnySupportedFileExtension, forEachKey, resolutionExtensionIsTSOrJson, extensionFromPath, formatStringFromArgs, changeExtension, regExpEscape } from "../compiler/utilities"; +import { flattenDiagnosticMessageText, getPreEmitDiagnostics } from "../compiler/program"; +import { getLineAndCharacterOfPosition, computeLineStarts, computeLineAndCharacterOfPosition, isLineBreak, isWhiteSpaceLike } from "../compiler/scanner"; +import { createTextSpanFromRange, textSpansEqual, getTouchingPropertyName, repeatString, documentSpansEqual, createTextRangeFromSpan, mapOneOrMany } from "../services/utilities"; +import { Comparison, MapLike } from "../compiler/corePublic"; +import { sys } from "../compiler/sys"; +import { displayPartsToString, createLanguageServiceSourceFile, toEditorSettings } from "../services/services"; +import { realizeDiagnostics, RealizedDiagnostic } from "../services/shims"; +import { group, assert } from "console"; +import { getPathUpdater } from "../../built/local/services"; +import { transpileModule } from "../services/transpile"; +import { FourSlashInterface } from "./fourslashInterfaceImpl"; +import { fakes } from "./fakesHosts"; +import { textChanges } from "../services/textChanges"; +export namespace FourSlash { + import ArrayOrSingle = FourSlashInterface.ArrayOrSingle; export const enum FourSlashTestType { @@ -29,7 +53,7 @@ namespace FourSlash { symlinks: vfs.FileSet | undefined; // A mapping from marker names to name/position pairs - markerPositions: ts.Map; + markerPositions: Map; markers: Marker[]; @@ -42,7 +66,7 @@ namespace FourSlash { * is a range with `text in range` "selected". */ ranges: Range[]; - rangesByText?: ts.MultiMap; + rangesByText?: MultiMap; } export interface Marker { @@ -51,7 +75,7 @@ namespace FourSlash { data?: {}; } - export interface Range extends ts.TextRange { + export interface Range extends TextRange { fileName: string; marker?: Marker; } @@ -67,7 +91,7 @@ namespace FourSlash { marker?: Marker; } - interface ImplementationLocationInformation extends ts.ImplementationLocation { + interface ImplementationLocationInformation extends ImplementationLocation { matched?: boolean; } @@ -76,7 +100,7 @@ namespace FourSlash { end: number; } - // Name of testcase metadata including ts.CompilerOptions properties that will be used by globalOptions + // Name of testcase metadata including CompilerOptions properties that will be used by globalOptions // To add additional option, add property into the testOptMetadataNames, refer the property in either globalMetadataNames or fileMetadataNames // Add cases into convertGlobalOptionsToCompilationsSettings function for the compiler to acknowledge such option from meta data const enum MetadataOptionNames { @@ -90,13 +114,13 @@ namespace FourSlash { // List of allowed metadata names const fileMetadataNames = [MetadataOptionNames.fileName, MetadataOptionNames.emitThisFile, MetadataOptionNames.resolveReference, MetadataOptionNames.symlink]; - function convertGlobalOptionsToCompilerOptions(globalOptions: Harness.TestCaseParser.CompilerSettings): ts.CompilerOptions { - const settings: ts.CompilerOptions = { target: ts.ScriptTarget.ES5 }; + function convertGlobalOptionsToCompilerOptions(globalOptions: Harness.TestCaseParser.CompilerSettings): CompilerOptions { + const settings: CompilerOptions = { target: ScriptTarget.ES5 }; Harness.Compiler.setCompilerOptionsFromHarnessSetting(globalOptions, settings); return settings; } - export class TestCancellationToken implements ts.HostCancellationToken { + export class TestCancellationToken implements HostCancellationToken { // 0 - cancelled // >0 - not cancelled // <0 - not cancelled and value denotes number of isCancellationRequested after which token become cancelled @@ -117,7 +141,7 @@ namespace FourSlash { } public setCancelled(numberOfCalls = 0): void { - ts.Debug.assert(numberOfCalls >= 0); + Debug.assert(numberOfCalls >= 0); this.numberOfCallsBeforeCancellation = numberOfCalls; } @@ -131,7 +155,7 @@ namespace FourSlash { f(); } catch (e) { - if (e instanceof ts.OperationCanceledException) { + if (e instanceof OperationCanceledException) { return; } } @@ -139,14 +163,14 @@ namespace FourSlash { throw new Error("Operation should be cancelled"); } - export function ignoreInterpolations(diagnostic: string | ts.DiagnosticMessage): FourSlashInterface.DiagnosticIgnoredInterpolations { + export function ignoreInterpolations(diagnostic: string | DiagnosticMessage): FourSlashInterface.DiagnosticIgnoredInterpolations { return { template: typeof diagnostic === "string" ? diagnostic : diagnostic.message }; } // This function creates IScriptSnapshot object for testing getPreProcessedFileInfo // Return object may lack some functionalities for other purposes. - function createScriptSnapShot(sourceText: string): ts.IScriptSnapshot { - return ts.ScriptSnapshot.fromString(sourceText); + function createScriptSnapShot(sourceText: string): IScriptSnapshot { + return ScriptSnapshot.fromString(sourceText); } const enum CallHierarchyItemDirection { @@ -158,7 +182,7 @@ namespace FourSlash { export class TestState { // Language service instance private languageServiceAdapterHost: Harness.LanguageService.LanguageServiceAdapterHost; - private languageService: ts.LanguageService; + private languageService: LanguageService; private cancellationToken: TestCancellationToken; private assertTextConsistent: ((fileName: string) => void) | undefined; @@ -175,13 +199,13 @@ namespace FourSlash { // Whether or not we should format on keystrokes public enableFormatting = true; - public formatCodeSettings: ts.FormatCodeSettings; + public formatCodeSettings: FormatCodeSettings; - private inputFiles = ts.createMap(); // Map between inputFile's fileName and its content for easily looking up when resolving references + private inputFiles = createMap(); // Map between inputFile's fileName and its content for easily looking up when resolving references - private static getDisplayPartsJson(displayParts: ts.SymbolDisplayPart[] | undefined) { + private static getDisplayPartsJson(displayParts: SymbolDisplayPart[] | undefined) { let result = ""; - ts.forEach(displayParts, part => { + forEach(displayParts, part => { if (result) { result += ",\n "; } @@ -204,7 +228,7 @@ namespace FourSlash { const languageServiceAdapterHost = this.languageServiceAdapterHost; const didAdd = tryAdd(referenceFilePath); if (extensions && !didAdd) { - ts.forEach(extensions, ext => tryAdd(referenceFilePath + ext)); + forEach(extensions, ext => tryAdd(referenceFilePath + ext)); } function tryAdd(path: string) { @@ -216,7 +240,7 @@ namespace FourSlash { } } - private getLanguageServiceAdapter(testType: FourSlashTestType, cancellationToken: TestCancellationToken, compilationOptions: ts.CompilerOptions): Harness.LanguageService.LanguageServiceAdapter { + private getLanguageServiceAdapter(testType: FourSlashTestType, cancellationToken: TestCancellationToken, compilationOptions: CompilerOptions): Harness.LanguageService.LanguageServiceAdapter { switch (testType) { case FourSlashTestType.Native: return new Harness.LanguageService.NativeLanguageServiceAdapter(cancellationToken, compilationOptions); @@ -245,18 +269,18 @@ namespace FourSlash { // Create map between fileName and its content for easily looking up when resolveReference flag is specified this.inputFiles.set(file.fileName, file.content); if (isConfig(file)) { - const configJson = ts.parseConfigFileTextToJson(file.fileName, file.content); + const configJson = parseConfigFileTextToJson(file.fileName, file.content); if (configJson.config === undefined) { throw new Error(`Failed to parse test ${file.fileName}: ${configJson.error!.messageText}`); } // Extend our existing compiler options so that we can also support tsconfig only options if (configJson.config.compilerOptions) { - const baseDirectory = ts.normalizePath(ts.getDirectoryPath(file.fileName)); - const tsConfig = ts.convertCompilerOptionsFromJson(configJson.config.compilerOptions, baseDirectory, file.fileName); + const baseDirectory = normalizePath(getDirectoryPath(file.fileName)); + const tsConfig = convertCompilerOptionsFromJson(configJson.config.compilerOptions, baseDirectory, file.fileName); if (!tsConfig.errors || !tsConfig.errors.length) { - compilationOptions = ts.extend(tsConfig.options, compilationOptions); + compilationOptions = extend(tsConfig.options, compilationOptions); } } configFileName = file.fileName; @@ -272,7 +296,7 @@ namespace FourSlash { } if (configFileName) { - const baseDir = ts.normalizePath(ts.getDirectoryPath(configFileName)); + const baseDir = normalizePath(getDirectoryPath(configFileName)); const files: vfs.FileSet = { [baseDir]: {} }; this.inputFiles.forEach((data, path) => { const scriptInfo = new Harness.LanguageService.ScriptInfo(path, undefined!, /*isRootFile*/ false); // TODO: GH#18217 @@ -280,12 +304,12 @@ namespace FourSlash { }); const fs = new vfs.FileSystem(/*ignoreCase*/ true, { cwd: baseDir, files }); const host = new fakes.ParseConfigHost(fs); - const jsonSourceFile = ts.parseJsonText(configFileName, this.inputFiles.get(configFileName)!); - compilationOptions = ts.parseJsonSourceFileConfigFileContent(jsonSourceFile, host, baseDir, compilationOptions, configFileName).options; + const jsonSourceFile = parseJsonText(configFileName, this.inputFiles.get(configFileName)!); + compilationOptions = parseJsonSourceFileConfigFileContent(jsonSourceFile, host, baseDir, compilationOptions, configFileName).options; } if (compilationOptions.typeRoots) { - compilationOptions.typeRoots = compilationOptions.typeRoots.map(p => ts.getNormalizedAbsolutePath(p, this.basePath)); + compilationOptions.typeRoots = compilationOptions.typeRoots.map(p => getNormalizedAbsolutePath(p, this.basePath)); } const languageServiceAdapter = this.getLanguageServiceAdapter(testType, this.cancellationToken, compilationOptions); @@ -300,22 +324,22 @@ namespace FourSlash { this.languageServiceAdapterHost.addScript(startResolveFileRef.fileName, startResolveFileRef.content, /*isRootFile*/ true); const resolvedResult = languageServiceAdapter.getPreProcessedFileInfo(startResolveFileRef.fileName, startResolveFileRef.content); - const referencedFiles: ts.FileReference[] = resolvedResult.referencedFiles; - const importedFiles: ts.FileReference[] = resolvedResult.importedFiles; + const referencedFiles: FileReference[] = resolvedResult.referencedFiles; + const importedFiles: FileReference[] = resolvedResult.importedFiles; // Add triple reference files into language-service host - ts.forEach(referencedFiles, referenceFile => { + forEach(referencedFiles, referenceFile => { // Fourslash insert tests/cases/fourslash into inputFile.unitName so we will properly append the same base directory to refFile path const referenceFilePath = this.basePath + "/" + referenceFile.fileName; this.addMatchedInputFile(referenceFilePath, /* extensions */ undefined); }); // Add import files into language-service host - ts.forEach(importedFiles, importedFile => { + forEach(importedFiles, importedFile => { // Fourslash insert tests/cases/fourslash into inputFile.unitName and import statement doesn't require ".ts" // so convert them before making appropriate comparison const importedFilePath = this.basePath + "/" + importedFile.fileName; - this.addMatchedInputFile(importedFilePath, ts.getSupportedExtensions(compilationOptions)); + this.addMatchedInputFile(importedFilePath, getSupportedExtensions(compilationOptions)); }); // Check if no-default-lib flag is false and if so add default library @@ -325,7 +349,7 @@ namespace FourSlash { compilationOptions.lib?.forEach(fileName => { const libFile = Harness.Compiler.getDefaultLibrarySourceFile(fileName); - ts.Debug.assertIsDefined(libFile, `Could not find lib file '${fileName}'`); + Debug.assertIsDefined(libFile, `Could not find lib file '${fileName}'`); if (libFile) { this.languageServiceAdapterHost.addScript(fileName, libFile.text, /*isRootFile*/ false); } @@ -345,7 +369,7 @@ namespace FourSlash { compilationOptions.lib?.forEach(fileName => { const libFile = Harness.Compiler.getDefaultLibrarySourceFile(fileName); - ts.Debug.assertIsDefined(libFile, `Could not find lib file '${fileName}'`); + Debug.assertIsDefined(libFile, `Could not find lib file '${fileName}'`); if (libFile) { this.languageServiceAdapterHost.addScript(fileName, libFile.text, /*isRootFile*/ false); } @@ -354,7 +378,7 @@ namespace FourSlash { } for (const file of testData.files) { - ts.forEach(file.symlinks, link => { + forEach(file.symlinks, link => { this.languageServiceAdapterHost.vfs.mkdirpSync(vpath.dirname(link)); this.languageServiceAdapterHost.vfs.symlinkSync(file.fileName, link); }); @@ -364,12 +388,12 @@ namespace FourSlash { this.languageServiceAdapterHost.vfs.apply(testData.symlinks); } - this.formatCodeSettings = ts.testFormatSettings; + this.formatCodeSettings = testFormatSettings; // Open the first file by default this.openFile(0); - function memoWrap(ls: ts.LanguageService, target: TestState): ts.LanguageService { + function memoWrap(ls: LanguageService, target: TestState): LanguageService { const cacheableMembers: (keyof typeof ls)[] = [ "getCompletionEntryDetails", "getCompletionEntrySymbol", @@ -377,8 +401,8 @@ namespace FourSlash { "getReferencesAtPosition", "getDocumentHighlights", ]; - const proxy = {} as ts.LanguageService; - const keys = ts.getAllKeys(ls); + const proxy = {} as LanguageService; + const keys = getAllKeys(ls); for (const k of keys) { const key = k as keyof typeof ls; if (cacheableMembers.indexOf(key) === -1) { @@ -403,7 +427,7 @@ namespace FourSlash { } private getFileContent(fileName: string): string { - return ts.Debug.checkDefined(this.tryGetFileContent(fileName)); + return Debug.checkDefined(this.tryGetFileContent(fileName)); } private tryGetFileContent(fileName: string): string | undefined { const script = this.languageServiceAdapterHost.getScriptInfo(fileName); @@ -412,7 +436,7 @@ namespace FourSlash { // Entry points from fourslash.ts public goToMarker(name: string | Marker = "") { - const marker = ts.isString(name) ? this.getMarkerByName(name) : name; + const marker = isString(name) ? this.getMarkerByName(name) : name; if (this.activeFile.fileName !== marker.fileName) { this.openFile(marker.fileName); } @@ -421,7 +445,7 @@ namespace FourSlash { if (marker.position === -1 || marker.position > content.length) { throw new Error(`Marker "${name}" has been invalidated by unrecoverable edits to the file.`); } - const mName = ts.isString(name) ? name : this.markerName(marker); + const mName = isString(name) ? name : this.markerName(marker); this.lastKnownMarker = mName; this.goToPosition(marker.position); } @@ -444,14 +468,14 @@ namespace FourSlash { } public markerName(m: Marker): string { - return ts.forEachEntry(this.testData.markerPositions, (marker, name) => { + return forEachEntry(this.testData.markerPositions, (marker, name) => { if (marker === m) { return name; } })!; } - public goToPosition(positionOrLineAndCharacter: number | ts.LineAndCharacter) { + public goToPosition(positionOrLineAndCharacter: number | LineAndCharacter) { const pos = typeof positionOrLineAndCharacter === "number" ? positionOrLineAndCharacter : this.languageServiceAdapterHost.lineAndCharacterToPosition(this.activeFile.fileName, positionOrLineAndCharacter); @@ -461,7 +485,7 @@ namespace FourSlash { public select(startMarker: string, endMarker: string) { const start = this.getMarkerByName(startMarker), end = this.getMarkerByName(endMarker); - ts.Debug.assert(start.fileName === end.fileName); + Debug.assert(start.fileName === end.fileName); if (this.activeFile.fileName !== start.fileName) { this.openFile(start.fileName); } @@ -495,7 +519,7 @@ namespace FourSlash { // Opens a file given its 0-based index or fileName public openFile(indexOrName: number | string, content?: string, scriptKindName?: string): void { const fileToOpen: FourSlashFile = this.findFile(indexOrName); - fileToOpen.fileName = ts.normalizeSlashes(fileToOpen.fileName); + fileToOpen.fileName = normalizeSlashes(fileToOpen.fileName); this.activeFile = fileToOpen; // Let the host know that this file is now open this.languageServiceAdapterHost.openFile(fileToOpen.fileName, content, scriptKindName); @@ -516,7 +540,7 @@ namespace FourSlash { } public verifyOrganizeImports(newContent: string) { - const changes = this.languageService.organizeImports({ fileName: this.activeFile.fileName, type: "file" }, this.formatCodeSettings, ts.emptyOptions); + const changes = this.languageService.organizeImports({ fileName: this.activeFile.fileName, type: "file" }, this.formatCodeSettings, emptyOptions); this.applyChanges(changes); this.verifyFileContent(this.activeFile.fileName, newContent); } @@ -534,21 +558,21 @@ namespace FourSlash { return "\nMarker: " + this.lastKnownMarker + "\nChecking: " + msg + "\n\n"; } - private getDiagnostics(fileName: string, includeSuggestions = false): ts.Diagnostic[] { + private getDiagnostics(fileName: string, includeSuggestions = false): Diagnostic[] { return [ ...this.languageService.getSyntacticDiagnostics(fileName), ...this.languageService.getSemanticDiagnostics(fileName), - ...(includeSuggestions ? this.languageService.getSuggestionDiagnostics(fileName) : ts.emptyArray), + ...(includeSuggestions ? this.languageService.getSuggestionDiagnostics(fileName) : neverArray), ]; } - private getAllDiagnostics(): readonly ts.Diagnostic[] { - return ts.flatMap(this.languageServiceAdapterHost.getFilenames(), fileName => { - if (!ts.isAnySupportedFileExtension(fileName)) { + private getAllDiagnostics(): readonly Diagnostic[] { + return flatMap(this.languageServiceAdapterHost.getFilenames(), fileName => { + if (!isAnySupportedFileExtension(fileName)) { return []; } - const baseName = ts.getBaseFileName(fileName); + const baseName = getBaseFileName(fileName); if (baseName === "package.json" || baseName === "tsconfig.json" || baseName === "jsconfig.json") { return []; } @@ -583,7 +607,7 @@ namespace FourSlash { predicate(start!, start! + length!, startMarker.position, endMarker === undefined ? undefined : endMarker.position)); // TODO: GH#18217 } - private printErrorLog(expectErrors: boolean, errors: readonly ts.Diagnostic[]): void { + private printErrorLog(expectErrors: boolean, errors: readonly Diagnostic[]): void { if (expectErrors) { Harness.IO.log("Expected error not found. Error list is:"); } @@ -593,26 +617,26 @@ namespace FourSlash { for (const { start, length, messageText, file } of errors) { Harness.IO.log(" " + this.formatRange(file, start!, length!) + // TODO: GH#18217 - ", message: " + ts.flattenDiagnosticMessageText(messageText, Harness.IO.newLine()) + "\n"); + ", message: " + flattenDiagnosticMessageText(messageText, Harness.IO.newLine()) + "\n"); } } - private formatRange(file: ts.SourceFile | undefined, start: number, length: number) { + private formatRange(file: SourceFile | undefined, start: number, length: number) { if (file) { return `from: ${this.formatLineAndCharacterOfPosition(file, start)}, to: ${this.formatLineAndCharacterOfPosition(file, start + length)}`; } return "global"; } - private formatLineAndCharacterOfPosition(file: ts.SourceFile, pos: number) { + private formatLineAndCharacterOfPosition(file: SourceFile, pos: number) { if (file) { - const { line, character } = ts.getLineAndCharacterOfPosition(file, pos); + const { line, character } = getLineAndCharacterOfPosition(file, pos); return `${line}:${character}`; } return "global"; } - private formatPosition(file: ts.SourceFile, pos: number) { + private formatPosition(file: SourceFile, pos: number) { if (file) { return file.fileName + "@" + pos; } @@ -620,11 +644,11 @@ namespace FourSlash { } public verifyNoErrors() { - ts.forEachKey(this.inputFiles, fileName => { - if (!ts.isAnySupportedFileExtension(fileName) + forEachKey(this.inputFiles, fileName => { + if (!isAnySupportedFileExtension(fileName) || Harness.getConfigNameFromFileName(fileName) - || !this.getProgram().getCompilerOptions().allowJs && !ts.resolutionExtensionIsTSOrJson(ts.extensionFromPath(fileName))) return; - const errors = this.getDiagnostics(fileName).filter(e => e.category !== ts.DiagnosticCategory.Suggestion); + || !this.getProgram().getCompilerOptions().allowJs && !resolutionExtensionIsTSOrJson(extensionFromPath(fileName))) return; + const errors = this.getDiagnostics(fileName).filter(e => e.category !== DiagnosticCategory.Suggestion); if (errors.length) { this.printErrorLog(/*expectErrors*/ false, errors); const error = errors[0]; @@ -634,14 +658,14 @@ namespace FourSlash { } public verifyErrorExistsAtRange(range: Range, code: number, expectedMessage?: string) { - const span = ts.createTextSpanFromRange(range); - const hasMatchingError = ts.some( + const span = createTextSpanFromRange(range); + const hasMatchingError = some( this.getDiagnostics(range.fileName), ({ code, messageText, start, length }) => code === code && (!expectedMessage || expectedMessage === messageText) && - ts.isNumber(start) && ts.isNumber(length) && - ts.textSpansEqual(span, { start, length })); + isNumber(start) && isNumber(length) && + textSpansEqual(span, { start, length })); if (!hasMatchingError) { this.raiseError(`No error with code ${code} found at provided range.`); @@ -680,11 +704,11 @@ namespace FourSlash { this.verifyGoToX(arg0, endMarkerNames, () => this.getGoToDefinitionAndBoundSpan()); } - private getGoToDefinition(): readonly ts.DefinitionInfo[] { + private getGoToDefinition(): readonly DefinitionInfo[] { return this.languageService.getDefinitionAtPosition(this.activeFile.fileName, this.currentCaretPosition)!; } - private getGoToDefinitionAndBoundSpan(): ts.DefinitionInfoAndBoundSpan { + private getGoToDefinitionAndBoundSpan(): DefinitionInfoAndBoundSpan { return this.languageService.getDefinitionAndBoundSpan(this.activeFile.fileName, this.currentCaretPosition)!; } @@ -693,11 +717,11 @@ namespace FourSlash { this.languageService.getTypeDefinitionAtPosition(this.activeFile.fileName, this.currentCaretPosition)); } - private verifyGoToX(arg0: any, endMarkerNames: ArrayOrSingle | undefined, getDefs: () => readonly ts.DefinitionInfo[] | ts.DefinitionInfoAndBoundSpan | undefined) { + private verifyGoToX(arg0: any, endMarkerNames: ArrayOrSingle | undefined, getDefs: () => readonly DefinitionInfo[] | DefinitionInfoAndBoundSpan | undefined) { if (endMarkerNames) { this.verifyGoToXPlain(arg0, endMarkerNames, getDefs); } - else if (ts.isArray(arg0)) { + else if (isArray(arg0)) { const pairs = arg0 as readonly [ArrayOrSingle, ArrayOrSingle][]; for (const [start, end] of pairs) { this.verifyGoToXPlain(start, end, getDefs); @@ -706,14 +730,14 @@ namespace FourSlash { else { const obj: { [startMarkerName: string]: ArrayOrSingle } = arg0; for (const startMarkerName in obj) { - if (ts.hasProperty(obj, startMarkerName)) { + if (hasProperty(obj, startMarkerName)) { this.verifyGoToXPlain(startMarkerName, obj[startMarkerName], getDefs); } } } } - private verifyGoToXPlain(startMarkerNames: ArrayOrSingle, endMarkerNames: ArrayOrSingle, getDefs: () => readonly ts.DefinitionInfo[] | ts.DefinitionInfoAndBoundSpan | undefined) { + private verifyGoToXPlain(startMarkerNames: ArrayOrSingle, endMarkerNames: ArrayOrSingle, getDefs: () => readonly DefinitionInfo[] | DefinitionInfoAndBoundSpan | undefined) { for (const start of toArray(startMarkerNames)) { this.verifyGoToXSingle(start, endMarkerNames, getDefs); } @@ -725,18 +749,18 @@ namespace FourSlash { } } - private verifyGoToXSingle(startMarkerName: string, endMarkerNames: ArrayOrSingle, getDefs: () => readonly ts.DefinitionInfo[] | ts.DefinitionInfoAndBoundSpan | undefined) { + private verifyGoToXSingle(startMarkerName: string, endMarkerNames: ArrayOrSingle, getDefs: () => readonly DefinitionInfo[] | DefinitionInfoAndBoundSpan | undefined) { this.goToMarker(startMarkerName); this.verifyGoToXWorker(toArray(endMarkerNames), getDefs, startMarkerName); } - private verifyGoToXWorker(endMarkers: readonly string[], getDefs: () => readonly ts.DefinitionInfo[] | ts.DefinitionInfoAndBoundSpan | undefined, startMarkerName?: string) { + private verifyGoToXWorker(endMarkers: readonly string[], getDefs: () => readonly DefinitionInfo[] | DefinitionInfoAndBoundSpan | undefined, startMarkerName?: string) { const defs = getDefs(); - let definitions: readonly ts.DefinitionInfo[]; + let definitions: readonly DefinitionInfo[]; let testName: string; - if (!defs || ts.isArray(defs)) { - definitions = defs as ts.DefinitionInfo[] || []; + if (!defs || isArray(defs)) { + definitions = defs as DefinitionInfo[] || []; testName = "goToDefinitions"; } else { @@ -750,15 +774,15 @@ namespace FourSlash { this.raiseError(`${testName} failed - expected to find ${endMarkers.length} definitions but got ${definitions.length}`); } - ts.zipWith(endMarkers, definitions, (endMarker, definition, i) => { + zipWith(endMarkers, definitions, (endMarker, definition, i) => { const marker = this.getMarkerByName(endMarker); - if (ts.comparePaths(marker.fileName, definition.fileName, /*ignoreCase*/ true) !== ts.Comparison.EqualTo || marker.position !== definition.textSpan.start) { + if (comparePaths(marker.fileName, definition.fileName, /*ignoreCase*/ true) !== Comparison.EqualTo || marker.position !== definition.textSpan.start) { this.raiseError(`${testName} failed for definition ${endMarker} (${i}): expected ${marker.fileName} at ${marker.position}, got ${definition.fileName} at ${definition.textSpan.start}`); } }); } - private verifyDefinitionTextSpan(defs: ts.DefinitionInfoAndBoundSpan, startMarkerName: string) { + private verifyDefinitionTextSpan(defs: DefinitionInfoAndBoundSpan, startMarkerName: string) { const range = this.testData.ranges.find(range => this.markerName(range.marker!) === startMarkerName); if (!range && !defs.textSpan) { @@ -769,10 +793,10 @@ namespace FourSlash { const marker = this.getMarkerByName(startMarkerName); const startFile = marker.fileName; const fileContent = this.getFileContent(startFile); - const spanContent = fileContent.slice(defs.textSpan.start, ts.textSpanEnd(defs.textSpan)); + const spanContent = fileContent.slice(defs.textSpan.start, textSpanEnd(defs.textSpan)); const spanContentWithMarker = spanContent.slice(0, marker.position - defs.textSpan.start) + `/*${startMarkerName}*/` + spanContent.slice(marker.position - defs.textSpan.start); - const suggestedFileContent = (fileContent.slice(0, defs.textSpan.start) + `\x1b[1;4m[|${spanContentWithMarker}|]\x1b[31m` + fileContent.slice(ts.textSpanEnd(defs.textSpan))) - .split(/\r?\n/).map(line => " ".repeat(6) + line).join(ts.sys.newLine); + const suggestedFileContent = (fileContent.slice(0, defs.textSpan.start) + `\x1b[1;4m[|${spanContentWithMarker}|]\x1b[31m` + fileContent.slice(textSpanEnd(defs.textSpan))) + .split(/\r?\n/).map(line => " ".repeat(6) + line).join(sys.newLine); this.raiseError(`goToDefinitionsAndBoundSpan failed. Found a starting TextSpan around '${spanContent}' in '${startFile}' (at position ${defs.textSpan.start}). ` + `If this is the correct input span, put a fourslash range around it: \n\n${suggestedFileContent}\n`); } @@ -792,10 +816,10 @@ namespace FourSlash { } } - public verifyGetEmitOutputContentsForCurrentFile(expected: ts.OutputFile[]): void { + public verifyGetEmitOutputContentsForCurrentFile(expected: OutputFile[]): void { const emit = this.languageService.getEmitOutput(this.activeFile.fileName); assert.equal(emit.outputFiles.length, expected.length, "Number of emit output files"); - ts.zipWith(emit.outputFiles, expected, (outputFile, expected) => { + zipWith(emit.outputFiles, expected, (outputFile, expected) => { assert.equal(outputFile.name, expected.name, "FileName"); assert.equal(outputFile.text, expected.text, "Content"); }); @@ -816,7 +840,7 @@ namespace FourSlash { private verifyCompletionsWorker(options: FourSlashInterface.VerifyCompletionsOptions): void { const actualCompletions = this.getCompletionListAtCaret({ ...options.preferences, triggerCharacter: options.triggerCharacter })!; if (!actualCompletions) { - if (ts.hasProperty(options, "exact") && (options.exact === undefined || ts.isArray(options.exact) && !options.exact.length)) { + if (hasProperty(options, "exact") && (options.exact === undefined || isArray(options.exact) && !options.exact.length)) { return; } this.raiseError(`No completions at position '${this.currentCaretPosition}'.`); @@ -826,11 +850,11 @@ namespace FourSlash { this.raiseError(`Expected 'isNewIdentifierLocation' to be ${options.isNewIdentifierLocation || false}, got ${actualCompletions.isNewIdentifierLocation}`); } - if (ts.hasProperty(options, "isGlobalCompletion") && actualCompletions.isGlobalCompletion !== options.isGlobalCompletion) { + if (hasProperty(options, "isGlobalCompletion") && actualCompletions.isGlobalCompletion !== options.isGlobalCompletion) { this.raiseError(`Expected 'isGlobalCompletion to be ${options.isGlobalCompletion}, got ${actualCompletions.isGlobalCompletion}`); } - const nameToEntries = ts.createMap(); + const nameToEntries = createMap(); for (const entry of actualCompletions.entries) { const entries = nameToEntries.get(entry.name); if (!entries) { @@ -844,8 +868,8 @@ namespace FourSlash { } } - if (ts.hasProperty(options, "exact")) { - ts.Debug.assert(!ts.hasProperty(options, "includes") && !ts.hasProperty(options, "excludes")); + if (hasProperty(options, "exact")) { + Debug.assert(!hasProperty(options, "includes") && !hasProperty(options, "excludes")); if (options.exact === undefined) throw this.raiseError("Expected no completions"); this.verifyCompletionsAreExactly(actualCompletions.entries, toArray(options.exact), options.marker); } @@ -856,7 +880,7 @@ namespace FourSlash { const found = nameToEntries.get(name); if (!found) throw this.raiseError(`Includes: completion '${name}' not found.`); assert(found.length === 1, `Must use 'exact' for multiple completions with same name: '${name}'`); - this.verifyCompletionEntry(ts.first(found), include); + this.verifyCompletionEntry(first(found), include); } } if (options.excludes) { @@ -870,13 +894,13 @@ namespace FourSlash { } } - private verifyCompletionEntry(actual: ts.CompletionEntry, expected: FourSlashInterface.ExpectedCompletionEntry) { + private verifyCompletionEntry(actual: CompletionEntry, expected: FourSlashInterface.ExpectedCompletionEntry) { expected = typeof expected === "string" ? { name: expected } : expected; if (actual.insertText !== expected.insertText) { this.raiseError(`Expected completion insert text to be ${expected.insertText}, got ${actual.insertText}`); } - const convertedReplacementSpan = expected.replacementSpan && ts.createTextSpanFromRange(expected.replacementSpan); + const convertedReplacementSpan = expected.replacementSpan && createTextSpanFromRange(expected.replacementSpan); try { assert.deepEqual(actual.replacementSpan, convertedReplacementSpan); } @@ -898,16 +922,16 @@ namespace FourSlash { assert.equal(actual.hasAction, expected.hasAction, `Expected 'hasAction' properties to match`); assert.equal(actual.isRecommended, expected.isRecommended, `Expected 'isRecommended' properties to match'`); assert.equal(actual.source, expected.source, `Expected 'source' values to match`); - assert.equal(actual.sortText, expected.sortText || ts.Completions.SortText.LocationPriority, this.messageAtLastKnownMarker(`Actual entry: ${JSON.stringify(actual)}`)); + assert.equal(actual.sortText, expected.sortText || Completions.SortText.LocationPriority, this.messageAtLastKnownMarker(`Actual entry: ${JSON.stringify(actual)}`)); if (expected.text !== undefined) { const actualDetails = this.getCompletionEntryDetails(actual.name, actual.source)!; - assert.equal(ts.displayPartsToString(actualDetails.displayParts), expected.text, "Expected 'text' property to match 'displayParts' string"); - assert.equal(ts.displayPartsToString(actualDetails.documentation), expected.documentation || "", "Expected 'documentation' property to match 'documentation' display parts string"); + assert.equal(displayPartsToString(actualDetails.displayParts), expected.text, "Expected 'text' property to match 'displayParts' string"); + assert.equal(displayPartsToString(actualDetails.documentation), expected.documentation || "", "Expected 'documentation' property to match 'documentation' display parts string"); // TODO: GH#23587 // assert.equal(actualDetails.kind, actual.kind); assert.equal(actualDetails.kindModifiers, actual.kindModifiers, "Expected 'kindModifiers' properties to match"); - assert.equal(actualDetails.source && ts.displayPartsToString(actualDetails.source), expected.sourceDisplay, "Expected 'sourceDisplay' property to match 'source' display parts string"); + assert.equal(actualDetails.source && displayPartsToString(actualDetails.source), expected.sourceDisplay, "Expected 'sourceDisplay' property to match 'source' display parts string"); assert.deepEqual(actualDetails.tags, expected.tags); } else { @@ -915,11 +939,11 @@ namespace FourSlash { } } - private verifyCompletionsAreExactly(actual: readonly ts.CompletionEntry[], expected: readonly FourSlashInterface.ExpectedCompletionEntry[], marker?: ArrayOrSingle) { + private verifyCompletionsAreExactly(actual: readonly CompletionEntry[], expected: readonly FourSlashInterface.ExpectedCompletionEntry[], marker?: ArrayOrSingle) { // First pass: test that names are right. Then we'll test details. assert.deepEqual(actual.map(a => a.name), expected.map(e => typeof e === "string" ? e : e.name), marker ? "At marker " + JSON.stringify(marker) : undefined); - ts.zipWith(actual, expected, (completion, expectedCompletion, index) => { + zipWith(actual, expected, (completion, expectedCompletion, index) => { const name = typeof expectedCompletion === "string" ? expectedCompletion : expectedCompletion.name; if (completion.name !== name) { this.raiseError(`${marker ? JSON.stringify(marker) : ""} Expected completion at index ${index} to be ${name}, got ${completion.name}`); @@ -929,11 +953,11 @@ namespace FourSlash { } /** Use `getProgram` instead of accessing this directly. */ - private _program: ts.Program | undefined; + private _program: Program | undefined; /** Use `getChecker` instead of accessing this directly. */ - private _checker: ts.TypeChecker | undefined; + private _checker: TypeChecker | undefined; - private getProgram(): ts.Program { + private getProgram(): Program { return this._program || (this._program = this.languageService.getProgram()!); // TODO: GH#18217 } @@ -941,7 +965,7 @@ namespace FourSlash { return this._checker || (this._checker = this.getProgram().getTypeChecker()); } - private getSourceFile(): ts.SourceFile { + private getSourceFile(): SourceFile { const { fileName } = this.activeFile; const result = this.getProgram().getSourceFile(fileName); if (!result) { @@ -950,18 +974,18 @@ namespace FourSlash { return result; } - private getNode(): ts.Node { - return ts.getTouchingPropertyName(this.getSourceFile(), this.currentCaretPosition); + private getNode(): Node { + return getTouchingPropertyName(this.getSourceFile(), this.currentCaretPosition); } - private goToAndGetNode(range: Range): ts.Node { + private goToAndGetNode(range: Range): Node { this.goToRangeStart(range); const node = this.getNode(); this.verifyRange("touching property name", range, node); return node; } - private verifyRange(desc: string, expected: ts.TextRange, actual: ts.Node) { + private verifyRange(desc: string, expected: TextRange, actual: Node) { const actualStart = actual.getStart(); const actualEnd = actual.getEnd(); if (actualStart !== expected.pos || actualEnd !== expected.end) { @@ -969,13 +993,13 @@ namespace FourSlash { } } - private verifySymbol(symbol: ts.Symbol, declarationRanges: Range[]) { + private verifySymbol(symbol: Symbol, declarationRanges: Range[]) { const { declarations } = symbol; if (declarations.length !== declarationRanges.length) { this.raiseError(`Expected to get ${declarationRanges.length} declarations, got ${declarations.length}`); } - ts.zipWith(declarations, declarationRanges, (decl, range) => { + zipWith(declarations, declarationRanges, (decl, range) => { this.verifyRange("symbol declaration", range, decl); }); } @@ -989,16 +1013,16 @@ namespace FourSlash { this.verifySymbol(symbol, declarationRanges); } - public symbolsInScope(range: Range): ts.Symbol[] { + public symbolsInScope(range: Range): Symbol[] { const node = this.goToAndGetNode(range); - return this.getChecker().getSymbolsInScope(node, ts.SymbolFlags.Value | ts.SymbolFlags.Type | ts.SymbolFlags.Namespace); + return this.getChecker().getSymbolsInScope(node, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace); } - public setTypesRegistry(map: ts.MapLike): void { - this.languageServiceAdapterHost.typesRegistry = ts.createMapFromTemplate(map); + public setTypesRegistry(map: MapLike): void { + this.languageServiceAdapterHost.typesRegistry = createMapFromTemplate(map); } - public verifyTypeOfSymbolAtLocation(range: Range, symbol: ts.Symbol, expected: string): void { + public verifyTypeOfSymbolAtLocation(range: Range, symbol: Symbol, expected: string): void { const node = this.goToAndGetNode(range); const checker = this.getChecker(); const type = checker.getTypeOfSymbolAtLocation(symbol, node); @@ -1014,7 +1038,7 @@ namespace FourSlash { for (const fileName of files) { const searchFileNames = startFile === fileName ? [startFile] : [startFile, fileName]; const highlights = this.getDocumentHighlightsAtCurrentPosition(searchFileNames); - if (highlights && !highlights.every(dh => ts.contains(searchFileNames, dh.fileName))) { + if (highlights && !highlights.every(dh => contains(searchFileNames, dh.fileName))) { this.raiseError(`When asking for document highlights only in files ${searchFileNames}, got document highlights in ${unique(highlights, dh => dh.fileName)}`); } } @@ -1022,8 +1046,8 @@ namespace FourSlash { public verifyReferenceGroups(starts: ArrayOrSingle | ArrayOrSingle, parts: readonly FourSlashInterface.ReferenceGroup[]): void { interface ReferenceGroupJson { - definition: string | { text: string, range: ts.TextSpan }; - references: ts.ReferenceEntry[]; + definition: string | { text: string, range: TextSpan }; + references: ReferenceEntry[]; } interface RangeMarkerData { id?: string; @@ -1034,30 +1058,30 @@ namespace FourSlash { contextRangeDelta?: number, contextRangeId?: string } - const fullExpected = ts.map(parts, ({ definition, ranges }) => ({ - definition: typeof definition === "string" ? definition : { ...definition, range: ts.createTextSpanFromRange(definition.range) }, - references: ranges.map(r => { + const fullExpected = map(parts, ({ definition, ranges }) => ({ + definition: typeof definition === "string" ? definition : { ...definition, range: createTextSpanFromRange(definition.range) }, + references: ranges.map(r => { const { isWriteAccess = false, isDefinition = false, isInString, contextRangeIndex, contextRangeDelta, contextRangeId } = (r.marker && r.marker.data || {}) as RangeMarkerData; - let contextSpan: ts.TextSpan | undefined; + let contextSpan: TextSpan | undefined; if (contextRangeDelta !== undefined) { const allRanges = this.getRanges(); const index = allRanges.indexOf(r); if (index !== -1) { - contextSpan = ts.createTextSpanFromRange(allRanges[index + contextRangeDelta]); + contextSpan = createTextSpanFromRange(allRanges[index + contextRangeDelta]); } } else if (contextRangeId !== undefined) { const allRanges = this.getRanges(); - const contextRange = ts.find(allRanges, range => (range.marker?.data as RangeMarkerData)?.id === contextRangeId); + const contextRange = find(allRanges, range => (range.marker?.data as RangeMarkerData)?.id === contextRangeId); if (contextRange) { - contextSpan = ts.createTextSpanFromRange(contextRange); + contextSpan = createTextSpanFromRange(contextRange); } } else if (contextRangeIndex !== undefined) { - contextSpan = ts.createTextSpanFromRange(this.getRanges()[contextRangeIndex]); + contextSpan = createTextSpanFromRange(this.getRanges()[contextRangeIndex]); } return { - textSpan: ts.createTextSpanFromRange(r), + textSpan: createTextSpanFromRange(r), fileName: r.fileName, ...(contextSpan ? { contextSpan } : undefined), isWriteAccess, @@ -1069,7 +1093,7 @@ namespace FourSlash { for (const start of toArray(starts)) { this.goToMarkerOrRange(start); - const fullActual = ts.map(this.findReferencesAtCaret(), ({ definition, references }, i) => { + const fullActual = map(this.findReferencesAtCaret(), ({ definition, references }, i) => { const text = definition.displayParts.map(d => d.text).join(""); return { definition: fullExpected.length > i && typeof fullExpected[i].definition === "string" ? text : { text, range: definition.textSpan }, @@ -1079,7 +1103,7 @@ namespace FourSlash { this.assertObjectsEqual(fullActual, fullExpected); if (parts) { - this.verifyDocumentHighlightsRespectFilesList(unique(ts.flatMap(parts, p => p.ranges), r => r.fileName)); + this.verifyDocumentHighlightsRespectFilesList(unique(flatMap(parts, p => p.ranges), r => r.fileName)); } } } @@ -1093,13 +1117,13 @@ namespace FourSlash { } // Necessary to have this function since `findReferences` isn't implemented in `client.ts` - public verifyGetReferencesForServerTest(expected: readonly ts.ReferenceEntry[]): void { + public verifyGetReferencesForServerTest(expected: readonly ReferenceEntry[]): void { const refs = this.getReferencesAtCaret(); - assert.deepEqual(refs, expected); + assert.deepEqual(refs, expected); } public verifySingleReferenceGroup(definition: FourSlashInterface.ReferenceGroupDefinition, ranges?: Range[] | string) { - ranges = ts.isString(ranges) ? this.rangesByText().get(ranges)! : ranges || this.getRanges(); + ranges = isString(ranges) ? this.rangesByText().get(ranges)! : ranges || this.getRanges(); this.verifyReferenceGroups(ranges, [{ definition, ranges }]); } @@ -1114,7 +1138,7 @@ namespace FourSlash { } for (const key in actual) { - if (ts.hasProperty(actual as any, key)) { + if (hasProperty(actual as any, key)) { const ak = actual[key], ek = expected[key]; if (typeof ak === "object" && typeof ek === "object") { recur(ak, ek, path ? path + "." + key : key); @@ -1126,8 +1150,8 @@ namespace FourSlash { } for (const key in expected) { - if (ts.hasProperty(expected as any, key)) { - if (!ts.hasProperty(actual as any, key)) { + if (hasProperty(expected as any, key)) { + if (!hasProperty(actual as any, key)) { fail(`${msgPrefix}Missing property '${key}'`); } } @@ -1144,7 +1168,7 @@ namespace FourSlash { } - public verifyDisplayPartsOfReferencedSymbol(expected: ts.SymbolDisplayPart[]) { + public verifyDisplayPartsOfReferencedSymbol(expected: SymbolDisplayPart[]) { const referencedSymbols = this.findReferencesAtCaret()!; if (referencedSymbols.length === 0) { @@ -1158,20 +1182,20 @@ namespace FourSlash { TestState.getDisplayPartsJson(expected), this.messageAtLastKnownMarker("referenced symbol definition display parts")); } - private configure(preferences: ts.UserPreferences) { + private configure(preferences: UserPreferences) { if (this.testType === FourSlashTestType.Server) { - (this.languageService as ts.server.SessionClient).configure(preferences); + (this.languageService as server.SessionClient).configure(preferences); } } - private getCompletionListAtCaret(options?: ts.GetCompletionsAtPositionOptions): ts.CompletionInfo | undefined { + private getCompletionListAtCaret(options?: GetCompletionsAtPositionOptions): CompletionInfo | undefined { if (options) { this.configure(options); } return this.languageService.getCompletionsAtPosition(this.activeFile.fileName, this.currentCaretPosition, options); } - private getCompletionEntryDetails(entryName: string, source?: string, preferences?: ts.UserPreferences): ts.CompletionEntryDetails | undefined { + private getCompletionEntryDetails(entryName: string, source?: string, preferences?: UserPreferences): CompletionEntryDetails | undefined { if (preferences) { this.configure(preferences); } @@ -1200,8 +1224,8 @@ namespace FourSlash { this.testDiagnostics(expected, this.languageService.getSuggestionDiagnostics(this.activeFile.fileName), "suggestion"); } - private testDiagnostics(expected: readonly FourSlashInterface.Diagnostic[], diagnostics: readonly ts.Diagnostic[], category: string) { - assert.deepEqual(ts.realizeDiagnostics(diagnostics, "\n"), expected.map((e): ts.RealizedDiagnostic => { + private testDiagnostics(expected: readonly FourSlashInterface.Diagnostic[], diagnostics: readonly Diagnostic[], category: string) { + assert.deepEqual(realizeDiagnostics(diagnostics, "\n"), expected.map((e): RealizedDiagnostic => { const range = e.range || this.getRangesInFile()[0]; if (!range) { this.raiseError("Must provide a range for each expected diagnostic, or have one range in the fourslash source."); @@ -1210,7 +1234,7 @@ namespace FourSlash { message: e.message, category, code: e.code, - ...ts.createTextSpanFromRange(range), + ...createTextSpanFromRange(range), reportsUnnecessary: e.reportsUnnecessary, reportsDeprecated: e.reportsDeprecated }; @@ -1226,9 +1250,9 @@ namespace FourSlash { public verifyQuickInfos(namesAndTexts: { [name: string]: string | [string, string] }) { for (const name in namesAndTexts) { - if (ts.hasProperty(namesAndTexts, name)) { + if (hasProperty(namesAndTexts, name)) { const text = namesAndTexts[name]; - if (ts.isArray(text)) { + if (isArray(text)) { assert(text.length === 2); const [expectedText, expectedDocumentation] = text; this.verifyQuickInfoAt(name, expectedText, expectedDocumentation); @@ -1245,17 +1269,17 @@ namespace FourSlash { throw new Error("Use 'undefined' instead"); } const actualQuickInfo = this.languageService.getQuickInfoAtPosition(this.activeFile.fileName, this.currentCaretPosition); - const actualQuickInfoText = actualQuickInfo ? ts.displayPartsToString(actualQuickInfo.displayParts) : ""; - const actualQuickInfoDocumentation = actualQuickInfo ? ts.displayPartsToString(actualQuickInfo.documentation) : ""; + const actualQuickInfoText = actualQuickInfo ? displayPartsToString(actualQuickInfo.displayParts) : ""; + const actualQuickInfoDocumentation = actualQuickInfo ? displayPartsToString(actualQuickInfo.documentation) : ""; assert.equal(actualQuickInfoText, expectedText, this.messageAtLastKnownMarker("quick info text")); assert.equal(actualQuickInfoDocumentation, expectedDocumentation || "", this.assertionMessageAtLastKnownMarker("quick info doc")); } public verifyQuickInfoDisplayParts(kind: string, kindModifiers: string, textSpan: TextSpan, - displayParts: ts.SymbolDisplayPart[], - documentation: ts.SymbolDisplayPart[], - tags: ts.JSDocTagInfo[] | undefined + displayParts: SymbolDisplayPart[], + documentation: SymbolDisplayPart[], + tags: JSDocTagInfo[] | undefined ) { const actualQuickInfo = this.languageService.getQuickInfoAtPosition(this.activeFile.fileName, this.currentCaretPosition)!; @@ -1269,7 +1293,7 @@ namespace FourSlash { } else { assert.equal(actualQuickInfo.tags.length, tags.length, this.messageAtLastKnownMarker("QuickInfo tags")); - ts.zipWith(tags, actualQuickInfo.tags, (expectedTag, actualTag) => { + zipWith(tags, actualQuickInfo.tags, (expectedTag, actualTag) => { assert.equal(expectedTag.name, actualTag.name); assert.equal(expectedTag.text, actualTag.text, this.messageAtLastKnownMarker("QuickInfo tag " + actualTag.name)); }); @@ -1277,7 +1301,7 @@ namespace FourSlash { } public verifyRangesAreRenameLocations(options?: Range[] | { findInStrings?: boolean, findInComments?: boolean, ranges?: Range[] }) { - if (ts.isArray(options)) { + if (isArray(options)) { this.verifyRenameLocations(options, options); } else { @@ -1293,7 +1317,7 @@ namespace FourSlash { contextRangeDelta?: number contextRangeId?: string; } - const { findInStrings = false, findInComments = false, ranges = this.getRanges(), providePrefixAndSuffixTextForRename = true } = ts.isArray(options) ? { findInStrings: false, findInComments: false, ranges: options, providePrefixAndSuffixTextForRename: true } : options; + const { findInStrings = false, findInComments = false, ranges = this.getRanges(), providePrefixAndSuffixTextForRename = true } = isArray(options) ? { findInStrings: false, findInComments: false, ranges: options, providePrefixAndSuffixTextForRename: true } : options; const _startRanges = toArray(startRanges); assert(_startRanges.length); @@ -1309,32 +1333,32 @@ namespace FourSlash { const references = this.languageService.findRenameLocations( this.activeFile.fileName, this.currentCaretPosition, findInStrings, findInComments, providePrefixAndSuffixTextForRename); - const sort = (locations: readonly ts.RenameLocation[] | undefined) => - locations && ts.sort(locations, (r1, r2) => ts.compareStringsCaseSensitive(r1.fileName, r2.fileName) || r1.textSpan.start - r2.textSpan.start); - assert.deepEqual(sort(references), sort(ranges.map((rangeOrOptions): ts.RenameLocation => { + const sort = (locations: readonly RenameLocation[] | undefined) => + locations && sort(locations, (r1, r2) => compareStringsCaseSensitive(r1.fileName, r2.fileName) || r1.textSpan.start - r2.textSpan.start); + assert.deepEqual(sort(references), sort(ranges.map((rangeOrOptions): RenameLocation => { const { range, ...prefixSuffixText } = "range" in rangeOrOptions ? rangeOrOptions : { range: rangeOrOptions }; // eslint-disable-line no-in-operator const { contextRangeIndex, contextRangeDelta, contextRangeId } = (range.marker && range.marker.data || {}) as RangeMarkerData; - let contextSpan: ts.TextSpan | undefined; + let contextSpan: TextSpan | undefined; if (contextRangeDelta !== undefined) { const allRanges = this.getRanges(); const index = allRanges.indexOf(range); if (index !== -1) { - contextSpan = ts.createTextSpanFromRange(allRanges[index + contextRangeDelta]); + contextSpan = createTextSpanFromRange(allRanges[index + contextRangeDelta]); } } else if (contextRangeId !== undefined) { const allRanges = this.getRanges(); - const contextRange = ts.find(allRanges, range => (range.marker?.data as RangeMarkerData)?.id === contextRangeId); + const contextRange = find(allRanges, range => (range.marker?.data as RangeMarkerData)?.id === contextRangeId); if (contextRange) { - contextSpan = ts.createTextSpanFromRange(contextRange); + contextSpan = createTextSpanFromRange(contextRange); } } else if (contextRangeIndex !== undefined) { - contextSpan = ts.createTextSpanFromRange(this.getRanges()[contextRangeIndex]); + contextSpan = createTextSpanFromRange(this.getRanges()[contextRangeIndex]); } return { fileName: range.fileName, - textSpan: ts.createTextSpanFromRange(range), + textSpan: createTextSpanFromRange(range), ...(contextSpan ? { contextSpan } : undefined), ...prefixSuffixText }; @@ -1355,13 +1379,13 @@ namespace FourSlash { this.raiseError(`baselineRename failed. Could not rename at the provided position.`); } - const renamesByFile = ts.group(locations, l => l.fileName); + const renamesByFile = group(locations, l => l.fileName); const baselineContent = renamesByFile.map(renames => { const { fileName } = renames[0]; - const sortedRenames = ts.sort(renames, (a, b) => b.textSpan.start - a.textSpan.start); + const sortedRenames = sort(renames, (a, b) => b.textSpan.start - a.textSpan.start); let baselineFileContent = this.getFileContent(fileName); for (const { textSpan } of sortedRenames) { - const isOriginalSpan = fileName === this.activeFile.fileName && ts.textSpanIntersectsWithPosition(textSpan, position); + const isOriginalSpan = fileName === this.activeFile.fileName && textSpanIntersectsWithPosition(textSpan, position); baselineFileContent = baselineFileContent.slice(0, textSpan.start) + (isOriginalSpan ? "[|RENAME|]" : "RENAME") + @@ -1387,11 +1411,11 @@ namespace FourSlash { } } - public verifySignatureHelpPresence(expectPresent: boolean, triggerReason: ts.SignatureHelpTriggerReason | undefined, markers: readonly (string | Marker)[]) { + public verifySignatureHelpPresence(expectPresent: boolean, triggerReason: SignatureHelpTriggerReason | undefined, markers: readonly (string | Marker)[]) { if (markers.length) { for (const marker of markers) { this.goToMarker(marker); - this.verifySignatureHelpPresence(expectPresent, triggerReason, ts.emptyArray); + this.verifySignatureHelpPresence(expectPresent, triggerReason, neverArray); } return; } @@ -1428,26 +1452,26 @@ namespace FourSlash { const selectedItem = help.items[help.selectedItemIndex]; // Argument index may exceed number of parameters - const currentParameter = selectedItem.parameters[help.argumentIndex] as ts.SignatureHelpParameter | undefined; + const currentParameter = selectedItem.parameters[help.argumentIndex] as SignatureHelpParameter | undefined; assert.equal(help.items.length, options.overloadsCount || 1, this.assertionMessageAtLastKnownMarker("signature help overloads count")); - assert.equal(ts.displayPartsToString(selectedItem.documentation), options.docComment || "", this.assertionMessageAtLastKnownMarker("current signature help doc comment")); + assert.equal(displayPartsToString(selectedItem.documentation), options.docComment || "", this.assertionMessageAtLastKnownMarker("current signature help doc comment")); if (options.text !== undefined) { assert.equal( - ts.displayPartsToString(selectedItem.prefixDisplayParts) + - selectedItem.parameters.map(p => ts.displayPartsToString(p.displayParts)).join(ts.displayPartsToString(selectedItem.separatorDisplayParts)) + - ts.displayPartsToString(selectedItem.suffixDisplayParts), options.text); + displayPartsToString(selectedItem.prefixDisplayParts) + + selectedItem.parameters.map(p => displayPartsToString(p.displayParts)).join(displayPartsToString(selectedItem.separatorDisplayParts)) + + displayPartsToString(selectedItem.suffixDisplayParts), options.text); } if (options.parameterName !== undefined) { assert.equal(currentParameter!.name, options.parameterName); } if (options.parameterSpan !== undefined) { - assert.equal(ts.displayPartsToString(currentParameter!.displayParts), options.parameterSpan); + assert.equal(displayPartsToString(currentParameter!.displayParts), options.parameterSpan); } if (currentParameter) { - assert.equal(ts.displayPartsToString(currentParameter.documentation), options.parameterDocComment || "", this.assertionMessageAtLastKnownMarker("current parameter Help DocComment")); + assert.equal(displayPartsToString(currentParameter.documentation), options.parameterDocComment || "", this.assertionMessageAtLastKnownMarker("current parameter Help DocComment")); } if (options.parameterCount !== undefined) { assert.equal(selectedItem.parameters.length, options.parameterCount); @@ -1459,8 +1483,8 @@ namespace FourSlash { assert.equal(selectedItem.isVariadic, !!options.isVariadic); const actualTags = selectedItem.tags; - assert.equal(actualTags.length, (options.tags || ts.emptyArray).length, this.assertionMessageAtLastKnownMarker("signature help tags")); - ts.zipWith((options.tags || ts.emptyArray), actualTags, (expectedTag, actualTag) => { + assert.equal(actualTags.length, (options.tags || neverArray).length, this.assertionMessageAtLastKnownMarker("signature help tags")); + zipWith((options.tags || neverArray), actualTags, (expectedTag, actualTag) => { assert.equal(actualTag.name, expectedTag.name); assert.equal(actualTag.text, expectedTag.text, this.assertionMessageAtLastKnownMarker("signature help tag " + actualTag.name)); }); @@ -1480,8 +1504,8 @@ namespace FourSlash { "argumentCount", ]; for (const key in options) { - if (!ts.contains(allKeys, key)) { - ts.Debug.fail("Unexpected key " + key); + if (!contains(allKeys, key)) { + Debug.fail("Unexpected key " + key); } } } @@ -1492,7 +1516,7 @@ namespace FourSlash { } } - public verifyRenameInfoSucceeded(displayName: string | undefined, fullDisplayName: string | undefined, kind: string | undefined, kindModifiers: string | undefined, fileToRename: string | undefined, expectedRange: Range | undefined, renameInfoOptions: ts.RenameInfoOptions | undefined): void { + public verifyRenameInfoSucceeded(displayName: string | undefined, fullDisplayName: string | undefined, kind: string | undefined, kindModifiers: string | undefined, fileToRename: string | undefined, expectedRange: Range | undefined, renameInfoOptions: RenameInfoOptions | undefined): void { const renameInfo = this.languageService.getRenameInfo(this.activeFile.fileName, this.currentCaretPosition, renameInfoOptions || { allowRenameOfImportPath: true }); if (!renameInfo.canRename) { throw this.raiseError("Rename did not succeed"); @@ -1512,9 +1536,9 @@ namespace FourSlash { } if (renameInfo.triggerSpan.start !== expectedRange.pos || - ts.textSpanEnd(renameInfo.triggerSpan) !== expectedRange.end) { + textSpanEnd(renameInfo.triggerSpan) !== expectedRange.end) { this.raiseError("Expected triggerSpan [" + expectedRange.pos + "," + expectedRange.end + "). Got [" + - renameInfo.triggerSpan.start + "," + ts.textSpanEnd(renameInfo.triggerSpan) + ") instead."); + renameInfo.triggerSpan.start + "," + textSpanEnd(renameInfo.triggerSpan) + ") instead."); } } @@ -1529,7 +1553,7 @@ namespace FourSlash { private alignmentForExtraInfo = 50; - private spanLines(file: FourSlashFile, spanInfo: ts.TextSpan, { selection = false, fullLines = false, lineNumbers = false } = {}) { + private spanLines(file: FourSlashFile, spanInfo: TextSpan, { selection = false, fullLines = false, lineNumbers = false } = {}) { if (selection) { fullLines = true; } @@ -1540,7 +1564,7 @@ namespace FourSlash { if (contextStartPos > 0) { while (contextStartPos > 1) { const ch = file.content.charCodeAt(contextStartPos - 1); - if (ch === ts.CharacterCodes.lineFeed || ch === ts.CharacterCodes.carriageReturn) { + if (ch === CharacterCodes.lineFeed || ch === CharacterCodes.carriageReturn) { break; } contextStartPos--; @@ -1549,7 +1573,7 @@ namespace FourSlash { if (contextEndPos < file.content.length) { while (contextEndPos < file.content.length - 1) { const ch = file.content.charCodeAt(contextEndPos); - if (ch === ts.CharacterCodes.lineFeed || ch === ts.CharacterCodes.carriageReturn) { + if (ch === CharacterCodes.lineFeed || ch === CharacterCodes.carriageReturn) { break; } contextEndPos++; @@ -1559,34 +1583,34 @@ namespace FourSlash { let contextString: string; let contextLineMap: number[]; - let contextStart: ts.LineAndCharacter; - let contextEnd: ts.LineAndCharacter; - let selectionStart: ts.LineAndCharacter; - let selectionEnd: ts.LineAndCharacter; + let contextStart: LineAndCharacter; + let contextEnd: LineAndCharacter; + let selectionStart: LineAndCharacter; + let selectionEnd: LineAndCharacter; let lineNumberPrefixLength: number; if (lineNumbers) { contextString = file.content; - contextLineMap = ts.computeLineStarts(contextString); - contextStart = ts.computeLineAndCharacterOfPosition(contextLineMap, contextStartPos); - contextEnd = ts.computeLineAndCharacterOfPosition(contextLineMap, contextEndPos); - selectionStart = ts.computeLineAndCharacterOfPosition(contextLineMap, spanInfo.start); - selectionEnd = ts.computeLineAndCharacterOfPosition(contextLineMap, ts.textSpanEnd(spanInfo)); + contextLineMap = computeLineStarts(contextString); + contextStart = computeLineAndCharacterOfPosition(contextLineMap, contextStartPos); + contextEnd = computeLineAndCharacterOfPosition(contextLineMap, contextEndPos); + selectionStart = computeLineAndCharacterOfPosition(contextLineMap, spanInfo.start); + selectionEnd = computeLineAndCharacterOfPosition(contextLineMap, textSpanEnd(spanInfo)); lineNumberPrefixLength = (contextEnd.line + 1).toString().length + 2; } else { contextString = file.content.substring(contextStartPos, contextEndPos); - contextLineMap = ts.computeLineStarts(contextString); + contextLineMap = computeLineStarts(contextString); contextStart = { line: 0, character: 0 }; contextEnd = { line: contextLineMap.length - 1, character: 0 }; - selectionStart = selection ? ts.computeLineAndCharacterOfPosition(contextLineMap, spanInfo.start - contextStartPos) : contextStart; - selectionEnd = selection ? ts.computeLineAndCharacterOfPosition(contextLineMap, ts.textSpanEnd(spanInfo) - contextStartPos) : contextEnd; + selectionStart = selection ? computeLineAndCharacterOfPosition(contextLineMap, spanInfo.start - contextStartPos) : contextStart; + selectionEnd = selection ? computeLineAndCharacterOfPosition(contextLineMap, textSpanEnd(spanInfo) - contextStartPos) : contextEnd; lineNumberPrefixLength = 0; } const output: string[] = []; for (let lineNumber = contextStart.line; lineNumber <= contextEnd.line; lineNumber++) { const spanLine = contextString.substring(contextLineMap[lineNumber], contextLineMap[lineNumber + 1]); - output.push(lineNumbers ? `${ts.padLeft(`${lineNumber + 1}: `, lineNumberPrefixLength)}${spanLine}` : spanLine); + output.push(lineNumbers ? `${padLeft(`${lineNumber + 1}: `, lineNumberPrefixLength)}${spanLine}` : spanLine); if (selection) { if (lineNumber < selectionStart.line || lineNumber > selectionEnd.line) { continue; @@ -1603,7 +1627,7 @@ namespace FourSlash { return output; } - private spanInfoToString(spanInfo: ts.TextSpan, prefixString: string, file: FourSlashFile = this.activeFile) { + private spanInfoToString(spanInfo: TextSpan, prefixString: string, file: FourSlashFile = this.activeFile) { let resultString = "SpanInfo: " + JSON.stringify(spanInfo); if (spanInfo) { const spanLines = this.spanLines(file, spanInfo); @@ -1613,14 +1637,14 @@ namespace FourSlash { } resultString += prefixString + spanLines[i]; } - resultString += "\n" + prefixString + ":=> (" + this.getLineColStringAtPosition(spanInfo.start, file) + ") to (" + this.getLineColStringAtPosition(ts.textSpanEnd(spanInfo), file) + ")"; + resultString += "\n" + prefixString + ":=> (" + this.getLineColStringAtPosition(spanInfo.start, file) + ") to (" + this.getLineColStringAtPosition(textSpanEnd(spanInfo), file) + ")"; } return resultString; } - private baselineCurrentFileLocations(getSpanAtPos: (pos: number) => ts.TextSpan): string { - const fileLineMap = ts.computeLineStarts(this.activeFile.content); + private baselineCurrentFileLocations(getSpanAtPos: (pos: number) => TextSpan): string { + const fileLineMap = computeLineStarts(this.activeFile.content); let nextLine = 0; let resultString = ""; let currentLine: string; @@ -1633,8 +1657,8 @@ namespace FourSlash { const addSpanInfoString = () => { if (previousSpanInfo) { resultString += currentLine; - let thisLineMarker = ts.repeatString(" ", startColumn!) + ts.repeatString("~", length!); - thisLineMarker += ts.repeatString(" ", this.alignmentForExtraInfo - thisLineMarker.length - prefixString.length + 1); + let thisLineMarker = repeatString(" ", startColumn!) + repeatString("~", length!); + thisLineMarker += repeatString(" ", this.alignmentForExtraInfo - thisLineMarker.length - prefixString.length + 1); resultString += thisLineMarker; resultString += "=> Pos: (" + (pos - length!) + " to " + (pos - 1) + ") "; resultString += " " + previousSpanInfo; @@ -1649,7 +1673,7 @@ namespace FourSlash { if (resultString.length) { resultString += "\n--------------------------------"; } - currentLine = "\n" + nextLine.toString() + ts.repeatString(" ", 3 - nextLine.toString().length) + ">" + this.activeFile.content.substring(pos, fileLineMap[nextLine]) + "\n "; + currentLine = "\n" + nextLine.toString() + repeatString(" ", 3 - nextLine.toString().length) + ">" + this.activeFile.content.substring(pos, fileLineMap[nextLine]) + "\n "; startColumn = 0; length = 0; } @@ -1699,7 +1723,7 @@ namespace FourSlash { } public verifyGetEmitOutput(expectedOutputFiles: readonly string[]): void { - const outputFiles = ts.flatMap(this.getEmitFiles(), e => this.languageService.getEmitOutput(e.fileName).outputFiles); + const outputFiles = flatMap(this.getEmitFiles(), e => this.languageService.getEmitOutput(e.fileName).outputFiles); assert.deepEqual(outputFiles.map(f => f.name), expectedOutputFiles); @@ -1721,9 +1745,9 @@ namespace FourSlash { if (emitOutput.emitSkipped) { resultString += "Diagnostics:" + Harness.IO.newLine(); - const diagnostics = ts.getPreEmitDiagnostics(this.languageService.getProgram()!); // TODO: GH#18217 + const diagnostics = getPreEmitDiagnostics(this.languageService.getProgram()!); // TODO: GH#18217 for (const diagnostic of diagnostics) { - if (!ts.isString(diagnostic.messageText)) { + if (!isString(diagnostic.messageText)) { resultString += this.flattenChainedMessage(diagnostic.messageText); } else { @@ -1739,10 +1763,10 @@ namespace FourSlash { resultString += Harness.IO.newLine(); } - Harness.Baseline.runBaseline(ts.Debug.checkDefined(this.testData.globalOptions[MetadataOptionNames.baselineFile]), resultString); + Harness.Baseline.runBaseline(Debug.checkDefined(this.testData.globalOptions[MetadataOptionNames.baselineFile]), resultString); } - private flattenChainedMessage(diag: ts.DiagnosticMessageChain, indent = " ") { + private flattenChainedMessage(diag: DiagnosticMessageChain, indent = " ") { let result = ""; result += indent + diag.messageText + Harness.IO.newLine(); if (diag.next) { @@ -1760,7 +1784,7 @@ namespace FourSlash { } private getCompilerTestFiles() { - return ts.map(this.testData.files, ({ content, fileName }) => ({ + return map(this.testData.files, ({ content, fileName }) => ({ content, unitName: fileName })); } @@ -1775,7 +1799,7 @@ namespace FourSlash { } private getSyntacticDiagnosticBaselineText(files: Harness.Compiler.TestFile[]) { - const diagnostics = ts.flatMap(files, + const diagnostics = flatMap(files, file => this.languageService.getSyntacticDiagnostics(file.unitName) ); const result = `Syntactic Diagnostics for file '${this.originalInputFileName}':` @@ -1785,7 +1809,7 @@ namespace FourSlash { } private getSemanticDiagnosticBaselineText(files: Harness.Compiler.TestFile[]) { - const diagnostics = ts.flatMap(files, + const diagnostics = flatMap(files, file => this.languageService.getSemanticDiagnostics(file.unitName) ); const result = `Semantic Diagnostics for file '${this.originalInputFileName}':` @@ -1812,20 +1836,20 @@ namespace FourSlash { const fileContent = this.activeFile.content; const text = markers.map(marker => { const baselineContent = [fileContent.slice(0, marker.position) + "/**/" + fileContent.slice(marker.position) + n]; - let selectionRange: ts.SelectionRange | undefined = this.languageService.getSmartSelectionRange(this.activeFile.fileName, marker.position); + let selectionRange: SelectionRange | undefined = this.languageService.getSmartSelectionRange(this.activeFile.fileName, marker.position); while (selectionRange) { const { textSpan } = selectionRange; let masked = Array.from(fileContent).map((char, index) => { const charCode = char.charCodeAt(0); - if (index >= textSpan.start && index < ts.textSpanEnd(textSpan)) { - return char === " " ? "•" : ts.isLineBreak(charCode) ? `↲${n}` : char; + if (index >= textSpan.start && index < textSpanEnd(textSpan)) { + return char === " " ? "•" : isLineBreak(charCode) ? `↲${n}` : char; } - return ts.isLineBreak(charCode) ? char : " "; + return isLineBreak(charCode) ? char : " "; }).join(""); masked = masked.replace(/^\s*$\r?\n?/gm, ""); // Remove blank lines - const isRealCharacter = (char: string) => char !== "•" && char !== "↲" && !ts.isWhiteSpaceLike(char.charCodeAt(0)); + const isRealCharacter = (char: string) => char !== "•" && char !== "↲" && !isWhiteSpaceLike(char.charCodeAt(0)); const leadingWidth = Array.from(masked).findIndex(isRealCharacter); - const trailingWidth = ts.findLastIndex(Array.from(masked), isRealCharacter); + const trailingWidth = findLastIndex(Array.from(masked), isRealCharacter); masked = masked.slice(0, leadingWidth) + masked.slice(leadingWidth, trailingWidth).replace(/•/g, " ").replace(/↲/g, "") + masked.slice(trailingWidth); @@ -1859,7 +1883,7 @@ namespace FourSlash { public printErrorList() { const syntacticErrors = this.languageService.getSyntacticDiagnostics(this.activeFile.fileName); const semanticErrors = this.languageService.getSemanticDiagnostics(this.activeFile.fileName); - const errorList = ts.concatenate(syntacticErrors, semanticErrors); + const errorList = concatenate(syntacticErrors, semanticErrors); Harness.IO.log(`Error list (${errorList.length} errors)`); if (errorList.length) { @@ -1867,7 +1891,7 @@ namespace FourSlash { Harness.IO.log( "start: " + err.start + ", length: " + err.length + - ", message: " + ts.flattenDiagnosticMessageText(err.messageText, Harness.IO.newLine())); + ", message: " + flattenDiagnosticMessageText(err.messageText, Harness.IO.newLine())); }); } } @@ -1888,31 +1912,31 @@ namespace FourSlash { } public printCurrentSignatureHelp() { - const help = this.getSignatureHelp(ts.emptyOptions)!; + const help = this.getSignatureHelp(emptyOptions)!; Harness.IO.log(stringify(help.items[help.selectedItemIndex])); } private getBaselineFileNameForInternalFourslashFile(ext = ".baseline") { return this.testData.globalOptions[MetadataOptionNames.baselineFile] || - ts.getBaseFileName(this.activeFile.fileName).replace(ts.Extension.Ts, ext); + getBaseFileName(this.activeFile.fileName).replace(Extension.Ts, ext); } private getBaselineFileNameForContainingTestFile(ext = ".baseline") { - return ts.getBaseFileName(this.originalInputFileName).replace(ts.Extension.Ts, ext); + return getBaseFileName(this.originalInputFileName).replace(Extension.Ts, ext); } - private getSignatureHelp({ triggerReason }: FourSlashInterface.VerifySignatureHelpOptions): ts.SignatureHelpItems | undefined { + private getSignatureHelp({ triggerReason }: FourSlashInterface.VerifySignatureHelpOptions): SignatureHelpItems | undefined { return this.languageService.getSignatureHelpItems(this.activeFile.fileName, this.currentCaretPosition, { triggerReason }); } - public printCompletionListMembers(preferences: ts.UserPreferences | undefined) { + public printCompletionListMembers(preferences: UserPreferences | undefined) { const completions = this.getCompletionListAtCaret(preferences); this.printMembersOrCompletions(completions); } - private printMembersOrCompletions(info: ts.CompletionInfo | undefined) { + private printMembersOrCompletions(info: CompletionInfo | undefined) { if (info === undefined) { return "No completion info."; } const { entries } = info; @@ -1930,7 +1954,7 @@ namespace FourSlash { } public printContext() { - ts.forEach(this.languageServiceAdapterHost.getFilenames(), Harness.IO.log); + forEach(this.languageServiceAdapterHost.getFilenames(), Harness.IO.log); } public deleteChar(count = 1) { @@ -2019,7 +2043,7 @@ namespace FourSlash { } else if (prevChar === " " && /A-Za-z_/.test(ch)) { /* Completions */ - this.languageService.getCompletionsAtPosition(this.activeFile.fileName, offset, ts.emptyOptions); + this.languageService.getCompletionsAtPosition(this.activeFile.fileName, offset, emptyOptions); } if (i % checkCadence === 0) { @@ -2073,8 +2097,8 @@ namespace FourSlash { // Check syntactic structure const content = this.getFileContent(this.activeFile.fileName); - const referenceSourceFile = ts.createLanguageServiceSourceFile( - this.activeFile.fileName, createScriptSnapShot(content), ts.ScriptTarget.Latest, /*version:*/ "0", /*setNodeParents:*/ false); + const referenceSourceFile = createLanguageServiceSourceFile( + this.activeFile.fileName, createScriptSnapShot(content), ScriptTarget.Latest, /*version:*/ "0", /*setNodeParents:*/ false); const referenceSyntaxDiagnostics = referenceSourceFile.parseDiagnostics; Utils.assertDiagnosticsEquals(incrementalSyntaxDiagnostics, referenceSyntaxDiagnostics); @@ -2085,7 +2109,7 @@ namespace FourSlash { * @returns The number of characters added to the file as a result of the edits. * May be negative. */ - private applyEdits(fileName: string, edits: readonly ts.TextChange[]): number { + private applyEdits(fileName: string, edits: readonly TextChange[]): number { let runningOffset = 0; forEachTextChange(edits, edit => { @@ -2109,15 +2133,15 @@ namespace FourSlash { return runningOffset; } - public copyFormatOptions(): ts.FormatCodeSettings { - return ts.clone(this.formatCodeSettings); + public copyFormatOptions(): FormatCodeSettings { + return clone(this.formatCodeSettings); } - public setFormatOptions(formatCodeOptions: ts.FormatCodeOptions | ts.FormatCodeSettings): ts.FormatCodeSettings { + public setFormatOptions(formatCodeOptions: FormatCodeOptions | FormatCodeSettings): FormatCodeSettings { const oldFormatCodeOptions = this.formatCodeSettings; - this.formatCodeSettings = ts.toEditorSettings(formatCodeOptions); + this.formatCodeSettings = toEditorSettings(formatCodeOptions); if (this.testType === FourSlashTestType.Server) { - (this.languageService as ts.server.SessionClient).setFormattingOptions(this.formatCodeSettings); + (this.languageService as server.SessionClient).setFormattingOptions(this.formatCodeSettings); } return oldFormatCodeOptions; } @@ -2248,10 +2272,10 @@ namespace FourSlash { this.raiseError("verifyRangesInImplementationList failed - expected to find at least one implementation location but got 0"); } - const duplicate = findDuplicatedElement(implementations, ts.documentSpansEqual); + const duplicate = findDuplicatedElement(implementations, documentSpansEqual); if (duplicate) { const { textSpan, fileName } = duplicate; - this.raiseError(`Duplicate implementations returned for range (${textSpan.start}, ${ts.textSpanEnd(textSpan)}) in ${fileName}`); + this.raiseError(`Duplicate implementations returned for range (${textSpan.start}, ${textSpanEnd(textSpan)}) in ${fileName}`); } const ranges = this.getRanges(); @@ -2265,19 +2289,19 @@ namespace FourSlash { const delayedErrors: string[] = []; for (const range of ranges) { const length = range.end - range.pos; - const matchingImpl = ts.find(implementations, impl => + const matchingImpl = find(implementations, impl => range.fileName === impl.fileName && range.pos === impl.textSpan.start && length === impl.textSpan.length); if (matchingImpl) { if (range.marker && range.marker.data) { - const expected = <{ displayParts?: ts.SymbolDisplayPart[], parts: string[], kind?: string }>range.marker.data; + const expected = <{ displayParts?: SymbolDisplayPart[], parts: string[], kind?: string }>range.marker.data; if (expected.displayParts) { - if (!ts.arrayIsEqualTo(expected.displayParts, matchingImpl.displayParts, displayPartIsEqualTo)) { + if (!arrayIsEqualTo(expected.displayParts, matchingImpl.displayParts, displayPartIsEqualTo)) { delayedErrors.push(`Mismatched display parts: expected ${JSON.stringify(expected.displayParts)}, actual ${JSON.stringify(matchingImpl.displayParts)}`); } } else if (expected.parts) { const actualParts = matchingImpl.displayParts.map(p => p.text); - if (!ts.arrayIsEqualTo(expected.parts, actualParts)) { + if (!arrayIsEqualTo(expected.parts, actualParts)) { delayedErrors.push(`Mismatched non-tagged display parts: expected ${JSON.stringify(expected.parts)}, actual ${JSON.stringify(actualParts)}`); } } @@ -2318,7 +2342,7 @@ namespace FourSlash { this.raiseError(error); } - function displayPartIsEqualTo(a: ts.SymbolDisplayPart, b: ts.SymbolDisplayPart): boolean { + function displayPartIsEqualTo(a: SymbolDisplayPart, b: SymbolDisplayPart): boolean { return a.kind === b.kind && a.text === b.text; } } @@ -2329,7 +2353,7 @@ namespace FourSlash { } public getMarkerNames(): string[] { - return ts.arrayFrom(this.testData.markerPositions.keys()); + return arrayFrom(this.testData.markerPositions.keys()); } public getRanges(): Range[] { @@ -2340,9 +2364,9 @@ namespace FourSlash { return this.getRanges().filter(r => r.fileName === fileName); } - public rangesByText(): ts.Map { + public rangesByText(): Map { if (this.testData.rangesByText) return this.testData.rangesByText; - const result = ts.createMultiMap(); + const result = createMultiMap(); this.testData.rangesByText = result; for (const range of this.getRanges()) { const text = this.rangeText(range); @@ -2365,14 +2389,14 @@ namespace FourSlash { } } - private getIndentation(fileName: string, position: number, indentStyle: ts.IndentStyle, baseIndentSize: number): number { - const formatOptions = ts.clone(this.formatCodeSettings); + private getIndentation(fileName: string, position: number, indentStyle: IndentStyle, baseIndentSize: number): number { + const formatOptions = clone(this.formatCodeSettings); formatOptions.indentStyle = indentStyle; formatOptions.baseIndentSize = baseIndentSize; return this.languageService.getIndentationAtPosition(fileName, position, formatOptions); } - public verifyIndentationAtCurrentPosition(numberOfSpaces: number, indentStyle: ts.IndentStyle = ts.IndentStyle.Smart, baseIndentSize = 0) { + public verifyIndentationAtCurrentPosition(numberOfSpaces: number, indentStyle: IndentStyle = IndentStyle.Smart, baseIndentSize = 0) { const actual = this.getIndentation(this.activeFile.fileName, this.currentCaretPosition, indentStyle, baseIndentSize); const lineCol = this.getLineColStringAtPosition(this.currentCaretPosition); if (actual !== numberOfSpaces) { @@ -2380,7 +2404,7 @@ namespace FourSlash { } } - public verifyIndentationAtPosition(fileName: string, position: number, numberOfSpaces: number, indentStyle: ts.IndentStyle = ts.IndentStyle.Smart, baseIndentSize = 0) { + public verifyIndentationAtPosition(fileName: string, position: number, numberOfSpaces: number, indentStyle: IndentStyle = IndentStyle.Smart, baseIndentSize = 0) { const actual = this.getIndentation(fileName, position, indentStyle, baseIndentSize); const lineCol = this.getLineColStringAtPosition(position); if (actual !== numberOfSpaces) { @@ -2427,7 +2451,7 @@ namespace FourSlash { return this.raiseError("verifyCurrentNameOrDottedNameSpanText\n" + displayExpectedAndActualString("\"" + text + "\"", "undefined")); } - const actual = this.getFileContent(this.activeFile.fileName).substring(span.start, ts.textSpanEnd(span)); + const actual = this.getFileContent(this.activeFile.fileName).substring(span.start, textSpanEnd(span)); if (actual !== text) { this.raiseError("verifyCurrentNameOrDottedNameSpanText\n" + displayExpectedAndActualString(text, actual, /* quoted */ true)); } @@ -2447,14 +2471,14 @@ namespace FourSlash { Harness.IO.log(this.spanInfoToString(this.getNameOrDottedNameSpan(pos)!, "**")); } - private verifyClassifications(expected: { classificationType: string; text: string; textSpan?: TextSpan }[], actual: ts.ClassifiedSpan[], sourceFileText: string) { + private verifyClassifications(expected: { classificationType: string; text: string; textSpan?: TextSpan }[], actual: ClassifiedSpan[], sourceFileText: string) { if (actual.length !== expected.length) { this.raiseError("verifyClassifications failed - expected total classifications to be " + expected.length + ", but was " + actual.length + jsonMismatchString()); } - ts.zipWith(expected, actual, (expectedClassification, actualClassification) => { + zipWith(expected, actual, (expectedClassification, actualClassification) => { const expectedType = expectedClassification.classificationType; if (expectedType !== actualClassification.classificationType) { this.raiseError("verifyClassifications failed - expected classifications type to be " + @@ -2497,7 +2521,7 @@ namespace FourSlash { public verifyProjectInfo(expected: string[]) { if (this.testType === FourSlashTestType.Server) { - const actual = (this.languageService).getProjectInfo( + const actual = (this.languageService).getProjectInfo( this.activeFile.fileName, /* needFileNameList */ true ); @@ -2512,14 +2536,14 @@ namespace FourSlash { public verifySemanticClassifications(expected: { classificationType: string; text: string }[]) { const actual = this.languageService.getSemanticClassifications(this.activeFile.fileName, - ts.createTextSpan(0, this.activeFile.content.length)); + createTextSpan(0, this.activeFile.content.length)); this.verifyClassifications(expected, actual, this.activeFile.content); } public verifySyntacticClassifications(expected: { classificationType: string; text: string }[]) { const actual = this.languageService.getSyntacticClassifications(this.activeFile.fileName, - ts.createTextSpan(0, this.activeFile.content.length)); + createTextSpan(0, this.activeFile.content.length)); this.verifyClassifications(expected, actual, this.activeFile.content); } @@ -2531,16 +2555,16 @@ namespace FourSlash { this.printOutliningSpansInline(spans); } - private printOutliningSpansInline(spans: ts.OutliningSpan[]) { + private printOutliningSpansInline(spans: OutliningSpan[]) { const allSpanInsets = [] as { text: string, pos: number }[]; let annotated = this.activeFile.content; - ts.forEach(spans, span => { + forEach(spans, span => { allSpanInsets.push({ text: "[|", pos: span.textSpan.start }); allSpanInsets.push({ text: "|]", pos: span.textSpan.start + span.textSpan.length }); }); const reverseSpans = allSpanInsets.sort((l, r) => r.pos - l.pos); - ts.forEach(reverseSpans, span => { + forEach(reverseSpans, span => { annotated = annotated.slice(0, span.pos) + span.text + annotated.slice(span.pos); }); Harness.IO.log(`\nMockup:\n${annotated}`); @@ -2549,14 +2573,14 @@ namespace FourSlash { public verifyOutliningSpans(spans: Range[], kind?: "comment" | "region" | "code" | "imports") { const actual = this.languageService.getOutliningSpans(this.activeFile.fileName); - const filterActual = ts.filter(actual, f => kind === undefined ? true : f.kind === kind); + const filterActual = filter(actual, f => kind === undefined ? true : f.kind === kind); if (filterActual.length !== spans.length) { this.raiseError(`verifyOutliningSpans failed - expected total spans to be ${spans.length}, but was ${actual.length}\n\nFound Spans:\n\n${this.printOutliningSpansInline(actual)}`); } - ts.zipWith(spans, filterActual, (expectedSpan, actualSpan, i) => { - if (expectedSpan.pos !== actualSpan.textSpan.start || expectedSpan.end !== ts.textSpanEnd(actualSpan.textSpan)) { - return this.raiseError(`verifyOutliningSpans failed - span ${(i + 1)} expected: (${expectedSpan.pos},${expectedSpan.end}), actual: (${actualSpan.textSpan.start},${ts.textSpanEnd(actualSpan.textSpan)})`); + zipWith(spans, filterActual, (expectedSpan, actualSpan, i) => { + if (expectedSpan.pos !== actualSpan.textSpan.start || expectedSpan.end !== textSpanEnd(actualSpan.textSpan)) { + return this.raiseError(`verifyOutliningSpans failed - span ${(i + 1)} expected: (${expectedSpan.pos},${expectedSpan.end}), actual: (${actualSpan.textSpan.start},${textSpanEnd(actualSpan.textSpan)})`); } if (kind !== undefined && actualSpan.kind !== kind) { return this.raiseError(`verifyOutliningSpans failed - span ${(i + 1)} expected kind: ('${kind}'), actual: ('${actualSpan.kind}')`); @@ -2571,9 +2595,9 @@ namespace FourSlash { this.raiseError(`verifyOutliningHintSpans failed - expected total spans to be ${spans.length}, but was ${actual.length}`); } - ts.zipWith(spans, actual, (expectedSpan, actualSpan, i) => { - if (expectedSpan.pos !== actualSpan.hintSpan.start || expectedSpan.end !== ts.textSpanEnd(actualSpan.hintSpan)) { - return this.raiseError(`verifyOutliningSpans failed - span ${(i + 1)} expected: (${expectedSpan.pos},${expectedSpan.end}), actual: (${actualSpan.hintSpan.start},${ts.textSpanEnd(actualSpan.hintSpan)})`); + zipWith(spans, actual, (expectedSpan, actualSpan, i) => { + if (expectedSpan.pos !== actualSpan.hintSpan.start || expectedSpan.end !== textSpanEnd(actualSpan.hintSpan)) { + return this.raiseError(`verifyOutliningSpans failed - span ${(i + 1)} expected: (${expectedSpan.pos},${expectedSpan.end}), actual: (${actualSpan.hintSpan.start},${textSpanEnd(actualSpan.hintSpan)})`); } }); } @@ -2586,11 +2610,11 @@ namespace FourSlash { this.raiseError(`verifyTodoComments failed - expected total spans to be ${spans.length}, but was ${actual.length}`); } - ts.zipWith(spans, actual, (expectedSpan, actualComment, i) => { - const actualCommentSpan = ts.createTextSpan(actualComment.position, actualComment.message.length); + zipWith(spans, actual, (expectedSpan, actualComment, i) => { + const actualCommentSpan = createTextSpan(actualComment.position, actualComment.message.length); - if (expectedSpan.pos !== actualCommentSpan.start || expectedSpan.end !== ts.textSpanEnd(actualCommentSpan)) { - this.raiseError(`verifyOutliningSpans failed - span ${(i + 1)} expected: (${expectedSpan.pos},${expectedSpan.end}), actual: (${actualCommentSpan.start},${ts.textSpanEnd(actualCommentSpan)})`); + if (expectedSpan.pos !== actualCommentSpan.start || expectedSpan.end !== textSpanEnd(actualCommentSpan)) { + this.raiseError(`verifyOutliningSpans failed - span ${(i + 1)} expected: (${expectedSpan.pos},${expectedSpan.end}), actual: (${actualCommentSpan.start},${textSpanEnd(actualCommentSpan)})`); } }); } @@ -2630,14 +2654,14 @@ namespace FourSlash { if (codeActions?.length !== 1) { this.raiseError(`Expected one code action, got ${codeActions?.length ?? 0}`); } - const codeAction = ts.first(codeActions); + const codeAction = first(codeActions); if (codeAction.description !== options.description) { this.raiseError(`Expected description to be:\n${options.description}\ngot:\n${codeActions[0].description}`); } this.applyChanges(codeAction.changes); - this.verifyNewContentAfterChange(options, ts.flatMap(codeActions, a => a.changes.map(c => c.fileName))); + this.verifyNewContentAfterChange(options, flatMap(codeActions, a => a.changes.map(c => c.fileName))); } public verifyRangeIs(expectedText: string, includeWhiteSpace?: boolean) { @@ -2649,7 +2673,7 @@ namespace FourSlash { if (ranges.length !== 1) { this.raiseError("Exactly one range should be specified in the testfile."); } - return ts.first(ranges); + return first(ranges); } private verifyTextMatches(actualText: string, includeWhitespace: boolean, expectedText: string) { @@ -2670,12 +2694,12 @@ namespace FourSlash { } public verifyCodeFixAll({ fixId, fixAllDescription, newFileContent, commands: expectedCommands }: FourSlashInterface.VerifyCodeFixAllOptions): void { - const fixWithId = ts.find(this.getCodeFixes(this.activeFile.fileName), a => a.fixId === fixId); - ts.Debug.assert(fixWithId !== undefined, "No available code fix has the expected id. Fix All is not available if there is only one potentially fixable diagnostic present.", () => - `Expected '${fixId}'. Available actions:\n${ts.mapDefined(this.getCodeFixes(this.activeFile.fileName), a => `${a.fixName} (${a.fixId || "no fix id"})`).join("\n")}`); - ts.Debug.assertEqual(fixWithId.fixAllDescription, fixAllDescription); + const fixWithId = find(this.getCodeFixes(this.activeFile.fileName), a => a.fixId === fixId); + Debug.assert(fixWithId !== undefined, "No available code fix has the expected id. Fix All is not available if there is only one potentially fixable diagnostic present.", () => + `Expected '${fixId}'. Available actions:\n${mapDefined(this.getCodeFixes(this.activeFile.fileName), a => `${a.fixName} (${a.fixId || "no fix id"})`).join("\n")}`); + Debug.assertEqual(fixWithId.fixAllDescription, fixAllDescription); - const { changes, commands } = this.languageService.getCombinedCodeFix({ type: "file", fileName: this.activeFile.fileName }, fixId, this.formatCodeSettings, ts.emptyOptions); + const { changes, commands } = this.languageService.getCombinedCodeFix({ type: "file", fileName: this.activeFile.fileName }, fixId, this.formatCodeSettings, emptyOptions); assert.deepEqual(commands, expectedCommands); this.verifyNewContent({ newFileContent }, changes); } @@ -2702,7 +2726,7 @@ namespace FourSlash { assert.equal(action.description, options.description); } else if (Array.isArray(options.description)) { - const description = ts.formatStringFromArgs(options.description[0], options.description, 1); + const description = formatStringFromArgs(options.description[0], options.description, 1); assert.equal(action.description, description); } else { @@ -2721,32 +2745,32 @@ namespace FourSlash { } } - private verifyNewContent({ newFileContent, newRangeContent }: FourSlashInterface.NewContentOptions, changes: readonly ts.FileTextChanges[]): void { + private verifyNewContent({ newFileContent, newRangeContent }: FourSlashInterface.NewContentOptions, changes: readonly FileTextChanges[]): void { if (newRangeContent !== undefined) { assert(newFileContent === undefined); assert(changes.length === 1, "Affected 0 or more than 1 file, must use 'newFileContent' instead of 'newRangeContent'"); - const change = ts.first(changes); + const change = first(changes); assert(change.fileName = this.activeFile.fileName); - const newText = ts.textChanges.applyChanges(this.getFileContent(this.activeFile.fileName), change.textChanges); + const newText = textChanges.applyChanges(this.getFileContent(this.activeFile.fileName), change.textChanges); const newRange = updateTextRangeForTextChanges(this.getOnlyRange(), change.textChanges); const actualText = newText.slice(newRange.pos, newRange.end); this.verifyTextMatches(actualText, /*includeWhitespace*/ true, newRangeContent); } else { - if (newFileContent === undefined) throw ts.Debug.fail(); + if (newFileContent === undefined) throw Debug.fail(); if (typeof newFileContent !== "object") newFileContent = { [this.activeFile.fileName]: newFileContent }; for (const change of changes) { const expectedNewContent = newFileContent[change.fileName]; if (expectedNewContent === undefined) { - ts.Debug.fail(`Did not expect a change in ${change.fileName}`); + Debug.fail(`Did not expect a change in ${change.fileName}`); } const oldText = this.tryGetFileContent(change.fileName); - ts.Debug.assert(!!change.isNewFile === (oldText === undefined)); - const newContent = change.isNewFile ? ts.first(change.textChanges).newText : ts.textChanges.applyChanges(oldText!, change.textChanges); + Debug.assert(!!change.isNewFile === (oldText === undefined)); + const newContent = change.isNewFile ? first(change.textChanges).newText : textChanges.applyChanges(oldText!, change.textChanges); this.verifyTextMatches(newContent, /*includeWhitespace*/ true, expectedNewContent); } for (const newFileName in newFileContent) { - ts.Debug.assert(changes.some(c => c.fileName === newFileName), "No change in file", () => newFileName); + Debug.assert(changes.some(c => c.fileName === newFileName), "No change in file", () => newFileName); } } } @@ -2754,7 +2778,7 @@ namespace FourSlash { private verifyNewContentAfterChange({ newFileContent, newRangeContent }: FourSlashInterface.NewContentOptions, changedFiles: readonly string[]) { const assertedChangedFiles = !newFileContent || typeof newFileContent === "string" ? [this.activeFile.fileName] - : ts.getOwnKeys(newFileContent); + : getOwnKeys(newFileContent); assert.deepEqual(assertedChangedFiles, changedFiles); if (newFileContent !== undefined) { @@ -2777,20 +2801,20 @@ namespace FourSlash { * Rerieves a codefix satisfying the parameters, or undefined if no such codefix is found. * @param fileName Path to file where error should be retrieved from. */ - private getCodeFixes(fileName: string, errorCode?: number, preferences: ts.UserPreferences = ts.emptyOptions, position?: number): readonly ts.CodeFixAction[] { + private getCodeFixes(fileName: string, errorCode?: number, preferences: UserPreferences = emptyOptions, position?: number): readonly CodeFixAction[] { const diagnosticsForCodeFix = this.getDiagnostics(fileName, /*includeSuggestions*/ true).map(diagnostic => ({ start: diagnostic.start, length: diagnostic.length, code: diagnostic.code })); - return ts.flatMap(ts.deduplicate(diagnosticsForCodeFix, ts.equalOwnProperties), diagnostic => { + return flatMap(deduplicate(diagnosticsForCodeFix, equalOwnProperties), diagnostic => { if (errorCode !== undefined && errorCode !== diagnostic.code) { return; } if (position !== undefined && diagnostic.start !== undefined && diagnostic.length !== undefined) { - const span = ts.createTextRangeFromSpan({ start: diagnostic.start, length: diagnostic.length }); - if (!ts.textRangeContainsPositionInclusive(span, position)) { + const span = createTextRangeFromSpan({ start: diagnostic.start, length: diagnostic.length }); + if (!textRangeContainsPositionInclusive(span, position)) { return; } } @@ -2798,21 +2822,21 @@ namespace FourSlash { }); } - private applyChanges(changes: readonly ts.FileTextChanges[]): void { + private applyChanges(changes: readonly FileTextChanges[]): void { for (const change of changes) { this.applyEdits(change.fileName, change.textChanges); } } - public verifyImportFixAtPosition(expectedTextArray: string[], errorCode: number | undefined, preferences: ts.UserPreferences | undefined) { + public verifyImportFixAtPosition(expectedTextArray: string[], errorCode: number | undefined, preferences: UserPreferences | undefined) { const { fileName } = this.activeFile; const ranges = this.getRanges().filter(r => r.fileName === fileName); if (ranges.length > 1) { this.raiseError("Exactly one range should be specified in the testfile."); } - const range = ts.firstOrUndefined(ranges); + const range = firstOrUndefined(ranges); - const codeFixes = this.getCodeFixes(fileName, errorCode, preferences).filter(f => f.fixName === ts.codefix.importFixName); + const codeFixes = this.getCodeFixes(fileName, errorCode, preferences).filter(f => f.fixName === codefix.importFixName); if (codeFixes.length === 0) { if (expectedTextArray.length !== 0) { @@ -2825,9 +2849,9 @@ namespace FourSlash { const scriptInfo = this.languageServiceAdapterHost.getScriptInfo(fileName)!; const originalContent = scriptInfo.content; for (const codeFix of codeFixes) { - ts.Debug.assert(codeFix.changes.length === 1); - const change = ts.first(codeFix.changes); - ts.Debug.assert(change.fileName === fileName); + Debug.assert(codeFix.changes.length === 1); + const change = first(codeFix.changes); + Debug.assert(change.fileName === fileName); this.applyEdits(change.fileName, change.textChanges); const text = range ? this.rangeText(range) : this.getFileContent(this.activeFile.fileName); actualTextArray.push(text); @@ -2836,7 +2860,7 @@ namespace FourSlash { if (expectedTextArray.length !== actualTextArray.length) { this.raiseError(`Expected ${expectedTextArray.length} import fixes, got ${actualTextArray.length}`); } - ts.zipWith(expectedTextArray, actualTextArray, (expected, actual, index) => { + zipWith(expectedTextArray, actualTextArray, (expected, actual, index) => { if (expected !== actual) { this.raiseError(`Import fix at index ${index} doesn't match.\n${showTextDiff(expected, actual)}`); } @@ -2845,13 +2869,13 @@ namespace FourSlash { public verifyImportFixModuleSpecifiers(markerName: string, moduleSpecifiers: string[]) { const marker = this.getMarkerByName(markerName); - const codeFixes = this.getCodeFixes(marker.fileName, ts.Diagnostics.Cannot_find_name_0.code, { + const codeFixes = this.getCodeFixes(marker.fileName, Diagnostics.Cannot_find_name_0.code, { includeCompletionsForModuleExports: true, includeCompletionsWithInsertText: true - }, marker.position).filter(f => f.fixName === ts.codefix.importFixName); + }, marker.position).filter(f => f.fixName === codefix.importFixName); - const actualModuleSpecifiers = ts.mapDefined(codeFixes, fix => { - return ts.forEach(ts.flatMap(fix.changes, c => c.textChanges), c => { + const actualModuleSpecifiers = mapDefined(codeFixes, fix => { + return forEach(flatMap(fix.changes, c => c.textChanges), c => { const match = /(?:from |require\()(['"])((?:(?!\1).)*)\1/.exec(c.newText); return match?.[2]; }); @@ -2860,7 +2884,7 @@ namespace FourSlash { assert.deepEqual(actualModuleSpecifiers, moduleSpecifiers); } - public verifyDocCommentTemplate(expected: ts.TextInsertion | undefined) { + public verifyDocCommentTemplate(expected: TextInsertion | undefined) { const name = "verifyDocCommentTemplate"; const actual = this.languageService.getDocCommentTemplateAtPosition(this.activeFile.fileName, this.currentCaretPosition)!; @@ -2888,14 +2912,14 @@ namespace FourSlash { public verifyBraceCompletionAtPosition(negative: boolean, openingBrace: string) { - const openBraceMap = ts.createMapFromTemplate({ - "(": ts.CharacterCodes.openParen, - "{": ts.CharacterCodes.openBrace, - "[": ts.CharacterCodes.openBracket, - "'": ts.CharacterCodes.singleQuote, - '"': ts.CharacterCodes.doubleQuote, - "`": ts.CharacterCodes.backtick, - "<": ts.CharacterCodes.lessThan + const openBraceMap = createMapFromTemplate({ + "(": CharacterCodes.openParen, + "{": CharacterCodes.openBrace, + "[": CharacterCodes.openBracket, + "'": CharacterCodes.singleQuote, + '"': CharacterCodes.doubleQuote, + "`": CharacterCodes.backtick, + "<": CharacterCodes.lessThan }); const charCode = openBraceMap.get(openingBrace); @@ -2917,7 +2941,7 @@ namespace FourSlash { } } - public verifyJsxClosingTag(map: { [markerName: string]: ts.JsxClosingTagInfo | undefined }): void { + public verifyJsxClosingTag(map: { [markerName: string]: JsxClosingTagInfo | undefined }): void { for (const markerName in map) { this.goToMarker(markerName); const actual = this.languageService.getJsxClosingTagAtPosition(this.activeFile.fileName, this.currentCaretPosition); @@ -2940,7 +2964,7 @@ namespace FourSlash { actualMatchPosition = actual[0].start; } else { - this.raiseError(`verifyMatchingBracePosition failed - could not find the brace position: ${bracePosition} in the returned list: (${actual[0].start},${ts.textSpanEnd(actual[0])}) and (${actual[1].start},${ts.textSpanEnd(actual[1])})`); + this.raiseError(`verifyMatchingBracePosition failed - could not find the brace position: ${bracePosition} in the returned list: (${actual[0].start},${textSpanEnd(actual[0])}) and (${actual[1].start},${textSpanEnd(actual[1])})`); } if (actualMatchPosition !== expectedMatchPosition) { @@ -2976,16 +3000,16 @@ namespace FourSlash { public verifyNavigateTo(options: readonly FourSlashInterface.VerifyNavigateToOptions[]): void { for (const { pattern, expected, fileName } of options) { const items = this.languageService.getNavigateToItems(pattern, /*maxResultCount*/ undefined, fileName); - this.assertObjectsEqual(items, expected.map((e): ts.NavigateToItem => ({ + this.assertObjectsEqual(items, expected.map((e): NavigateToItem => ({ name: e.name, kind: e.kind, kindModifiers: e.kindModifiers || "", matchKind: e.matchKind || "exact", isCaseSensitive: e.isCaseSensitive === undefined ? true : e.isCaseSensitive, fileName: e.range.fileName, - textSpan: ts.createTextSpanFromRange(e.range), + textSpan: createTextSpanFromRange(e.range), containerName: e.containerName || "", - containerKind: e.containerKind || ts.ScriptElementKind.unknown, + containerKind: e.containerKind || ScriptElementKind.unknown, }))); } } @@ -3033,7 +3057,7 @@ namespace FourSlash { const items = this.languageService.getNavigationBarItems(this.activeFile.fileName); Harness.IO.log(`Navigation bar (${items.length} items)`); for (const item of items) { - Harness.IO.log(`${ts.repeatString(" ", item.indent)}name: ${item.text}, kind: ${item.kind}, childItems: ${item.childItems.map(child => child.text)}`); + Harness.IO.log(`${repeatString(" ", item.indent)}name: ${item.text}, kind: ${item.kind}, childItems: ${item.childItems.map(child => child.text)}`); } } @@ -3049,7 +3073,7 @@ namespace FourSlash { } for (const occurrence of occurrences) { - if (occurrence && occurrence.fileName === fileName && occurrence.textSpan.start === start && ts.textSpanEnd(occurrence.textSpan) === end) { + if (occurrence && occurrence.fileName === fileName && occurrence.textSpan.start === start && textSpanEnd(occurrence.textSpan) === end) { if (typeof isWriteAccess !== "undefined" && occurrence.isWriteAccess !== isWriteAccess) { this.raiseError(`verifyOccurrencesAtPositionListContains failed - item isWriteAccess value does not match, actual: ${occurrence.isWriteAccess}, expected: ${isWriteAccess}.`); } @@ -3070,7 +3094,7 @@ namespace FourSlash { } private getDocumentHighlightsAtCurrentPosition(fileNamesToSearch: readonly string[]) { - const filesToSearch = fileNamesToSearch.map(name => ts.combinePaths(this.basePath, name)); + const filesToSearch = fileNamesToSearch.map(name => combinePaths(this.basePath, name)); return this.languageService.getDocumentHighlights(this.activeFile.fileName, this.currentCaretPosition, filesToSearch); } @@ -3118,14 +3142,14 @@ namespace FourSlash { public verifyNoDocumentHighlights(startRange: Range) { this.goToRangeStart(startRange); const documentHighlights = this.getDocumentHighlightsAtCurrentPosition([this.activeFile.fileName]); - const numHighlights = ts.length(documentHighlights); + const numHighlights = length(documentHighlights); if (numHighlights > 0) { this.raiseError(`verifyNoDocumentHighlights failed - unexpectedly got ${numHighlights} highlights`); } } private verifyDocumentHighlights(expectedRanges: Range[], fileNames: readonly string[] = [this.activeFile.fileName]) { - fileNames = ts.map(fileNames, ts.normalizePath); + fileNames = map(fileNames, normalizePath); const documentHighlights = this.getDocumentHighlightsAtCurrentPosition(fileNames) || []; for (const dh of documentHighlights) { @@ -3135,16 +3159,16 @@ namespace FourSlash { } for (const fileName of fileNames) { - const expectedRangesInFile = expectedRanges.filter(r => ts.normalizePath(r.fileName) === fileName); - const highlights = ts.find(documentHighlights, dh => dh.fileName === fileName); + const expectedRangesInFile = expectedRanges.filter(r => normalizePath(r.fileName) === fileName); + const highlights = find(documentHighlights, dh => dh.fileName === fileName); const spansInFile = highlights ? highlights.highlightSpans.sort((s1, s2) => s1.textSpan.start - s2.textSpan.start) : []; if (expectedRangesInFile.length !== spansInFile.length) { this.raiseError(`verifyDocumentHighlights failed - In ${fileName}, expected ${expectedRangesInFile.length} highlights, got ${spansInFile.length}`); } - ts.zipWith(expectedRangesInFile, spansInFile, (expectedRange, span) => { - if (span.textSpan.start !== expectedRange.pos || ts.textSpanEnd(span.textSpan) !== expectedRange.end) { + zipWith(expectedRangesInFile, spansInFile, (expectedRange, span) => { + if (span.textSpan.start !== expectedRange.pos || textSpanEnd(span.textSpan) !== expectedRange.end) { this.raiseError(`verifyDocumentHighlights failed - span does not match, actual: ${stringify(span.textSpan)}, expected: ${expectedRange.pos}--${expectedRange.end}`); } }); @@ -3155,7 +3179,7 @@ namespace FourSlash { const codeFixes = this.getCodeFixes(this.activeFile.fileName); if (negative) { if (typeof expected === "undefined") { - this.assertObjectsEqual(codeFixes, ts.emptyArray); + this.assertObjectsEqual(codeFixes, neverArray); } else if (typeof expected === "string") { if (codeFixes.some(fix => fix.fixName === expected)) { @@ -3171,7 +3195,7 @@ namespace FourSlash { } else { const actuals = codeFixes.map((fix): FourSlashInterface.VerifyCodeFixAvailableOptions => ({ description: fix.description, commands: fix.commands })); - this.assertObjectsEqual(actuals, negative ? ts.emptyArray : expected); + this.assertObjectsEqual(actuals, negative ? neverArray : expected); } } @@ -3205,14 +3229,14 @@ namespace FourSlash { } } - private getSelection(): ts.TextRange { + private getSelection(): TextRange { return { pos: this.currentCaretPosition, end: this.selectionEnd === -1 ? this.currentCaretPosition : this.selectionEnd }; } - public verifyRefactorAvailable(negative: boolean, triggerReason: ts.RefactorTriggerReason, name: string, actionName?: string) { + public verifyRefactorAvailable(negative: boolean, triggerReason: RefactorTriggerReason, name: string, actionName?: string) { let refactors = this.getApplicableRefactorsAtSelection(triggerReason); refactors = refactors.filter(r => r.name === name && (actionName === undefined || r.actions.some(a => a.name === actionName))); const isAvailable = refactors.length > 0; @@ -3242,7 +3266,7 @@ namespace FourSlash { throw new Error("Exactly one refactor range is allowed per test."); } - const isAvailable = this.getApplicableRefactors(ts.first(ranges)).length > 0; + const isAvailable = this.getApplicableRefactors(first(ranges)).length > 0; if (negative && isAvailable) { this.raiseError(`verifyApplicableRefactorAvailableForRange failed - expected no refactor but found some.`); } @@ -3259,15 +3283,15 @@ namespace FourSlash { this.raiseError(`The expected refactor: ${refactorName} is not available at the marker location.\nAvailable refactors: ${refactors.map(r => r.name)}`); } - const action = ts.firstDefined(refactorsWithName, refactor => refactor.actions.find(a => a.name === actionName)); + const action = firstDefined(refactorsWithName, refactor => refactor.actions.find(a => a.name === actionName)); if (!action) { - throw this.raiseError(`The expected action: ${actionName} is not included in: ${ts.flatMap(refactorsWithName, r => r.actions.map(a => a.name))}`); + throw this.raiseError(`The expected action: ${actionName} is not included in: ${flatMap(refactorsWithName, r => r.actions.map(a => a.name))}`); } if (action.description !== actionDescription) { this.raiseError(`Expected action description to be ${JSON.stringify(actionDescription)}, got: ${JSON.stringify(action.description)}`); } - const editInfo = this.languageService.getEditsForRefactor(this.activeFile.fileName, this.formatCodeSettings, range, refactorName, actionName, ts.emptyOptions)!; + const editInfo = this.languageService.getEditsForRefactor(this.activeFile.fileName, this.formatCodeSettings, range, refactorName, actionName, emptyOptions)!; for (const edit of editInfo.edits) { this.applyEdits(edit.fileName, edit.textChanges); } @@ -3283,7 +3307,7 @@ namespace FourSlash { renamePosition = rp; } else { - ts.Debug.assert(rp === undefined); + Debug.assert(rp === undefined); } this.verifyFileContent(fileName, newContent); @@ -3297,6 +3321,7 @@ namespace FourSlash { else { this.assertObjectsEqual(editInfo.renameFilename, renameFilename); if (renamePosition !== editInfo.renameLocation) { + this.raiseError(`Expected rename position of ${renamePosition}, but got ${editInfo.renameLocation}`); } } @@ -3319,7 +3344,7 @@ namespace FourSlash { for (const range of ranges) { for (const refactor of this.getApplicableRefactors(range, { allowTextChangesInNewFiles: true })) { if (refactor.name === "Move to a new file") { - ts.Debug.fail("Did not expect to get 'move to a new file' refactor"); + Debug.fail("Did not expect to get 'move to a new file' refactor"); } } } @@ -3328,16 +3353,16 @@ namespace FourSlash { public moveToNewFile(options: FourSlashInterface.MoveToNewFileOptions): void { assert(this.getRanges().length === 1, "Must have exactly one fourslash range (source enclosed between '[|' and '|]' delimiters) in the source file"); const range = this.getRanges()[0]; - const refactor = ts.find(this.getApplicableRefactors(range, { allowTextChangesInNewFiles: true }), r => r.name === "Move to a new file")!; + const refactor = find(this.getApplicableRefactors(range, { allowTextChangesInNewFiles: true }), r => r.name === "Move to a new file")!; assert(refactor.actions.length === 1); - const action = ts.first(refactor.actions); + const action = first(refactor.actions); assert(action.name === "Move to a new file" && action.description === "Move to a new file"); - const editInfo = this.languageService.getEditsForRefactor(range.fileName, this.formatCodeSettings, range, refactor.name, action.name, options.preferences || ts.emptyOptions)!; + const editInfo = this.languageService.getEditsForRefactor(range.fileName, this.formatCodeSettings, range, refactor.name, action.name, options.preferences || emptyOptions)!; this.verifyNewContent({ newFileContent: options.newFileContents }, editInfo.edits); } - private testNewFileContents(edits: readonly ts.FileTextChanges[], newFileContents: { [fileName: string]: string }, description: string): void { + private testNewFileContents(edits: readonly FileTextChanges[], newFileContents: { [fileName: string]: string }, description: string): void { for (const { fileName, textChanges } of edits) { const newContent = newFileContents[fileName]; if (newContent === undefined) { @@ -3346,21 +3371,21 @@ namespace FourSlash { const fileContent = this.tryGetFileContent(fileName); if (fileContent !== undefined) { - const actualNewContent = ts.textChanges.applyChanges(fileContent, textChanges); + const actualNewContent = textChanges.applyChanges(fileContent, textChanges); assert.equal(actualNewContent, newContent, `new content for ${fileName}`); } else { // Creates a new file. assert(textChanges.length === 1); - const change = ts.first(textChanges); - assert.deepEqual(change.span, ts.createTextSpan(0, 0)); + const change = first(textChanges); + assert.deepEqual(change.span, createTextSpan(0, 0)); assert.equal(change.newText, newContent, `${description} - Content for ${fileName}`); } } for (const fileName in newFileContents) { if (!edits.some(e => e.fileName === fileName)) { - ts.Debug.fail(`${description} - Asserted new contents of ${fileName} but there were no edits`); + Debug.fail(`${description} - Asserted new contents of ${fileName} but there were no edits`); } } } @@ -3370,19 +3395,19 @@ namespace FourSlash { expectedContent: string, refactorNameToApply: string, actionName: string, - formattingOptions?: ts.FormatCodeSettings) { + formattingOptions?: FormatCodeSettings) { formattingOptions = formattingOptions || this.formatCodeSettings; const marker = this.getMarkerByName(markerName); - const applicableRefactors = this.languageService.getApplicableRefactors(this.activeFile.fileName, marker.position, ts.emptyOptions); - const applicableRefactorToApply = ts.find(applicableRefactors, refactor => refactor.name === refactorNameToApply); + const applicableRefactors = this.languageService.getApplicableRefactors(this.activeFile.fileName, marker.position, emptyOptions); + const applicableRefactorToApply = find(applicableRefactors, refactor => refactor.name === refactorNameToApply); if (!applicableRefactorToApply) { this.raiseError(`The expected refactor: ${refactorNameToApply} is not available at the marker location.`); } - const editInfo = this.languageService.getEditsForRefactor(marker.fileName, formattingOptions, marker.position, refactorNameToApply, actionName, ts.emptyOptions)!; + const editInfo = this.languageService.getEditsForRefactor(marker.fileName, formattingOptions, marker.position, refactorNameToApply, actionName, emptyOptions)!; for (const edit of editInfo.edits) { this.applyEdits(edit.fileName, edit.textChanges); @@ -3399,9 +3424,9 @@ namespace FourSlash { Harness.IO.log(stringify(codeFixes)); } - private formatCallHierarchyItemSpan(file: FourSlashFile, span: ts.TextSpan, prefix: string, trailingPrefix = prefix) { + private formatCallHierarchyItemSpan(file: FourSlashFile, span: TextSpan, prefix: string, trailingPrefix = prefix) { const startLc = this.languageServiceAdapterHost.positionToLineAndCharacter(file.fileName, span.start); - const endLc = this.languageServiceAdapterHost.positionToLineAndCharacter(file.fileName, ts.textSpanEnd(span)); + const endLc = this.languageServiceAdapterHost.positionToLineAndCharacter(file.fileName, textSpanEnd(span)); const lines = this.spanLines(file, span, { fullLines: true, lineNumbers: true, selection: true }); let text = ""; text += `${prefix}╭ ${file.fileName}:${startLc.line + 1}:${startLc.character + 1}-${endLc.line + 1}:${endLc.character + 1}\n`; @@ -3412,7 +3437,7 @@ namespace FourSlash { return text; } - private formatCallHierarchyItemSpans(file: FourSlashFile, spans: ts.TextSpan[], prefix: string, trailingPrefix = prefix) { + private formatCallHierarchyItemSpans(file: FourSlashFile, spans: TextSpan[], prefix: string, trailingPrefix = prefix) { let text = ""; for (let i = 0; i < spans.length; i++) { text += this.formatCallHierarchyItemSpan(file, spans[i], prefix, i < spans.length - 1 ? prefix : trailingPrefix); @@ -3420,7 +3445,7 @@ namespace FourSlash { return text; } - private formatCallHierarchyItem(file: FourSlashFile, callHierarchyItem: ts.CallHierarchyItem, direction: CallHierarchyItemDirection, seen: ts.Map, prefix: string, trailingPrefix: string = prefix) { + private formatCallHierarchyItem(file: FourSlashFile, callHierarchyItem: CallHierarchyItem, direction: CallHierarchyItemDirection, seen: Map, prefix: string, trailingPrefix: string = prefix) { const key = `${callHierarchyItem.file}|${JSON.stringify(callHierarchyItem.span)}|${direction}`; const alreadySeen = seen.has(key); seen.set(key, true); @@ -3458,7 +3483,7 @@ namespace FourSlash { } } else if (incomingCalls.result === "show") { - if (!ts.some(incomingCalls.values)) { + if (!some(incomingCalls.values)) { if (outgoingCalls.result === "skip") { text += `${trailingPrefix}╰ incoming: none\n`; } @@ -3486,7 +3511,7 @@ namespace FourSlash { text += `${trailingPrefix}╰ outgoing: ...\n`; } else if (outgoingCalls.result === "show") { - if (!ts.some(outgoingCalls.values)) { + if (!some(outgoingCalls.values)) { text += `${trailingPrefix}╰ outgoing: none\n`; } else { @@ -3505,11 +3530,11 @@ namespace FourSlash { return text; } - private formatCallHierarchy(callHierarchyItem: ts.CallHierarchyItem | undefined) { + private formatCallHierarchy(callHierarchyItem: CallHierarchyItem | undefined) { let text = ""; if (callHierarchyItem) { const file = this.findFile(callHierarchyItem.file); - text += this.formatCallHierarchyItem(file, callHierarchyItem, CallHierarchyItemDirection.Root, ts.createMap(), ""); + text += this.formatCallHierarchyItem(file, callHierarchyItem, CallHierarchyItemDirection.Root, createMap(), ""); } return text; } @@ -3517,11 +3542,11 @@ namespace FourSlash { public baselineCallHierarchy() { const baselineFile = this.getBaselineFileNameForContainingTestFile(".callHierarchy.txt"); const callHierarchyItem = this.languageService.prepareCallHierarchy(this.activeFile.fileName, this.currentCaretPosition); - const text = callHierarchyItem ? ts.mapOneOrMany(callHierarchyItem, item => this.formatCallHierarchy(item), result => result.join("")) : "none"; + const text = callHierarchyItem ? mapOneOrMany(callHierarchyItem, item => this.formatCallHierarchy(item), result => result.join("")) : "none"; Harness.Baseline.runBaseline(baselineFile, text); } - private assertTextSpanEqualsRange(span: ts.TextSpan, range: Range, message?: string) { + private assertTextSpanEqualsRange(span: TextSpan, range: Range, message?: string) { if (!textSpanEqualsRange(span, range)) { this.raiseError(`${prefixMessage(message)}Expected to find TextSpan ${JSON.stringify({ start: range.pos, length: range.end - range.pos })} but got ${JSON.stringify(span)} instead.`); } @@ -3534,7 +3559,7 @@ namespace FourSlash { while (startPos > 0) { const ch = text.charCodeAt(startPos - 1); - if (ch === ts.CharacterCodes.carriageReturn || ch === ts.CharacterCodes.lineFeed) { + if (ch === CharacterCodes.carriageReturn || ch === CharacterCodes.lineFeed) { break; } @@ -3544,7 +3569,7 @@ namespace FourSlash { while (endPos < text.length) { const ch = text.charCodeAt(endPos); - if (ch === ts.CharacterCodes.carriageReturn || ch === ts.CharacterCodes.lineFeed) { + if (ch === CharacterCodes.carriageReturn || ch === CharacterCodes.lineFeed) { break; } @@ -3572,7 +3597,7 @@ namespace FourSlash { return this.testData.files[index]; } } - else if (ts.isString(indexOrName)) { + else if (isString(indexOrName)) { const { file, availableNames } = this.tryFindFileWorker(indexOrName); if (!file) { throw new Error(`No test file named "${indexOrName}" exists. Available file names are: ${availableNames.join(", ")}`); @@ -3580,18 +3605,18 @@ namespace FourSlash { return file; } else { - return ts.Debug.assertNever(indexOrName); + return Debug.assertNever(indexOrName); } } private tryFindFileWorker(name: string): { readonly file: FourSlashFile | undefined; readonly availableNames: readonly string[]; } { - name = ts.normalizePath(name); + name = normalizePath(name); // names are stored in the compiler with this relative path, this allows people to use goTo.file on just the fileName name = name.indexOf("/") === -1 ? (this.basePath + "/" + name) : name; const availableNames: string[] = []; - const file = ts.forEach(this.testData.files, file => { - const fn = ts.normalizePath(file.fileName); + const file = forEach(this.testData.files, file => { + const fn = normalizePath(file.fileName); if (fn) { if (fn === name) { return file; @@ -3635,28 +3660,28 @@ namespace FourSlash { this.testNewFileContents(changes, fileContents, description); }; - ts.Debug.assert(!this.hasFile(newPath), "initially, newPath should not exist"); + Debug.assert(!this.hasFile(newPath), "initially, newPath should not exist"); test(newFileContents, "with file not yet moved"); this.languageServiceAdapterHost.renameFileOrDirectory(oldPath, newPath); this.languageService.cleanupSemanticCache(); - const pathUpdater = ts.getPathUpdater(oldPath, newPath, ts.createGetCanonicalFileName(/*useCaseSensitiveFileNames*/ false), /*sourceMapper*/ undefined); + const pathUpdater = getPathUpdater(oldPath, newPath, createGetCanonicalFileName(/*useCaseSensitiveFileNames*/ false), /*sourceMapper*/ undefined); test(renameKeys(newFileContents, key => pathUpdater(key) || key), "with file moved"); } - private getApplicableRefactorsAtSelection(triggerReason: ts.RefactorTriggerReason = "implicit") { - return this.getApplicableRefactorsWorker(this.getSelection(), this.activeFile.fileName, ts.emptyOptions, triggerReason); + private getApplicableRefactorsAtSelection(triggerReason: RefactorTriggerReason = "implicit") { + return this.getApplicableRefactorsWorker(this.getSelection(), this.activeFile.fileName, emptyOptions, triggerReason); } - private getApplicableRefactors(rangeOrMarker: Range | Marker, preferences = ts.emptyOptions, triggerReason: ts.RefactorTriggerReason = "implicit"): readonly ts.ApplicableRefactorInfo[] { + private getApplicableRefactors(rangeOrMarker: Range | Marker, preferences = emptyOptions, triggerReason: RefactorTriggerReason = "implicit"): readonly ApplicableRefactorInfo[] { return this.getApplicableRefactorsWorker("position" in rangeOrMarker ? rangeOrMarker.position : rangeOrMarker, rangeOrMarker.fileName, preferences, triggerReason); // eslint-disable-line no-in-operator } - private getApplicableRefactorsWorker(positionOrRange: number | ts.TextRange, fileName: string, preferences = ts.emptyOptions, triggerReason: ts.RefactorTriggerReason): readonly ts.ApplicableRefactorInfo[] { - return this.languageService.getApplicableRefactors(fileName, positionOrRange, preferences, triggerReason) || ts.emptyArray; + private getApplicableRefactorsWorker(positionOrRange: number | TextRange, fileName: string, preferences = emptyOptions, triggerReason: RefactorTriggerReason): readonly ApplicableRefactorInfo[] { + return this.languageService.getApplicableRefactors(fileName, positionOrRange, preferences, triggerReason) || neverArray; } public configurePlugin(pluginName: string, configuration: any): void { - (this.languageService).configurePlugin(pluginName, configuration); + (this.languageService).configurePlugin(pluginName, configuration); } } @@ -3664,13 +3689,13 @@ namespace FourSlash { return message ? `${message} - ` : ""; } - function textSpanEqualsRange(span: ts.TextSpan, range: Range) { + function textSpanEqualsRange(span: TextSpan, range: Range) { return span.start === range.pos && span.length === range.end - range.pos; } - function updateTextRangeForTextChanges({ pos, end }: ts.TextRange, textChanges: readonly ts.TextChange[]): ts.TextRange { + function updateTextRangeForTextChanges({ pos, end }: TextRange, textChanges: readonly TextChange[]): TextRange { forEachTextChange(textChanges, change => { - const update = (p: number): number => updatePosition(p, change.span.start, ts.textSpanEnd(change.span), change.newText); + const update = (p: number): number => updatePosition(p, change.span.start, textSpanEnd(change.span), change.newText); pos = update(pos); end = update(end); }); @@ -3678,7 +3703,7 @@ namespace FourSlash { } /** Apply each textChange in order, updating future changes to account for the text offset of previous changes. */ - function forEachTextChange(changes: readonly ts.TextChange[], cb: (change: ts.TextChange) => void): void { + function forEachTextChange(changes: readonly TextChange[], cb: (change: TextChange) => void): void { // Copy this so we don't ruin someone else's copy changes = JSON.parse(JSON.stringify(changes)); for (let i = 0; i < changes.length; i++) { @@ -3713,14 +3738,14 @@ namespace FourSlash { export function runFourSlashTestContent(basePath: string, testType: FourSlashTestType, content: string, fileName: string): void { // Give file paths an absolute path for the virtual file system - const absoluteBasePath = ts.combinePaths(Harness.virtualFileSystemRoot, basePath); - const absoluteFileName = ts.combinePaths(Harness.virtualFileSystemRoot, fileName); + const absoluteBasePath = combinePaths(Harness.virtualFileSystemRoot, basePath); + const absoluteFileName = combinePaths(Harness.virtualFileSystemRoot, fileName); // Parse out the files and their metadata const testData = parseTestData(absoluteBasePath, content, absoluteFileName); const state = new TestState(absoluteFileName, absoluteBasePath, testType, testData); const actualFileName = Harness.IO.resolvePath(fileName) || absoluteFileName; - const output = ts.transpileModule(content, { reportDiagnostics: true, fileName: actualFileName, compilerOptions: { target: ts.ScriptTarget.ES2015, inlineSourceMap: true } }); + const output = transpileModule(content, { reportDiagnostics: true, fileName: actualFileName, compilerOptions: { target: ScriptTarget.ES2015, inlineSourceMap: true } }); if (output.diagnostics!.length > 0) { throw new Error(`Syntax error in ${absoluteBasePath}: ${output.diagnostics![0].messageText}`); } @@ -3729,7 +3754,7 @@ namespace FourSlash { function runCode(code: string, state: TestState, fileName: string): void { // Compile and execute the test - const generatedFile = ts.changeExtension(fileName, ".js"); + const generatedFile = changeExtension(fileName, ".js"); const wrappedCode = `(function(test, goTo, plugins, verify, edit, debug, format, cancellation, classification, completion, verifyOperationIsCancelled) {${code}\n//# sourceURL=${generatedFile}\n})`; type SourceMapSupportModule = typeof import("source-map-support") & { @@ -3805,7 +3830,7 @@ namespace FourSlash { const lines = contents.split("\n"); let i = 0; - const markerPositions = ts.createMap(); + const markerPositions = createMap(); const markers: Marker[] = []; const ranges: Range[] = []; @@ -3855,7 +3880,7 @@ namespace FourSlash { if (match) { const key = match[1].toLowerCase(); const value = match[2]; - if (!ts.contains(fileMetadataNames, key)) { + if (!contains(fileMetadataNames, key)) { // Check if the match is already existed in the global options if (globalOptions[key] !== undefined) { throw new Error(`Global option '${key}' already exists`); @@ -3867,11 +3892,11 @@ namespace FourSlash { case MetadataOptionNames.fileName: // Found an @FileName directive, if this is not the first then create a new subfile nextFile(); - currentFileName = ts.isRootedDiskPath(value) ? value : basePath + "/" + value; + currentFileName = isRootedDiskPath(value) ? value : basePath + "/" + value; currentFileOptions[key] = value; break; case MetadataOptionNames.symlink: - currentFileSymlinks = ts.append(currentFileSymlinks, value); + currentFileSymlinks = append(currentFileSymlinks, value); break; default: // Add other fileMetadata flag @@ -3890,7 +3915,7 @@ namespace FourSlash { } // @Filename is the only directive that can be used in a test that contains tsconfig.json file. - const config = ts.find(files, isConfig); + const config = find(files, isConfig); if (config) { let directive = getNonFileNameOptionInFileList(files); if (!directive) { @@ -3916,7 +3941,7 @@ namespace FourSlash { } function getNonFileNameOptionInFileList(files: FourSlashFile[]): string | undefined { - return ts.forEach(files, f => getNonFileNameOptionInObject(f.fileOptions)); + return forEach(files, f => getNonFileNameOptionInObject(f.fileOptions)); } function getNonFileNameOptionInObject(optionObject: { [s: string]: string }): string | undefined { @@ -3944,7 +3969,7 @@ namespace FourSlash { throw new Error(errorMessage); } - function recordObjectMarker(fileName: string, location: LocationInformation, text: string, markerMap: ts.Map, markers: Marker[]): Marker | undefined { + function recordObjectMarker(fileName: string, location: LocationInformation, text: string, markerMap: Map, markers: Marker[]): Marker | undefined { let markerValue: any; try { // Attempt to parse the marker value as JSON @@ -3975,7 +4000,7 @@ namespace FourSlash { return marker; } - function recordMarker(fileName: string, location: LocationInformation, name: string, markerMap: ts.Map, markers: Marker[]): Marker | undefined { + function recordMarker(fileName: string, location: LocationInformation, name: string, markerMap: Map, markers: Marker[]): Marker | undefined { const marker: Marker = { fileName, position: location.position @@ -3994,7 +4019,7 @@ namespace FourSlash { } } - function parseFileContent(content: string, fileName: string, markerMap: ts.Map, markers: Marker[], ranges: Range[]): FourSlashFile { + function parseFileContent(content: string, fileName: string, markerMap: Map, markers: Marker[], ranges: Range[]): FourSlashFile { content = chompLeadingSpace(content); // Any slash-star comment with a character not in this string is not a marker. @@ -4194,16 +4219,16 @@ namespace FourSlash { /** Collects an array of unique outputs. */ function unique(inputs: readonly T[], getOutput: (t: T) => string): string[] { - const set = ts.createMap(); + const set = createMap(); for (const input of inputs) { const out = getOutput(input); set.set(out, true); } - return ts.arrayFrom(set.keys()); + return arrayFrom(set.keys()); } function toArray(x: ArrayOrSingle): readonly T[] { - return ts.isArray(x) ? x : [x]; + return isArray(x) ? x : [x]; } function makeWhitespaceVisible(text: string) { @@ -4246,7 +4271,7 @@ namespace FourSlash { } function templateToRegExp(template: string) { - return new RegExp(`^${ts.regExpEscape(template).replace(/\\\{\d+\\\}/g, ".*?")}$`); + return new RegExp(`^${regExpEscape(template).replace(/\\\{\d+\\\}/g, ".*?")}$`); } function rangesOfDiffBetweenTwoStrings(source: string, target: string) { diff --git a/src/harness/fourslashInterfaceImpl.ts b/src/harness/fourslashInterfaceImpl.ts index 3b6b1a9eb2c96..e41d86b5daf1b 100644 --- a/src/harness/fourslashInterfaceImpl.ts +++ b/src/harness/fourslashInterfaceImpl.ts @@ -1,4 +1,12 @@ -namespace FourSlashInterface { +import { TextSpan, LineAndCharacter, UserPreferences, SyntaxKind } from "../compiler/types"; +import { MapLike } from "../compiler/corePublic"; +import { SignatureHelpTriggerReason, JsxClosingTagInfo, RefactorTriggerReason, IndentStyle, ReferenceEntry, SymbolDisplayPart, FormatCodeSettings, RenameInfoOptions, JSDocTagInfo, FormatCodeOptions, ClassificationTypeNames, CompletionsTriggerCharacter, ScriptElementKind, CodeActionCommand, ApplicableRefactorInfo } from "../services/types"; +import { tokenToString } from "../compiler/scanner"; +import { contains } from "../compiler/core"; +import { PatternMatchKind } from "../services/patternMatcher"; +import { FourSlash } from "./fourslashImpl"; +import { assert } from "chai"; +export namespace FourSlashInterface { export class Test { constructor(private state: FourSlash.TestState) { } @@ -23,11 +31,11 @@ namespace FourSlashInterface { return this.state.getRanges(); } - public spans(): ts.TextSpan[] { - return this.ranges().map(r => ts.createTextSpan(r.pos, r.end - r.pos)); + public spans(): TextSpan[] { + return this.ranges().map(r => createTextSpan(r.pos, r.end - r.pos)); } - public rangesByText(): ts.Map { + public rangesByText(): Map { return this.state.rangesByText(); } @@ -35,11 +43,11 @@ namespace FourSlashInterface { return this.state.getMarkerByName(s); } - public symbolsInScope(range: FourSlash.Range): ts.Symbol[] { + public symbolsInScope(range: FourSlash.Range): Symbol[] { return this.state.symbolsInScope(range); } - public setTypesRegistry(map: ts.MapLike): void { + public setTypesRegistry(map: MapLike): void { this.state.setTypesRegistry(map); } } @@ -91,7 +99,7 @@ namespace FourSlashInterface { this.state.goToImplementation(); } - public position(positionOrLineAndCharacter: number | ts.LineAndCharacter, fileNameOrIndex?: string | number): void { + public position(positionOrLineAndCharacter: number | LineAndCharacter, fileNameOrIndex?: string | number): void { if (fileNameOrIndex !== undefined) { this.file(fileNameOrIndex); } @@ -135,11 +143,11 @@ namespace FourSlashInterface { this.state.verifySignatureHelpPresence(/*expectPresent*/ false, /*triggerReason*/ undefined, markers); } - public noSignatureHelpForTriggerReason(reason: ts.SignatureHelpTriggerReason, ...markers: (string | FourSlash.Marker)[]): void { + public noSignatureHelpForTriggerReason(reason: SignatureHelpTriggerReason, ...markers: (string | FourSlash.Marker)[]): void { this.state.verifySignatureHelpPresence(/*expectPresent*/ false, reason, markers); } - public signatureHelpPresentForTriggerReason(reason: ts.SignatureHelpTriggerReason, ...markers: (string | FourSlash.Marker)[]): void { + public signatureHelpPresentForTriggerReason(reason: SignatureHelpTriggerReason, ...markers: (string | FourSlash.Marker)[]): void { this.state.verifySignatureHelpPresence(/*expectPresent*/ true, reason, markers); } @@ -175,7 +183,7 @@ namespace FourSlashInterface { this.state.verifyBraceCompletionAtPosition(this.negative, openingBrace); } - public jsxClosingTag(map: { [markerName: string]: ts.JsxClosingTagInfo | undefined }): void { + public jsxClosingTag(map: { [markerName: string]: JsxClosingTagInfo | undefined }): void { this.state.verifyJsxClosingTag(map); } @@ -211,7 +219,7 @@ namespace FourSlashInterface { this.state.verifyRefactorAvailable(this.negative, "implicit", name, actionName); } - public refactorAvailableForTriggerReason(triggerReason: ts.RefactorTriggerReason, name: string, actionName?: string) { + public refactorAvailableForTriggerReason(triggerReason: RefactorTriggerReason, name: string, actionName?: string) { this.state.verifyRefactorAvailable(this.negative, triggerReason, name, actionName); } } @@ -247,7 +255,7 @@ namespace FourSlashInterface { this.state.verifyIndentationAtCurrentPosition(numberOfSpaces); } - public indentationAtPositionIs(fileName: string, position: number, numberOfSpaces: number, indentStyle = ts.IndentStyle.Smart, baseIndentSize = 0) { + public indentationAtPositionIs(fileName: string, position: number, numberOfSpaces: number, indentStyle = IndentStyle.Smart, baseIndentSize = 0) { this.state.verifyIndentationAtPosition(fileName, position, numberOfSpaces, indentStyle, baseIndentSize); } @@ -304,7 +312,7 @@ namespace FourSlashInterface { this.state.verifyGetEmitOutputForCurrentFile(expected); } - public verifyGetEmitOutputContentsForCurrentFile(expected: ts.OutputFile[]): void { + public verifyGetEmitOutputContentsForCurrentFile(expected: OutputFile[]): void { this.state.verifyGetEmitOutputContentsForCurrentFile(expected); } @@ -312,7 +320,7 @@ namespace FourSlashInterface { this.state.verifySymbolAtLocation(startRange, declarationRanges); } - public typeOfSymbolAtLocation(range: FourSlash.Range, symbol: ts.Symbol, expected: string) { + public typeOfSymbolAtLocation(range: FourSlash.Range, symbol: Symbol, expected: string) { this.state.verifyTypeOfSymbolAtLocation(range, symbol, expected); } @@ -324,7 +332,7 @@ namespace FourSlashInterface { this.state.verifyNoReferences(markerNameOrRange); } - public getReferencesForServerTest(expected: readonly ts.ReferenceEntry[]) { + public getReferencesForServerTest(expected: readonly ReferenceEntry[]) { this.state.verifyGetReferencesForServerTest(expected); } @@ -332,7 +340,7 @@ namespace FourSlashInterface { this.state.verifySingleReferenceGroup(definition, ranges); } - public findReferencesDefinitionDisplayPartsAtCaretAre(expected: ts.SymbolDisplayPart[]) { + public findReferencesDefinitionDisplayPartsAtCaretAre(expected: SymbolDisplayPart[]) { this.state.verifyDisplayPartsOfReferencedSymbol(expected); } @@ -422,7 +430,7 @@ namespace FourSlashInterface { this.state.verifyCodeFixAll(options); } - public fileAfterApplyingRefactorAtMarker(markerName: string, expectedContent: string, refactorNameToApply: string, actionName: string, formattingOptions?: ts.FormatCodeSettings): void { + public fileAfterApplyingRefactorAtMarker(markerName: string, expectedContent: string, refactorNameToApply: string, actionName: string, formattingOptions?: FormatCodeSettings): void { this.state.verifyFileAfterApplyingRefactorAtMarker(markerName, expectedContent, refactorNameToApply, actionName, formattingOptions); } @@ -438,7 +446,7 @@ namespace FourSlashInterface { this.state.applyCodeActionFromCompletion(markerName, options); } - public importFixAtPosition(expectedTextArray: string[], errorCode?: number, preferences?: ts.UserPreferences): void { + public importFixAtPosition(expectedTextArray: string[], errorCode?: number, preferences?: UserPreferences): void { this.state.verifyImportFixAtPosition(expectedTextArray, errorCode, preferences); } @@ -508,7 +516,7 @@ namespace FourSlashInterface { this.state.verifySemanticClassifications(classifications); } - public renameInfoSucceeded(displayName?: string, fullDisplayName?: string, kind?: string, kindModifiers?: string, fileToRename?: string, expectedRange?: FourSlash.Range, options?: ts.RenameInfoOptions) { + public renameInfoSucceeded(displayName?: string, fullDisplayName?: string, kind?: string, kindModifiers?: string, fileToRename?: string, expectedRange?: FourSlash.Range, options?: RenameInfoOptions) { this.state.verifyRenameInfoSucceeded(displayName, fullDisplayName, kind, kindModifiers, fileToRename, expectedRange, options); } @@ -525,7 +533,7 @@ namespace FourSlashInterface { } public verifyQuickInfoDisplayParts(kind: string, kindModifiers: string, textSpan: FourSlash.TextSpan, - displayParts: ts.SymbolDisplayPart[], documentation: ts.SymbolDisplayPart[], tags: ts.JSDocTagInfo[]) { + displayParts: SymbolDisplayPart[], documentation: SymbolDisplayPart[], tags: JSDocTagInfo[]) { this.state.verifyQuickInfoDisplayParts(kind, kindModifiers, textSpan, displayParts, documentation, tags); } @@ -666,7 +674,7 @@ namespace FourSlashInterface { this.state.printCurrentSignatureHelp(); } - public printCompletionListMembers(options: ts.UserPreferences | undefined) { + public printCompletionListMembers(options: UserPreferences | undefined) { this.state.printCompletionListMembers(options); } @@ -714,11 +722,11 @@ namespace FourSlashInterface { this.state.formatDocument(); } - public copyFormatOptions(): ts.FormatCodeSettings { + public copyFormatOptions(): FormatCodeSettings { return this.state.copyFormatOptions(); } - public setFormatOptions(options: ts.FormatCodeOptions) { + public setFormatOptions(options: FormatCodeOptions) { return this.state.setFormatOptions(options); } @@ -730,7 +738,7 @@ namespace FourSlashInterface { this.state.formatOnType(this.state.getMarkerByName(posMarker).position, key); } - public setOption(name: keyof ts.FormatCodeSettings, value: number | string | boolean): void { + public setOption(name: keyof FormatCodeSettings, value: number | string | boolean): void { this.state.setFormatOptions({ ...this.state.formatCodeSettings, [name]: value }); } } @@ -749,111 +757,111 @@ namespace FourSlashInterface { } interface Classification { - classificationType: ts.ClassificationTypeNames; + classificationType: ClassificationTypeNames; text: string; textSpan?: FourSlash.TextSpan; } export namespace Classification { export function comment(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.comment, text, position); + return getClassification(ClassificationTypeNames.comment, text, position); } export function identifier(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.identifier, text, position); + return getClassification(ClassificationTypeNames.identifier, text, position); } export function keyword(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.keyword, text, position); + return getClassification(ClassificationTypeNames.keyword, text, position); } export function numericLiteral(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.numericLiteral, text, position); + return getClassification(ClassificationTypeNames.numericLiteral, text, position); } export function operator(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.operator, text, position); + return getClassification(ClassificationTypeNames.operator, text, position); } export function stringLiteral(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.stringLiteral, text, position); + return getClassification(ClassificationTypeNames.stringLiteral, text, position); } export function whiteSpace(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.whiteSpace, text, position); + return getClassification(ClassificationTypeNames.whiteSpace, text, position); } export function text(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.text, text, position); + return getClassification(ClassificationTypeNames.text, text, position); } export function punctuation(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.punctuation, text, position); + return getClassification(ClassificationTypeNames.punctuation, text, position); } export function docCommentTagName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.docCommentTagName, text, position); + return getClassification(ClassificationTypeNames.docCommentTagName, text, position); } export function className(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.className, text, position); + return getClassification(ClassificationTypeNames.className, text, position); } export function enumName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.enumName, text, position); + return getClassification(ClassificationTypeNames.enumName, text, position); } export function interfaceName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.interfaceName, text, position); + return getClassification(ClassificationTypeNames.interfaceName, text, position); } export function moduleName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.moduleName, text, position); + return getClassification(ClassificationTypeNames.moduleName, text, position); } export function typeParameterName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.typeParameterName, text, position); + return getClassification(ClassificationTypeNames.typeParameterName, text, position); } export function parameterName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.parameterName, text, position); + return getClassification(ClassificationTypeNames.parameterName, text, position); } export function typeAliasName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.typeAliasName, text, position); + return getClassification(ClassificationTypeNames.typeAliasName, text, position); } export function jsxOpenTagName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.jsxOpenTagName, text, position); + return getClassification(ClassificationTypeNames.jsxOpenTagName, text, position); } export function jsxCloseTagName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.jsxCloseTagName, text, position); + return getClassification(ClassificationTypeNames.jsxCloseTagName, text, position); } export function jsxSelfClosingTagName(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.jsxSelfClosingTagName, text, position); + return getClassification(ClassificationTypeNames.jsxSelfClosingTagName, text, position); } export function jsxAttribute(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.jsxAttribute, text, position); + return getClassification(ClassificationTypeNames.jsxAttribute, text, position); } export function jsxText(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.jsxText, text, position); + return getClassification(ClassificationTypeNames.jsxText, text, position); } export function jsxAttributeStringLiteralValue(text: string, position?: number): Classification { - return getClassification(ts.ClassificationTypeNames.jsxAttributeStringLiteralValue, text, position); + return getClassification(ClassificationTypeNames.jsxAttributeStringLiteralValue, text, position); } - function getClassification(classificationType: ts.ClassificationTypeNames, text: string, position?: number): Classification { + function getClassification(classificationType: ClassificationTypeNames, text: string, position?: number): Classification { const textSpan = position === undefined ? undefined : { start: position, end: position + text.length }; return { classificationType, text, textSpan }; } } export namespace Completion { - export import SortText = ts.Completions.SortText; - export import CompletionSource = ts.Completions.CompletionSource; + export import SortText = Completions.SortText; + export import CompletionSource = Completions.CompletionSource; const functionEntry = (name: string): ExpectedCompletionEntryObject => ({ name, @@ -904,9 +912,9 @@ namespace FourSlashInterface { }); const res: ExpectedCompletionEntryObject[] = []; - for (let i = ts.SyntaxKind.FirstKeyword; i <= ts.SyntaxKind.LastKeyword; i++) { + for (let i = SyntaxKind.FirstKeyword; i <= SyntaxKind.LastKeyword; i++) { res.push({ - name: ts.Debug.checkDefined(ts.tokenToString(i)), + name: Debug.checkDefined(tokenToString(i)), kind: "keyword", sortText: SortText.GlobalsOrKeywords }); @@ -1199,7 +1207,7 @@ namespace FourSlashInterface { case "module": return false; default: - return !ts.contains(typeKeywords, k); + return !contains(typeKeywords, k); } }); @@ -1500,8 +1508,8 @@ namespace FourSlashInterface { readonly text?: string; readonly documentation?: string; readonly sourceDisplay?: string; - readonly tags?: readonly ts.JSDocTagInfo[]; - readonly sortText?: ts.Completions.SortText; + readonly tags?: readonly JSDocTagInfo[]; + readonly sortText?: Completions.SortText; } export interface VerifyCompletionsOptions { @@ -1511,8 +1519,8 @@ namespace FourSlashInterface { readonly exact?: ArrayOrSingle; readonly includes?: ArrayOrSingle; readonly excludes?: ArrayOrSingle; - readonly preferences?: ts.UserPreferences; - readonly triggerCharacter?: ts.CompletionsTriggerCharacter; + readonly preferences?: UserPreferences; + readonly triggerCharacter?: CompletionsTriggerCharacter; } export interface VerifySignatureHelpOptions { @@ -1530,9 +1538,9 @@ namespace FourSlashInterface { readonly argumentCount?: number; /** @default false */ readonly isVariadic?: boolean; - /** @default ts.emptyArray */ - readonly tags?: readonly ts.JSDocTagInfo[]; - readonly triggerReason?: ts.SignatureHelpTriggerReason; + /** @default emptyArray */ + readonly tags?: readonly JSDocTagInfo[]; + readonly triggerReason?: SignatureHelpTriggerReason; } export interface VerifyNavigateToOptions { @@ -1543,19 +1551,19 @@ namespace FourSlashInterface { export interface ExpectedNavigateToItem { readonly name: string; - readonly kind: ts.ScriptElementKind; + readonly kind: ScriptElementKind; readonly kindModifiers?: string; - readonly matchKind?: keyof typeof ts.PatternMatchKind; + readonly matchKind?: keyof typeof PatternMatchKind; readonly isCaseSensitive?: boolean; readonly range: FourSlash.Range; readonly containerName?: string; - readonly containerKind?: ts.ScriptElementKind; + readonly containerKind?: ScriptElementKind; } export type ArrayOrSingle = T | readonly T[]; - export interface VerifyCompletionListContainsOptions extends ts.UserPreferences { - triggerCharacter?: ts.CompletionsTriggerCharacter; + export interface VerifyCompletionListContainsOptions extends UserPreferences { + triggerCharacter?: CompletionsTriggerCharacter; sourceDisplay: string; isRecommended?: true; insertText?: string; @@ -1578,14 +1586,14 @@ namespace FourSlashInterface { readonly description: string | [string, ...(string | number)[]] | DiagnosticIgnoredInterpolations; readonly errorCode?: number; readonly index?: number; - readonly preferences?: ts.UserPreferences; + readonly preferences?: UserPreferences; readonly applyChanges?: boolean; - readonly commands?: readonly ts.CodeActionCommand[]; + readonly commands?: readonly CodeActionCommand[]; } export interface VerifyCodeFixAvailableOptions { description: string; - commands?: ts.CodeActionCommand[]; + commands?: CodeActionCommand[]; } export interface VerifyCodeFixAllOptions { @@ -1598,14 +1606,14 @@ namespace FourSlashInterface { export interface VerifyRefactorOptions { name: string; actionName: string; - refactors: readonly ts.ApplicableRefactorInfo[]; + refactors: readonly ApplicableRefactorInfo[]; } export interface VerifyCompletionActionOptions extends NewContentOptions { name: string; source?: string; description: string; - preferences?: ts.UserPreferences; + preferences?: UserPreferences; } export interface Diagnostic { @@ -1620,12 +1628,12 @@ namespace FourSlashInterface { readonly oldPath: string; readonly newPath: string; readonly newFileContents: { readonly [fileName: string]: string }; - readonly preferences?: ts.UserPreferences; + readonly preferences?: UserPreferences; } export interface MoveToNewFileOptions { readonly newFileContents: { readonly [fileName: string]: string }; - readonly preferences?: ts.UserPreferences; + readonly preferences?: UserPreferences; } export type RenameLocationsOptions = readonly RenameLocationOptions[] | { diff --git a/src/harness/harnessGlobals.ts b/src/harness/harnessGlobals.ts index 63a85309aaa0a..e1efe026e4a2f 100644 --- a/src/harness/harnessGlobals.ts +++ b/src/harness/harnessGlobals.ts @@ -1,6 +1,8 @@ // Block scoped definitions work poorly for global variables, temporarily enable var /* eslint-disable no-var */ +import { isArray } from "util"; + // this will work in the browser via browserify declare var assert: typeof _chai.assert; declare var expect: typeof _chai.expect; @@ -13,7 +15,7 @@ globalThis.assert = _chai.assert; const assertDeepImpl = assert.deepEqual; assert.deepEqual = (a, b, msg) => { - if (ts.isArray(a) && ts.isArray(b)) { + if (isArray(a) && isArray(b)) { assertDeepImpl(arrayExtraKeysObject(a), arrayExtraKeysObject(b), "Array extra keys differ"); } assertDeepImpl(a, b, msg); @@ -31,6 +33,6 @@ globalThis.assert = _chai.assert; } globalThis.expect = _chai.expect; /* eslint-enable no-var */ -// empty ts namespace so this file is included in the `ts.ts` namespace file generated by the module swapover +// empty ts namespace so this file is included in the `ts` namespace file generated by the module swapover // This way, everything that ends up importing `ts` downstream also imports this file and picks up its augmentation -namespace ts {} \ No newline at end of file +namespace ts {} diff --git a/src/harness/harnessIO.ts b/src/harness/harnessIO.ts index 5f68d021fee16..c59fd559afb20 100644 --- a/src/harness/harnessIO.ts +++ b/src/harness/harnessIO.ts @@ -1,4 +1,20 @@ -namespace Harness { +import { RunnerBase } from "./runnerbase"; +import { FileSystemEntries, removeFileExtension, compareDiagnostics, getAreDeclarationMapsEnabled, convertToBase64 } from "../compiler/utilities"; +import { sys } from "../compiler/sys"; +import { compareStringsCaseSensitive, compareStringsCaseInsensitive, createMapFromTemplate, createMap, map, forEach, sort, createGetCanonicalFileName, identity, countWhere, endsWith, flatMap, contains, startsWith, findIndex, arrayFrom, orderedRemoveItemAt, equateStringsCaseInsensitive, hasProperty, find } from "../compiler/core"; +import { combinePaths, getNormalizedAbsolutePath, fileExtensionIs, comparePaths, getBaseFileName, normalizeSlashes, toPath, normalizePath, getDirectoryPath } from "../compiler/path"; +import { ScriptTarget, SourceFile, CompilerOptions, CommandLineOption, Diagnostic, CommandLineOptionOfCustomType, NewLineKind, Extension, diagnosticCategoryName, DiagnosticWithLocation, TextSpan, Program, CharacterCodes, ScriptKind, ParsedCommandLine, ParseConfigHost } from "../compiler/types"; +import { createSourceFile, parseJsonText } from "../compiler/parser"; +import { parseListTypeOption, parseCustomTypeOption, textSpanEnd, optionDeclarations, parseJsonSourceFileConfigFileContent } from "../../built/local/compiler"; +import { cloneCompilerOptions } from "../services/utilities"; +import { assert } from "console"; +import { formatDiagnosticsWithColorAndContext, formatDiagnostics, flattenDiagnosticMessageText, formatLocation, ForegroundColorEscapeSequences } from "../compiler/program"; +import { getErrorSummaryText, getErrorCountForSummary } from "../compiler/watch"; +import { Comparison } from "../compiler/corePublic"; +import { computeLineStarts } from "../compiler/scanner"; +import { TypeWriterWalker, TypeWriterResult } from "./typeWriter"; +import { length } from "mocha"; + export interface IO { newLine(): string; getCurrentDirectory(): string; @@ -21,7 +37,7 @@ namespace Harness { getWorkspaceRoot(): string; exit(exitCode?: number): void; readDirectory(path: string, extension?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): readonly string[]; - getAccessibleFileSystemEntries(dirname: string): ts.FileSystemEntries; + getAccessibleFileSystemEntries(dirname: string): FileSystemEntries; tryEnableSourceMapsForHost?(): void; getEnvironmentVariable?(name: string): string; getMemoryUsage?(): number | undefined; @@ -87,9 +103,9 @@ namespace Harness { return filesInFolder(path); } - function getAccessibleFileSystemEntries(dirname: string): ts.FileSystemEntries { + function getAccessibleFileSystemEntries(dirname: string): FileSystemEntries { try { - const entries: string[] = fs.readdirSync(dirname || ".").sort(ts.sys.useCaseSensitiveFileNames ? ts.compareStringsCaseSensitive : ts.compareStringsCaseInsensitive); + const entries: string[] = fs.readdirSync(dirname || ".").sort(sys.useCaseSensitiveFileNames ? compareStringsCaseSensitive : compareStringsCaseInsensitive); const files: string[] = []; const directories: string[] = []; for (const entry of entries) { @@ -123,7 +139,7 @@ namespace Harness { createDirectory(vpath.dirname(path)); createDirectory(path); } - else if (!ts.sys.directoryExists(path)) { + else if (!sys.directoryExists(path)) { throw e; } } @@ -131,30 +147,30 @@ namespace Harness { return { newLine: () => harnessNewLine, - getCurrentDirectory: () => ts.sys.getCurrentDirectory(), - useCaseSensitiveFileNames: () => ts.sys.useCaseSensitiveFileNames, - resolvePath: (path: string) => ts.sys.resolvePath(path), - getFileSize: (path: string) => ts.sys.getFileSize!(path), - readFile: path => ts.sys.readFile(path), - writeFile: (path, content) => ts.sys.writeFile(path, content), + getCurrentDirectory: () => sys.getCurrentDirectory(), + useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames, + resolvePath: (path: string) => sys.resolvePath(path), + getFileSize: (path: string) => sys.getFileSize!(path), + readFile: path => sys.readFile(path), + writeFile: (path, content) => sys.writeFile(path, content), directoryName, - getDirectories: path => ts.sys.getDirectories(path), + getDirectories: path => sys.getDirectories(path), createDirectory, - fileExists: path => ts.sys.fileExists(path), - directoryExists: path => ts.sys.directoryExists(path), + fileExists: path => sys.fileExists(path), + directoryExists: path => sys.directoryExists(path), deleteFile, listFiles, enumerateTestFiles, log: s => console.log(s), - args: () => ts.sys.args, - getExecutingFilePath: () => ts.sys.getExecutingFilePath(), + args: () => sys.args, + getExecutingFilePath: () => sys.getExecutingFilePath(), getWorkspaceRoot: () => vpath.resolve(__dirname, "../.."), - exit: exitCode => ts.sys.exit(exitCode), - readDirectory: (path, extension, exclude, include, depth) => ts.sys.readDirectory(path, extension, exclude, include, depth), + exit: exitCode => sys.exit(exitCode), + readDirectory: (path, extension, exclude, include, depth) => sys.readDirectory(path, extension, exclude, include, depth), getAccessibleFileSystemEntries, - tryEnableSourceMapsForHost: () => ts.sys.tryEnableSourceMapsForHost && ts.sys.tryEnableSourceMapsForHost(), - getMemoryUsage: () => ts.sys.getMemoryUsage && ts.sys.getMemoryUsage(), - getEnvironmentVariable: name => ts.sys.getEnvironmentVariable(name), + tryEnableSourceMapsForHost: () => sys.tryEnableSourceMapsForHost && sys.tryEnableSourceMapsForHost(), + getMemoryUsage: () => sys.getMemoryUsage && sys.getMemoryUsage(), + getEnvironmentVariable: name => sys.getEnvironmentVariable(name), }; } @@ -169,7 +185,7 @@ namespace Harness { } export const libFolder = "built/local/"; - const tcServicesFileName = ts.combinePaths(libFolder, "typescriptServices.js"); + const tcServicesFileName = combinePaths(libFolder, "typescriptServices.js"); export const tcServicesFile = IO.readFile(tcServicesFileName) + IO.newLine() + `//# sourceURL=${IO.resolvePath(tcServicesFileName)}`; export type SourceMapEmitterCallback = ( @@ -225,12 +241,12 @@ namespace Harness { export function createSourceFileAndAssertInvariants( fileName: string, sourceText: string, - languageVersion: ts.ScriptTarget) { + languageVersion: ScriptTarget) { // We'll only assert invariants outside of light mode. const shouldAssertInvariants = !lightMode; // Only set the parent nodes if we're asserting invariants. We don't need them otherwise. - const result = ts.createSourceFile(fileName, sourceText, languageVersion, /*setParentNodes:*/ shouldAssertInvariants); + const result = createSourceFile(fileName, sourceText, languageVersion, /*setParentNodes:*/ shouldAssertInvariants); if (shouldAssertInvariants) { Utils.assertInvariants(result, /*parent:*/ undefined); @@ -243,34 +259,34 @@ namespace Harness { export const es2015DefaultLibFileName = "lib.es2015.d.ts"; // Cache of lib files from "built/local" - let libFileNameSourceFileMap: ts.Map | undefined; + let libFileNameSourceFileMap: Map | undefined; - export function getDefaultLibrarySourceFile(fileName = defaultLibFileName): ts.SourceFile | undefined { + export function getDefaultLibrarySourceFile(fileName = defaultLibFileName): SourceFile | undefined { if (!isDefaultLibraryFile(fileName)) { return undefined; } if (!libFileNameSourceFileMap) { - libFileNameSourceFileMap = ts.createMapFromTemplate({ - [defaultLibFileName]: createSourceFileAndAssertInvariants(defaultLibFileName, IO.readFile(libFolder + "lib.es5.d.ts")!, /*languageVersion*/ ts.ScriptTarget.Latest) + libFileNameSourceFileMap = createMapFromTemplate({ + [defaultLibFileName]: createSourceFileAndAssertInvariants(defaultLibFileName, IO.readFile(libFolder + "lib.es5.d.ts")!, /*languageVersion*/ ScriptTarget.Latest) }); } let sourceFile = libFileNameSourceFileMap.get(fileName); if (!sourceFile) { - libFileNameSourceFileMap.set(fileName, sourceFile = createSourceFileAndAssertInvariants(fileName, IO.readFile(libFolder + fileName)!, ts.ScriptTarget.Latest)); + libFileNameSourceFileMap.set(fileName, sourceFile = createSourceFileAndAssertInvariants(fileName, IO.readFile(libFolder + fileName)!, ScriptTarget.Latest)); } return sourceFile; } - export function getDefaultLibFileName(options: ts.CompilerOptions): string { + export function getDefaultLibFileName(options: CompilerOptions): string { switch (options.target) { - case ts.ScriptTarget.ESNext: - case ts.ScriptTarget.ES2017: + case ScriptTarget.ESNext: + case ScriptTarget.ES2017: return "lib.es2017.d.ts"; - case ts.ScriptTarget.ES2016: + case ScriptTarget.ES2016: return "lib.es2016.d.ts"; - case ts.ScriptTarget.ES2015: + case ScriptTarget.ES2015: return es2015DefaultLibFileName; default: @@ -280,7 +296,7 @@ namespace Harness { // Cache these between executions so we don't have to re-parse them for every test export const fourslashFileName = "fourslash.ts"; - export let fourslashSourceFile: ts.SourceFile; + export let fourslashSourceFile: SourceFile; export function getCanonicalFileName(fileName: string): string { return fileName; @@ -294,8 +310,8 @@ namespace Harness { noTypesAndSymbols?: boolean; } - // Additional options not already in ts.optionDeclarations - const harnessOptionDeclarations: ts.CommandLineOption[] = [ + // Additional options not already in optionDeclarations + const harnessOptionDeclarations: CommandLineOption[] = [ { name: "allowNonTsExtensions", type: "boolean" }, { name: "useCaseSensitiveFileNames", type: "boolean" }, { name: "baselineFile", type: "string" }, @@ -313,11 +329,11 @@ namespace Harness { { name: "fullEmitPaths", type: "boolean" } ]; - let optionsIndex: ts.Map; - function getCommandLineOption(name: string): ts.CommandLineOption | undefined { + let optionsIndex: Map; + function getCommandLineOption(name: string): CommandLineOption | undefined { if (!optionsIndex) { - optionsIndex = ts.createMap(); - const optionDeclarations = harnessOptionDeclarations.concat(ts.optionDeclarations); + optionsIndex = createMap(); + const optionDeclarations = harnessOptionDeclarations.concat(optionDeclarations); for (const option of optionDeclarations) { optionsIndex.set(option.name.toLowerCase(), option); } @@ -325,7 +341,7 @@ namespace Harness { return optionsIndex.get(name.toLowerCase()); } - export function setCompilerOptionsFromHarnessSetting(settings: TestCaseParser.CompilerSettings, options: ts.CompilerOptions & HarnessOptions): void { + export function setCompilerOptionsFromHarnessSetting(settings: TestCaseParser.CompilerSettings, options: CompilerOptions & HarnessOptions): void { for (const name in settings) { if (settings.hasOwnProperty(name)) { const value = settings[name]; @@ -334,7 +350,7 @@ namespace Harness { } const option = getCommandLineOption(name); if (option) { - const errors: ts.Diagnostic[] = []; + const errors: Diagnostic[] = []; options[option.name] = optionValue(option, value, errors); if (errors.length > 0) { throw new Error(`Unknown value '${value}' for compiler option '${name}'.`); @@ -347,7 +363,7 @@ namespace Harness { } } - function optionValue(option: ts.CommandLineOption, value: string, errors: ts.Diagnostic[]): any { + function optionValue(option: CommandLineOption, value: string, errors: Diagnostic[]): any { switch (option.type) { case "boolean": return value.toLowerCase() === "true"; @@ -362,9 +378,9 @@ namespace Harness { } // If not a primitive, the possible types are specified in what is effectively a map of options. case "list": - return ts.parseListTypeOption(option, value, errors); + return parseListTypeOption(option, value, errors); default: - return ts.parseCustomTypeOption(option, value, errors); + return parseCustomTypeOption(option, value, errors); } } @@ -378,14 +394,14 @@ namespace Harness { inputFiles: TestFile[], otherFiles: TestFile[], harnessSettings: TestCaseParser.CompilerSettings | undefined, - compilerOptions: ts.CompilerOptions | undefined, + compilerOptions: CompilerOptions | undefined, // Current directory is needed for rwcRunner to be able to use currentDirectory defined in json file currentDirectory: string | undefined, symlinks?: vfs.FileSet ): compiler.CompilationResult { - const options: ts.CompilerOptions & HarnessOptions = compilerOptions ? ts.cloneCompilerOptions(compilerOptions) : { noResolve: false }; - options.target = options.target || ts.ScriptTarget.ES3; - options.newLine = options.newLine || ts.NewLineKind.CarriageReturnLineFeed; + const options: CompilerOptions & HarnessOptions = compilerOptions ? cloneCompilerOptions(compilerOptions) : { noResolve: false }; + options.target = options.target || ScriptTarget.ES3; + options.newLine = options.newLine || NewLineKind.CarriageReturnLineFeed; options.noErrorTruncation = true; options.skipDefaultLibCheck = typeof options.skipDefaultLibCheck === "undefined" ? true : options.skipDefaultLibCheck; @@ -398,11 +414,11 @@ namespace Harness { setCompilerOptionsFromHarnessSetting(harnessSettings, options); } if (options.rootDirs) { - options.rootDirs = ts.map(options.rootDirs, d => ts.getNormalizedAbsolutePath(d, currentDirectory)); + options.rootDirs = map(options.rootDirs, d => getNormalizedAbsolutePath(d, currentDirectory)); } const useCaseSensitiveFileNames = options.useCaseSensitiveFileNames !== undefined ? options.useCaseSensitiveFileNames : true; - const programFileNames = inputFiles.map(file => file.unitName).filter(fileName => !ts.fileExtensionIs(fileName, ts.Extension.Json)); + const programFileNames = inputFiles.map(file => file.unitName).filter(fileName => !fileExtensionIs(fileName, Extension.Json)); // Files from built\local that are requested by test "@includeBuiltFiles" to be in the context. // Treat them as library files, so include them in build, but not in baselines. @@ -432,7 +448,7 @@ namespace Harness { declInputFiles: TestFile[]; declOtherFiles: TestFile[]; harnessSettings: TestCaseParser.CompilerSettings & HarnessOptions | undefined; - options: ts.CompilerOptions; + options: CompilerOptions; currentDirectory: string; } @@ -440,7 +456,7 @@ namespace Harness { otherFiles: readonly TestFile[], result: compiler.CompilationResult, harnessSettings: TestCaseParser.CompilerSettings & HarnessOptions, - options: ts.CompilerOptions, + options: CompilerOptions, // Current directory is needed for rwcRunner to be able to use currentDirectory defined in json file currentDirectory: string | undefined): DeclarationCompilationContext | undefined { @@ -460,8 +476,8 @@ namespace Harness { // if the .d.ts is non-empty, confirm it compiles correctly as well if (options.declaration && result.diagnostics.length === 0 && result.dts.size > 0) { - ts.forEach(inputFiles, file => addDtsFile(file, declInputFiles)); - ts.forEach(otherFiles, file => addDtsFile(file, declOtherFiles)); + forEach(inputFiles, file => addDtsFile(file, declInputFiles)); + forEach(otherFiles, file => addDtsFile(file, declOtherFiles)); return { declInputFiles, declOtherFiles, harnessSettings, options, currentDirectory: currentDirectory || harnessSettings.currentDirectory }; } @@ -485,9 +501,9 @@ namespace Harness { const outFile = options.outFile || options.out; if (!outFile) { if (options.outDir) { - let sourceFilePath = ts.getNormalizedAbsolutePath(sourceFile.fileName, result.vfs.cwd()); + let sourceFilePath = getNormalizedAbsolutePath(sourceFile.fileName, result.vfs.cwd()); sourceFilePath = sourceFilePath.replace(result.program!.getCommonSourceDirectory(), ""); - sourceFileName = ts.combinePaths(options.outDir, sourceFilePath); + sourceFileName = combinePaths(options.outDir, sourceFilePath); } else { sourceFileName = sourceFile.fileName; @@ -498,12 +514,12 @@ namespace Harness { sourceFileName = outFile; } - const dTsFileName = ts.removeFileExtension(sourceFileName) + ts.Extension.Dts; + const dTsFileName = removeFileExtension(sourceFileName) + Extension.Dts; return result.dts.get(dTsFileName); } function findUnit(fileName: string, units: TestFile[]) { - return ts.forEach(units, unit => unit.unitName === fileName ? unit : undefined); + return forEach(units, unit => unit.unitName === fileName ? unit : undefined); } } @@ -516,12 +532,12 @@ namespace Harness { return { declInputFiles, declOtherFiles, declResult: output }; } - export function minimalDiagnosticsToString(diagnostics: readonly ts.Diagnostic[], pretty?: boolean) { + export function minimalDiagnosticsToString(diagnostics: readonly Diagnostic[], pretty?: boolean) { const host = { getCanonicalFileName, getCurrentDirectory: () => "", getNewLine: () => IO.newLine() }; - return (pretty ? ts.formatDiagnosticsWithColorAndContext : ts.formatDiagnostics)(diagnostics, host); + return (pretty ? formatDiagnosticsWithColorAndContext : formatDiagnostics)(diagnostics, host); } - export function getErrorBaseline(inputFiles: readonly TestFile[], diagnostics: readonly ts.Diagnostic[], pretty?: boolean) { + export function getErrorBaseline(inputFiles: readonly TestFile[], diagnostics: readonly Diagnostic[], pretty?: boolean) { let outputLines = ""; const gen = iterateErrorBaseline(inputFiles, diagnostics, { pretty }); for (let {done, value} = gen.next(); !done; { done, value } = gen.next()) { @@ -529,15 +545,15 @@ namespace Harness { outputLines += content; } if (pretty) { - outputLines += ts.getErrorSummaryText(ts.getErrorCountForSummary(diagnostics), IO.newLine()); + outputLines += getErrorSummaryText(getErrorCountForSummary(diagnostics), IO.newLine()); } return outputLines; } export const diagnosticSummaryMarker = "__diagnosticSummary"; export const globalErrorsMarker = "__globalErrors"; - export function *iterateErrorBaseline(inputFiles: readonly TestFile[], diagnostics: readonly ts.Diagnostic[], options?: { pretty?: boolean, caseSensitive?: boolean, currentDirectory?: string }): IterableIterator<[string, string, number]> { - diagnostics = ts.sort(diagnostics, ts.compareDiagnostics); + export function *iterateErrorBaseline(inputFiles: readonly TestFile[], diagnostics: readonly Diagnostic[], options?: { pretty?: boolean, caseSensitive?: boolean, currentDirectory?: string }): IterableIterator<[string, string, number]> { + diagnostics = sort(diagnostics, compareDiagnostics); let outputLines = ""; // Count up all errors that were found in files other than lib.d.ts so we don't miss any let totalErrorsReportedInNonLibraryFiles = 0; @@ -556,20 +572,20 @@ namespace Harness { const formatDiagnsoticHost = { getCurrentDirectory: () => options && options.currentDirectory ? options.currentDirectory : "", getNewLine: () => IO.newLine(), - getCanonicalFileName: ts.createGetCanonicalFileName(options && options.caseSensitive !== undefined ? options.caseSensitive : true), + getCanonicalFileName: createGetCanonicalFileName(options && options.caseSensitive !== undefined ? options.caseSensitive : true), }; - function outputErrorText(error: ts.Diagnostic) { - const message = ts.flattenDiagnosticMessageText(error.messageText, IO.newLine()); + function outputErrorText(error: Diagnostic) { + const message = flattenDiagnosticMessageText(error.messageText, IO.newLine()); const errLines = Utils.removeTestPathPrefixes(message) .split("\n") .map(s => s.length > 0 && s.charAt(s.length - 1) === "\r" ? s.substr(0, s.length - 1) : s) .filter(s => s.length > 0) - .map(s => "!!! " + ts.diagnosticCategoryName(error) + " TS" + error.code + ": " + s); + .map(s => "!!! " + diagnosticCategoryName(error) + " TS" + error.code + ": " + s); if (error.relatedInformation) { for (const info of error.relatedInformation) { - errLines.push(`!!! related TS${info.code}${info.file ? " " + ts.formatLocation(info.file, info.start!, formatDiagnsoticHost, ts.identity) : ""}: ${ts.flattenDiagnosticMessageText(info.messageText, IO.newLine())}`); + errLines.push(`!!! related TS${info.code}${info.file ? " " + formatLocation(info.file, info.start!, formatDiagnsoticHost, identity) : ""}: ${flattenDiagnosticMessageText(info.messageText, IO.newLine())}`); } } errLines.forEach(e => outputLines += (newLine() + e)); @@ -595,12 +611,12 @@ namespace Harness { errorsReported = 0; // 'merge' the lines of each input file with any errors associated with it - const dupeCase = ts.createMap(); + const dupeCase = createMap(); for (const inputFile of inputFiles.filter(f => f.content !== undefined)) { // Filter down to the errors in the file - const fileErrors = diagnostics.filter((e): e is ts.DiagnosticWithLocation => { + const fileErrors = diagnostics.filter((e): e is DiagnosticWithLocation => { const errFn = e.file; - return !!errFn && ts.comparePaths(Utils.removeTestPathPrefixes(errFn.fileName), Utils.removeTestPathPrefixes(inputFile.unitName), options && options.currentDirectory || "", !(options && options.caseSensitive)) === ts.Comparison.EqualTo; + return !!errFn && comparePaths(Utils.removeTestPathPrefixes(errFn.fileName), Utils.removeTestPathPrefixes(inputFile.unitName), options && options.currentDirectory || "", !(options && options.caseSensitive)) === Comparison.EqualTo; }); @@ -613,7 +629,7 @@ namespace Harness { // Note: IE JS engine incorrectly handles consecutive delimiters here when using RegExp split, so // we have to string-based splitting instead and try to figure out the delimiting chars - const lineStarts = ts.computeLineStarts(inputFile.content); + const lineStarts = computeLineStarts(inputFile.content); let lines = inputFile.content.split("\n"); if (lines.length === 1) { lines = lines[0].split("\r"); @@ -636,9 +652,9 @@ namespace Harness { // Emit this line from the original file outputLines += (newLine() + " " + line); fileErrors.forEach(errDiagnostic => { - const err = errDiagnostic as ts.TextSpan; // TODO: GH#18217 + const err = errDiagnostic as TextSpan; // TODO: GH#18217 // Does any error start or continue on to this line? Emit squiggles - const end = ts.textSpanEnd(err); + const end = textSpanEnd(err); if ((end >= thisLineStart) && ((err.start < nextLineStart) || (lineIndex === lines.length - 1))) { // How many characters from the start of this line the error starts at (could be positive or negative) const relativeOffset = err.start - thisLineStart; @@ -675,11 +691,11 @@ namespace Harness { errorsReported = 0; } - const numLibraryDiagnostics = ts.countWhere(diagnostics, diagnostic => { + const numLibraryDiagnostics = countWhere(diagnostics, diagnostic => { return !!diagnostic.file && (isDefaultLibraryFile(diagnostic.file.fileName) || isBuiltFile(diagnostic.file.fileName)); }); - const numTest262HarnessDiagnostics = ts.countWhere(diagnostics, diagnostic => { + const numTest262HarnessDiagnostics = countWhere(diagnostics, diagnostic => { // Count an error generated from tests262-harness folder.This should only apply for test262 return !!diagnostic.file && diagnostic.file.fileName.indexOf("test262-harness") >= 0; }); @@ -688,12 +704,12 @@ namespace Harness { assert.equal(totalErrorsReportedInNonLibraryFiles + numLibraryDiagnostics + numTest262HarnessDiagnostics, diagnostics.length, "total number of errors"); } - export function doErrorBaseline(baselinePath: string, inputFiles: readonly TestFile[], errors: readonly ts.Diagnostic[], pretty?: boolean) { + export function doErrorBaseline(baselinePath: string, inputFiles: readonly TestFile[], errors: readonly Diagnostic[], pretty?: boolean) { Baseline.runBaseline(baselinePath.replace(/\.tsx?$/, ".errors.txt"), !errors || (errors.length === 0) ? null : getErrorBaseline(inputFiles, errors, pretty)); // eslint-disable-line no-null/no-null } - export function doTypeAndSymbolBaseline(baselinePath: string, program: ts.Program, allFiles: {unitName: string, content: string}[], opts?: Baseline.BaselineOptions, multifile?: boolean, skipTypeBaselines?: boolean, skipSymbolBaselines?: boolean, hasErrorBaseline?: boolean) { + export function doTypeAndSymbolBaseline(baselinePath: string, program: Program, allFiles: {unitName: string, content: string}[], opts?: Baseline.BaselineOptions, multifile?: boolean, skipTypeBaselines?: boolean, skipSymbolBaselines?: boolean, hasErrorBaseline?: boolean) { // The full walker simulates the types that you would get from doing a full // compile. The pull walker simulates the types you get when you just do // a type query for a random node (like how the LS would do it). Most of the @@ -747,7 +763,7 @@ namespace Harness { // When calling this function from rwc-runner, the baselinePath will have no extension. // As rwc test- file is stored in json which ".json" will get stripped off. // When calling this function from compiler-runner, the baselinePath will then has either ".ts" or ".tsx" extension - const outputFileName = ts.endsWith(baselinePath, ts.Extension.Ts) || ts.endsWith(baselinePath, ts.Extension.Tsx) ? + const outputFileName = endsWith(baselinePath, Extension.Ts) || endsWith(baselinePath, Extension.Tsx) ? baselinePath.replace(/\.tsx?/, "") : baselinePath; if (!multifile) { @@ -775,12 +791,12 @@ namespace Harness { if (skipBaseline) { return; } - const dupeCase = ts.createMap(); + const dupeCase = createMap(); for (const file of allFiles) { const { unitName } = file; let typeLines = "=== " + unitName + " ===\r\n"; - const codeLines = ts.flatMap(file.content.split(/\r?\n/g), e => e.split(/[\r\u2028\u2029]/g)); + const codeLines = flatMap(file.content.split(/\r?\n/g), e => e.split(/[\r\u2028\u2029]/g)); const gen: IterableIterator = isSymbolBaseline ? fullWalker.getSymbols(unitName) : fullWalker.getTypes(unitName); let lastIndexWritten: number | undefined; for (let {done, value: result} = gen.next(); !done; { done, value: result } = gen.next()) { @@ -822,8 +838,8 @@ namespace Harness { } } - export function doSourcemapBaseline(baselinePath: string, options: ts.CompilerOptions, result: compiler.CompilationResult, harnessSettings: TestCaseParser.CompilerSettings) { - const declMaps = ts.getAreDeclarationMapsEnabled(options); + export function doSourcemapBaseline(baselinePath: string, options: CompilerOptions, result: compiler.CompilationResult, harnessSettings: TestCaseParser.CompilerSettings) { + const declMaps = getAreDeclarationMapsEnabled(options); if (options.inlineSourceMap) { if (result.maps.size > 0 && !declMaps) { throw new Error("No sourcemap files should be generated if inlineSourceMaps was set."); @@ -860,15 +876,15 @@ namespace Harness { const outputJSFile = result.outputs.find(td => td.file.endsWith(sourcemapJSON.file)); if (!outputJSFile) return ""; - const sourceTDs = ts.map(sourcemapJSON.sources, (s: string) => result.inputs.find(td => td.file.endsWith(s))); - const anyUnfoundSources = ts.contains(sourceTDs, /*value*/ undefined); + const sourceTDs = map(sourcemapJSON.sources, (s: string) => result.inputs.find(td => td.file.endsWith(s))); + const anyUnfoundSources = contains(sourceTDs, /*value*/ undefined); if (anyUnfoundSources) return ""; - const hash = "#base64," + ts.map([outputJSFile.text, sourcemap].concat(sourceTDs.map(td => td!.text)), (s) => ts.convertToBase64(decodeURIComponent(encodeURIComponent(s)))).join(","); + const hash = "#base64," + map([outputJSFile.text, sourcemap].concat(sourceTDs.map(td => td!.text)), (s) => convertToBase64(decodeURIComponent(encodeURIComponent(s)))).join(","); return "\n//// https://sokra.github.io/source-map-visualization" + hash + "\n"; } - export function doJsEmitBaseline(baselinePath: string, header: string, options: ts.CompilerOptions, result: compiler.CompilationResult, tsConfigFiles: readonly TestFile[], toBeCompiled: readonly TestFile[], otherFiles: readonly TestFile[], harnessSettings: TestCaseParser.CompilerSettings) { + export function doJsEmitBaseline(baselinePath: string, header: string, options: CompilerOptions, result: compiler.CompilationResult, tsConfigFiles: readonly TestFile[], toBeCompiled: readonly TestFile[], otherFiles: readonly TestFile[], harnessSettings: TestCaseParser.CompilerSettings) { if (!options.noEmit && !options.emitDeclarationOnly && result.js.size === 0 && result.diagnostics.length === 0) { throw new Error("Expected at least one js file to be emitted or at least one error to be created."); } @@ -880,18 +896,18 @@ namespace Harness { tsCode += "//// [" + header + "] ////\r\n\r\n"; } for (let i = 0; i < tsSources.length; i++) { - tsCode += "//// [" + ts.getBaseFileName(tsSources[i].unitName) + "]\r\n"; + tsCode += "//// [" + getBaseFileName(tsSources[i].unitName) + "]\r\n"; tsCode += tsSources[i].content + (i < (tsSources.length - 1) ? "\r\n" : ""); } let jsCode = ""; result.js.forEach(file => { - if (jsCode.length && jsCode.charCodeAt(jsCode.length - 1) !== ts.CharacterCodes.lineFeed) { + if (jsCode.length && jsCode.charCodeAt(jsCode.length - 1) !== CharacterCodes.lineFeed) { jsCode += "\r\n"; } - if (!result.diagnostics.length && !ts.endsWith(file.file, ts.Extension.Json)) { - const fileParseResult = ts.createSourceFile(file.file, file.text, options.target || ts.ScriptTarget.ES3, /*parentNodes*/ false, ts.endsWith(file.file, "x") ? ts.ScriptKind.JSX : ts.ScriptKind.JS); - if (ts.length(fileParseResult.parseDiagnostics)) { + if (!result.diagnostics.length && !endsWith(file.file, Extension.Json)) { + const fileParseResult = createSourceFile(file.file, file.text, options.target || ScriptTarget.ES3, /*parentNodes*/ false, endsWith(file.file, "x") ? ScriptKind.JSX : ScriptKind.JS); + if (length(fileParseResult.parseDiagnostics)) { jsCode += getErrorBaseline([file.asTestFile()], fileParseResult.parseDiagnostics); return; } @@ -918,11 +934,11 @@ namespace Harness { } // eslint-disable-next-line no-null/no-null - Baseline.runBaseline(baselinePath.replace(/\.tsx?/, ts.Extension.Js), jsCode.length > 0 ? tsCode + "\r\n\r\n" + jsCode : null); + Baseline.runBaseline(baselinePath.replace(/\.tsx?/, Extension.Js), jsCode.length > 0 ? tsCode + "\r\n\r\n" + jsCode : null); } function fileOutput(file: documents.TextDocument, harnessSettings: TestCaseParser.CompilerSettings): string { - const fileName = harnessSettings.fullEmitPaths ? Utils.removeTestPathPrefixes(file.file) : ts.getBaseFileName(file.file); + const fileName = harnessSettings.fullEmitPaths ? Utils.removeTestPathPrefixes(file.file) : getBaseFileName(file.file); return "//// [" + fileName + "]\r\n" + Utils.removeTestPathPrefixes(file.text); } @@ -945,20 +961,20 @@ namespace Harness { export function* iterateOutputs(outputFiles: Iterable): IterableIterator<[string, string]> { // Collect, test, and sort the fileNames const files = Array.from(outputFiles); - files.slice().sort((a, b) => ts.compareStringsCaseSensitive(cleanName(a.file), cleanName(b.file))); - const dupeCase = ts.createMap(); + files.slice().sort((a, b) => compareStringsCaseSensitive(cleanName(a.file), cleanName(b.file))); + const dupeCase = createMap(); // Yield them for (const outputFile of files) { yield [checkDuplicatedFileName(outputFile.file, dupeCase), "/*====== " + outputFile.file + " ======*/\r\n" + Utils.removeByteOrderMark(outputFile.text)]; } function cleanName(fn: string) { - const lastSlash = ts.normalizeSlashes(fn).lastIndexOf("/"); + const lastSlash = normalizeSlashes(fn).lastIndexOf("/"); return fn.substr(lastSlash + 1).toLowerCase(); } } - function checkDuplicatedFileName(resultName: string, dupeCase: ts.Map): string { + function checkDuplicatedFileName(resultName: string, dupeCase: Map): string { resultName = sanitizeTestFilePath(resultName); if (dupeCase.has(resultName)) { // A different baseline filename should be manufactured if the names differ only in case, for windows compat @@ -973,8 +989,8 @@ namespace Harness { } export function sanitizeTestFilePath(name: string) { - const path = ts.toPath(ts.normalizeSlashes(name.replace(/[\^<>:"|?*%]/g, "_")).replace(/\.\.\//g, "__dotdot/"), "", Utils.canonicalizeForHarness); - if (ts.startsWith(path, "/")) { + const path = toPath(normalizeSlashes(name.replace(/[\^<>:"|?*%]/g, "_")).replace(/\.\.\//g, "__dotdot/"), "", Utils.canonicalizeForHarness); + if (startsWith(path, "/")) { return path.substring(1); } return path; @@ -1002,7 +1018,7 @@ namespace Harness { if (s === "*") { star = true; } - else if (ts.startsWith(s, "-") || ts.startsWith(s, "!")) { + else if (startsWith(s, "-") || startsWith(s, "!")) { excludes.push(s.slice(1)); } else { @@ -1021,15 +1037,15 @@ namespace Harness { // add (and deduplicate) all included entries for (const include of includes) { const value = values?.get(include); - if (ts.findIndex(variations, v => v.key === include || value !== undefined && v.value === value) === -1) { + if (findIndex(variations, v => v.key === include || value !== undefined && v.value === value) === -1) { variations.push({ key: include, value }); } } if (star && values) { // add all entries - for (const [key, value] of ts.arrayFrom(values.entries())) { - if (ts.findIndex(variations, v => v.key === key || v.value === value) === -1) { + for (const [key, value] of arrayFrom(values.entries())) { + if (findIndex(variations, v => v.key === key || v.value === value) === -1) { variations.push({ key, value }); } } @@ -1039,8 +1055,8 @@ namespace Harness { for (const exclude of excludes) { const value = values?.get(exclude); let index: number; - while ((index = ts.findIndex(variations, v => v.key === exclude || value !== undefined && v.value === value)) >= 0) { - ts.orderedRemoveItemAt(variations, index); + while ((index = findIndex(variations, v => v.key === exclude || value !== undefined && v.value === value)) >= 0) { + orderedRemoveItemAt(variations, index); } } @@ -1048,7 +1064,7 @@ namespace Harness { throw new Error(`Variations in test option '@${varyBy}' resulted in an empty set.`); } - return ts.map(variations, v => v.key); + return map(variations, v => v.key); } function computeFileBasedTestConfigurationVariations(configurations: FileBasedTestConfiguration[], variationState: FileBasedTestConfiguration, varyByEntries: [string, string[]][], offset: number) { @@ -1066,16 +1082,16 @@ namespace Harness { } } - let booleanVaryByStarSettingValues: ts.Map | undefined; + let booleanVaryByStarSettingValues: Map | undefined; - function getVaryByStarSettingValues(varyBy: string): ts.ReadonlyMap | undefined { - const option = ts.forEach(ts.optionDeclarations, decl => ts.equateStringsCaseInsensitive(decl.name, varyBy) ? decl : undefined); + function getVaryByStarSettingValues(varyBy: string): ReadonlyMap | undefined { + const option = forEach(optionDeclarations, decl => equateStringsCaseInsensitive(decl.name, varyBy) ? decl : undefined); if (option) { if (typeof option.type === "object") { return option.type; } if (option.type === "boolean") { - return booleanVaryByStarSettingValues || (booleanVaryByStarSettingValues = ts.createMapFromTemplate({ + return booleanVaryByStarSettingValues || (booleanVaryByStarSettingValues = createMapFromTemplate({ true: 1, false: 0 })); @@ -1090,7 +1106,7 @@ namespace Harness { let varyByEntries: [string, string[]][] | undefined; let variationCount = 1; for (const varyByKey of varyBy) { - if (ts.hasProperty(settings, varyByKey)) { + if (hasProperty(settings, varyByKey)) { // we only consider variations when there are 2 or more variable entries. const entries = splitVaryBySettingValue(settings[varyByKey], varyByKey); if (entries) { @@ -1167,7 +1183,7 @@ namespace Harness { export interface TestCaseContent { settings: CompilerSettings; testUnitData: TestUnitData[]; - tsConfig: ts.ParsedCommandLine | undefined; + tsConfig: ParsedCommandLine | undefined; tsConfigFileUnitData: TestUnitData | undefined; symlinks?: vfs.FileSet; } @@ -1239,7 +1255,7 @@ namespace Harness { } // normalize the fileName for the single file case - currentFileName = testUnitData.length > 0 || currentFileName ? currentFileName : ts.getBaseFileName(fileName); + currentFileName = testUnitData.length > 0 || currentFileName ? currentFileName : getBaseFileName(fileName); // EOF, push whatever remains const newTestFile2 = { @@ -1252,31 +1268,31 @@ namespace Harness { testUnitData.push(newTestFile2); // unit tests always list files explicitly - const parseConfigHost: ts.ParseConfigHost = { + const parseConfigHost: ParseConfigHost = { useCaseSensitiveFileNames: false, readDirectory: () => [], fileExists: () => true, - readFile: (name) => ts.forEach(testUnitData, data => data.name.toLowerCase() === name.toLowerCase() ? data.content : undefined) + readFile: (name) => forEach(testUnitData, data => data.name.toLowerCase() === name.toLowerCase() ? data.content : undefined) }; // check if project has tsconfig.json in the list of files - let tsConfig: ts.ParsedCommandLine | undefined; + let tsConfig: ParsedCommandLine | undefined; let tsConfigFileUnitData: TestUnitData | undefined; for (let i = 0; i < testUnitData.length; i++) { const data = testUnitData[i]; if (getConfigNameFromFileName(data.name)) { - const configJson = ts.parseJsonText(data.name, data.content); + const configJson = parseJsonText(data.name, data.content); assert.isTrue(configJson.endOfFileToken !== undefined); - let baseDir = ts.normalizePath(ts.getDirectoryPath(data.name)); + let baseDir = normalizePath(getDirectoryPath(data.name)); if (rootDir) { - baseDir = ts.getNormalizedAbsolutePath(baseDir, rootDir); + baseDir = getNormalizedAbsolutePath(baseDir, rootDir); } - tsConfig = ts.parseJsonSourceFileConfigFileContent(configJson, parseConfigHost, baseDir); + tsConfig = parseJsonSourceFileConfigFileContent(configJson, parseConfigHost, baseDir); tsConfig.options.configFilePath = data.name; tsConfigFileUnitData = data; // delete entry from the list - ts.orderedRemoveItemAt(testUnitData, i); + orderedRemoveItemAt(testUnitData, i); break; } @@ -1384,7 +1400,7 @@ namespace Harness { if (require && opts && opts.PrintDiff) { const Diff = require("diff"); const patch = Diff.createTwoFilesPatch("Expected", "Actual", expected, actual, "The current baseline", "The new version"); - throw new Error(`The baseline file ${relativeFileName} has changed.${ts.ForegroundColorEscapeSequences.Grey}\n\n${patch}`); + throw new Error(`The baseline file ${relativeFileName} has changed.${ForegroundColorEscapeSequences.Grey}\n\n${patch}`); } else { throw new Error(`The baseline file ${relativeFileName} has changed.`); @@ -1403,7 +1419,7 @@ namespace Harness { export function runMultifileBaseline(relativeFileBase: string, extension: string, generateContent: () => IterableIterator<[string, string, number]> | IterableIterator<[string, string]> | null, opts?: BaselineOptions, referencedExtensions?: string[]): void { const gen = generateContent(); - const writtenFiles = ts.createMap(); + const writtenFiles = createMap(); const errors: Error[] = []; // eslint-disable-next-line no-null/no-null @@ -1428,7 +1444,7 @@ namespace Harness { let existing = IO.readDirectory(referenceDir, referencedExtensions || [extension]); if (extension === ".ts" || referencedExtensions && referencedExtensions.indexOf(".ts") > -1 && referencedExtensions.indexOf(".d.ts") === -1) { // special-case and filter .d.ts out of .ts results - existing = existing.filter(f => !ts.endsWith(f, ".d.ts")); + existing = existing.filter(f => !endsWith(f, ".d.ts")); } const missing: string[] = []; for (const name of existing) { @@ -1452,7 +1468,7 @@ namespace Harness { errorMsg += "\n"; } if (missing.length) { - const writtenFilesArray = ts.arrayFrom(writtenFiles.keys()); + const writtenFilesArray = arrayFrom(writtenFiles.keys()); errorMsg += `Baseline missing ${missing.length} files:${"\n " + missing.slice(0, 5).join("\n ") + (missing.length > 5 ? "\n" + ` and ${missing.length - 5} more` : "") + "\n"}Written ${writtenFiles.size} files:${"\n " + writtenFilesArray.slice(0, 5).join("\n ") + (writtenFilesArray.length > 5 ? "\n" + ` and ${writtenFilesArray.length - 5} more` : "")}`; } throw new Error(errorMsg); @@ -1462,8 +1478,8 @@ namespace Harness { export function isDefaultLibraryFile(filePath: string): boolean { // We need to make sure that the filePath is prefixed with "lib." not just containing "lib." and end with ".d.ts" - const fileName = ts.getBaseFileName(ts.normalizeSlashes(filePath)); - return ts.startsWith(fileName, "lib.") && ts.endsWith(fileName, ts.Extension.Dts); + const fileName = getBaseFileName(normalizeSlashes(filePath)); + return startsWith(fileName, "lib.") && endsWith(fileName, Extension.Dts); } export function isBuiltFile(filePath: string): boolean { @@ -1472,14 +1488,14 @@ namespace Harness { } export function getDefaultLibraryFile(filePath: string, io: IO): Compiler.TestFile { - const libFile = userSpecifiedRoot + libFolder + ts.getBaseFileName(ts.normalizeSlashes(filePath)); + const libFile = userSpecifiedRoot + libFolder + getBaseFileName(normalizeSlashes(filePath)); return { unitName: libFile, content: io.readFile(libFile)! }; } export function getConfigNameFromFileName(filename: string): "tsconfig.json" | "jsconfig.json" | undefined { - const flc = ts.getBaseFileName(filename).toLowerCase(); - return ts.find(["tsconfig.json" as "tsconfig.json", "jsconfig.json" as "jsconfig.json"], x => x === flc); + const flc = getBaseFileName(filename).toLowerCase(); + return find(["tsconfig.json" as "tsconfig.json", "jsconfig.json" as "jsconfig.json"], x => x === flc); } if (Error) (Error).stackTraceLimit = 100; -} + diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 78acc177b8cc4..5fd62141ea94e 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -1,6 +1,24 @@ -namespace Harness.LanguageService { - - export function makeDefaultProxy(info: ts.server.PluginCreateInfo): ts.LanguageService { +import { LanguageService, IScriptSnapshot, HostCancellationToken, Classifier, PreProcessedFileInfo, LanguageServiceHost, EndOfLineState, Classifications, ClassificationResult, ClassificationInfo, ClassifiedSpan, CompletionInfo, FormatCodeOptions, CompletionEntryDetails, QuickInfo, SignatureHelpItemsOptions, SignatureHelpItems, RenameInfoOptions, RenameInfo, SelectionRange, RenameLocation, DefinitionInfo, DefinitionInfoAndBoundSpan, ImplementationLocation, ReferenceEntry, ReferencedSymbol, NavigateToItem, NavigationBarItem, NavigationTree, OutliningSpan, TodoCommentDescriptor, TodoComment, EditorOptions, TextChange, TextInsertion, RefactorEditInfo, ApplicableRefactorInfo, OrganizeImportsScope, FormatCodeSettings, FileTextChanges } from "../services/types"; +import { TextChangeRange, LineAndCharacter, ScriptKind, CompilerOptions, ModuleResolutionHost, ResolvedTypeReferenceDirective, OperationCanceledException, DiagnosticWithLocation, Diagnostic, TextSpan, UserPreferences, Program, SourceFile, RequireResult, DiagnosticCategory } from "../compiler/types"; +import { computeLineStarts, computeLineAndCharacterOfPosition, computePositionOfLineAndCharacter } from "../compiler/scanner"; +import { createTextChangeRange, createTextSpanFromBounds, unchangedTextChangeRange, collapseTextChangeRangesAcrossMultipleVersions, resolveModuleName, resolveTypeReferenceDirective, EmitOutput } from "../../built/local/compiler"; +import { ScriptSnapshotShim, LanguageServiceShimHost, CoreServicesShimHost, ClassifierShim, LanguageServiceShim, TypeScriptServicesFactory, ShimsFileReference } from "../services/shims"; +import { virtualFileSystemRoot, harnessNewLine, Compiler, mockHash } from "./harnessIO"; +import { getDefaultCompilerOptions, createLanguageService } from "../services/services"; +import { getDirectoryPath, toPath } from "../compiler/path"; +import { getPathUpdater, DocumentHighlights } from "../../built/local/services"; +import { createGetCanonicalFileName, notImplemented, noop, forEach, stringContains } from "../compiler/core"; +import { assert } from "console"; +import { isAnySupportedFileExtension, hasJSFileExtension } from "../compiler/utilities"; +import { createClassifier } from "../services/classifier"; +import { preProcessFile } from "../services/preProcess"; +import { MapLike } from "../compiler/corePublic"; +import { getSnapshotText } from "../services/utilities"; +import { sys, FileWatcher } from "../compiler/sys"; +import { Debug } from "../compiler/debug"; + + + export function makeDefaultProxy(info: server.PluginCreateInfo): LanguageService { const proxy = Object.create(/*prototype*/ null); // eslint-disable-line no-null/no-null const langSvc: any = info.languageService; for (const k of Object.keys(langSvc)) { @@ -14,7 +32,7 @@ namespace Harness.LanguageService { export class ScriptInfo { public version = 1; - public editRanges: { length: number; textChangeRange: ts.TextChangeRange; }[] = []; + public editRanges: { length: number; textChangeRange: TextChangeRange; }[] = []; private lineMap: number[] | undefined; constructor(public fileName: string, public content: string, public isRootFile: boolean) { @@ -27,7 +45,7 @@ namespace Harness.LanguageService { } public getLineMap(): number[] { - return this.lineMap || (this.lineMap = ts.computeLineStarts(this.content)); + return this.lineMap || (this.lineMap = computeLineStarts(this.content)); } public updateContent(content: string): void { @@ -46,29 +64,29 @@ namespace Harness.LanguageService { // Store edit range + new length of script this.editRanges.push({ length: this.content.length, - textChangeRange: ts.createTextChangeRange( - ts.createTextSpanFromBounds(start, end), newText.length) + textChangeRange: createTextChangeRange( + createTextSpanFromBounds(start, end), newText.length) }); // Update version # this.version++; } - public getTextChangeRangeBetweenVersions(startVersion: number, endVersion: number): ts.TextChangeRange { + public getTextChangeRangeBetweenVersions(startVersion: number, endVersion: number): TextChangeRange { if (startVersion === endVersion) { // No edits! - return ts.unchangedTextChangeRange; + return unchangedTextChangeRange; } const initialEditRangeIndex = this.editRanges.length - (this.version - startVersion); const lastEditRangeIndex = this.editRanges.length - (this.version - endVersion); const entries = this.editRanges.slice(initialEditRangeIndex, lastEditRangeIndex); - return ts.collapseTextChangeRangesAcrossMultipleVersions(entries.map(e => e.textChangeRange)); + return collapseTextChangeRangesAcrossMultipleVersions(entries.map(e => e.textChangeRange)); } } - class ScriptSnapshot implements ts.IScriptSnapshot { + class ScriptSnapshot implements IScriptSnapshot { public textSnapshot: string; public version: number; @@ -85,14 +103,14 @@ namespace Harness.LanguageService { return this.textSnapshot.length; } - public getChangeRange(oldScript: ts.IScriptSnapshot): ts.TextChangeRange { + public getChangeRange(oldScript: IScriptSnapshot): TextChangeRange { const oldShim = oldScript; return this.scriptInfo.getTextChangeRangeBetweenVersions(oldShim.version, this.version); } } - class ScriptSnapshotProxy implements ts.ScriptSnapshotShim { - constructor(private readonly scriptSnapshot: ts.IScriptSnapshot) { + class ScriptSnapshotProxy implements ScriptSnapshotShim { + constructor(private readonly scriptSnapshot: IScriptSnapshot) { } public getText(start: number, end: number): string { @@ -103,13 +121,13 @@ namespace Harness.LanguageService { return this.scriptSnapshot.getLength(); } - public getChangeRange(oldScript: ts.ScriptSnapshotShim): string | undefined { + public getChangeRange(oldScript: ScriptSnapshotShim): string | undefined { const range = this.scriptSnapshot.getChangeRange((oldScript as ScriptSnapshotProxy).scriptSnapshot); return range && JSON.stringify(range); } } - class DefaultHostCancellationToken implements ts.HostCancellationToken { + class DefaultHostCancellationToken implements HostCancellationToken { public static readonly instance = new DefaultHostCancellationToken(); public isCancellationRequested() { @@ -119,19 +137,19 @@ namespace Harness.LanguageService { export interface LanguageServiceAdapter { getHost(): LanguageServiceAdapterHost; - getLanguageService(): ts.LanguageService; - getClassifier(): ts.Classifier; - getPreProcessedFileInfo(fileName: string, fileContents: string): ts.PreProcessedFileInfo; + getLanguageService(): LanguageService; + getClassifier(): Classifier; + getPreProcessedFileInfo(fileName: string, fileContents: string): PreProcessedFileInfo; } export abstract class LanguageServiceAdapterHost { public readonly sys = new fakes.System(new vfs.FileSystem(/*ignoreCase*/ true, { cwd: virtualFileSystemRoot })); - public typesRegistry: ts.Map | undefined; - private scriptInfos: collections.SortedMap; + public typesRegistry: Map | undefined; + private scriptInfos: SortedMap; constructor(protected cancellationToken = DefaultHostCancellationToken.instance, - protected settings = ts.getDefaultCompilerOptions()) { - this.scriptInfos = new collections.SortedMap({ comparer: this.vfs.stringComparer, sort: "insertion" }); + protected settings = getDefaultCompilerOptions()) { + this.scriptInfos = new SortedMap({ comparer: this.vfs.stringComparer, sort: "insertion" }); } public get vfs() { @@ -165,10 +183,10 @@ namespace Harness.LanguageService { } public renameFileOrDirectory(oldPath: string, newPath: string): void { - this.vfs.mkdirpSync(ts.getDirectoryPath(newPath)); + this.vfs.mkdirpSync(getDirectoryPath(newPath)); this.vfs.renameSync(oldPath, newPath); - const updater = ts.getPathUpdater(oldPath, newPath, ts.createGetCanonicalFileName(this.useCaseSensitiveFileNames()), /*sourceMapper*/ undefined); + const updater = getPathUpdater(oldPath, newPath, createGetCanonicalFileName(this.useCaseSensitiveFileNames()), /*sourceMapper*/ undefined); this.scriptInfos.forEach((scriptInfo, key) => { const newFileName = updater(key); if (newFileName !== undefined) { @@ -197,16 +215,16 @@ namespace Harness.LanguageService { * @param line 0 based index * @param col 0 based index */ - public positionToLineAndCharacter(fileName: string, position: number): ts.LineAndCharacter { + public positionToLineAndCharacter(fileName: string, position: number): LineAndCharacter { const script: ScriptInfo = this.getScriptInfo(fileName)!; assert.isOk(script); - return ts.computeLineAndCharacterOfPosition(script.getLineMap(), position); + return computeLineAndCharacterOfPosition(script.getLineMap(), position); } - public lineAndCharacterToPosition(fileName: string, lineAndCharacter: ts.LineAndCharacter): number { + public lineAndCharacterToPosition(fileName: string, lineAndCharacter: LineAndCharacter): number { const script: ScriptInfo = this.getScriptInfo(fileName)!; assert.isOk(script); - return ts.computePositionOfLineAndCharacter(script.getLineMap(), lineAndCharacter.line, lineAndCharacter.character); + return computePositionOfLineAndCharacter(script.getLineMap(), lineAndCharacter.line, lineAndCharacter.character); } useCaseSensitiveFileNames() { @@ -215,7 +233,7 @@ namespace Harness.LanguageService { } /// Native adapter - class NativeLanguageServiceHost extends LanguageServiceAdapterHost implements ts.LanguageServiceHost, LanguageServiceAdapterHost { + class NativeLanguageServiceHost extends LanguageServiceAdapterHost implements LanguageServiceHost, LanguageServiceAdapterHost { isKnownTypesPackageName(name: string): boolean { return !!this.typesRegistry && this.typesRegistry.has(name); } @@ -224,7 +242,7 @@ namespace Harness.LanguageService { return "/Library/Caches/typescript"; } - installPackage = ts.notImplemented; + installPackage = notImplemented; getCompilationSettings() { return this.settings; } @@ -239,15 +257,15 @@ namespace Harness.LanguageService { getDefaultLibFileName(): string { return Compiler.defaultLibFileName; } getScriptFileNames(): string[] { - return this.getFilenames().filter(ts.isAnySupportedFileExtension); + return this.getFilenames().filter(isAnySupportedFileExtension); } - getScriptSnapshot(fileName: string): ts.IScriptSnapshot | undefined { + getScriptSnapshot(fileName: string): IScriptSnapshot | undefined { const script = this.getScriptInfo(fileName); return script ? new ScriptSnapshot(script) : undefined; } - getScriptKind(): ts.ScriptKind { return ts.ScriptKind.Unknown; } + getScriptKind(): ScriptKind { return ScriptKind.Unknown; } getScriptVersion(fileName: string): string { const script = this.getScriptInfo(fileName); @@ -278,36 +296,36 @@ namespace Harness.LanguageService { return 0; } - log = ts.noop; - trace = ts.noop; - error = ts.noop; + log = noop; + trace = noop; + error = noop; } export class NativeLanguageServiceAdapter implements LanguageServiceAdapter { private host: NativeLanguageServiceHost; - constructor(cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) { + constructor(cancellationToken?: HostCancellationToken, options?: CompilerOptions) { this.host = new NativeLanguageServiceHost(cancellationToken, options); } getHost(): LanguageServiceAdapterHost { return this.host; } - getLanguageService(): ts.LanguageService { return ts.createLanguageService(this.host); } - getClassifier(): ts.Classifier { return ts.createClassifier(); } - getPreProcessedFileInfo(fileName: string, fileContents: string): ts.PreProcessedFileInfo { return ts.preProcessFile(fileContents, /* readImportFiles */ true, ts.hasJSFileExtension(fileName)); } + getLanguageService(): LanguageService { return createLanguageService(this.host); } + getClassifier(): Classifier { return createClassifier(); } + getPreProcessedFileInfo(fileName: string, fileContents: string): PreProcessedFileInfo { return preProcessFile(fileContents, /* readImportFiles */ true, hasJSFileExtension(fileName)); } } /// Shim adapter - class ShimLanguageServiceHost extends LanguageServiceAdapterHost implements ts.LanguageServiceShimHost, ts.CoreServicesShimHost { + class ShimLanguageServiceHost extends LanguageServiceAdapterHost implements LanguageServiceShimHost, CoreServicesShimHost { private nativeHost: NativeLanguageServiceHost; public getModuleResolutionsForFile: ((fileName: string) => string) | undefined; public getTypeReferenceDirectiveResolutionsForFile: ((fileName: string) => string) | undefined; - constructor(preprocessToResolve: boolean, cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) { + constructor(preprocessToResolve: boolean, cancellationToken?: HostCancellationToken, options?: CompilerOptions) { super(cancellationToken, options); this.nativeHost = new NativeLanguageServiceHost(cancellationToken, options); if (preprocessToResolve) { const compilerOptions = this.nativeHost.getCompilationSettings(); - const moduleResolutionHost: ts.ModuleResolutionHost = { + const moduleResolutionHost: ModuleResolutionHost = { fileExists: fileName => this.getScriptInfo(fileName) !== undefined, readFile: fileName => { const scriptInfo = this.getScriptInfo(fileName); @@ -316,10 +334,10 @@ namespace Harness.LanguageService { }; this.getModuleResolutionsForFile = (fileName) => { const scriptInfo = this.getScriptInfo(fileName)!; - const preprocessInfo = ts.preProcessFile(scriptInfo.content, /*readImportFiles*/ true); - const imports: ts.MapLike = {}; + const preprocessInfo = preProcessFile(scriptInfo.content, /*readImportFiles*/ true); + const imports: MapLike = {}; for (const module of preprocessInfo.importedFiles) { - const resolutionInfo = ts.resolveModuleName(module.fileName, fileName, compilerOptions, moduleResolutionHost); + const resolutionInfo = resolveModuleName(module.fileName, fileName, compilerOptions, moduleResolutionHost); if (resolutionInfo.resolvedModule) { imports[module.fileName] = resolutionInfo.resolvedModule.resolvedFileName; } @@ -329,11 +347,11 @@ namespace Harness.LanguageService { this.getTypeReferenceDirectiveResolutionsForFile = (fileName) => { const scriptInfo = this.getScriptInfo(fileName); if (scriptInfo) { - const preprocessInfo = ts.preProcessFile(scriptInfo.content, /*readImportFiles*/ false); - const resolutions: ts.MapLike = {}; + const preprocessInfo = preProcessFile(scriptInfo.content, /*readImportFiles*/ false); + const resolutions: MapLike = {}; const settings = this.nativeHost.getCompilationSettings(); for (const typeReferenceDirective of preprocessInfo.typeReferenceDirectives) { - const resolutionInfo = ts.resolveTypeReferenceDirective(typeReferenceDirective.fileName, fileName, settings, moduleResolutionHost); + const resolutionInfo = resolveTypeReferenceDirective(typeReferenceDirective.fileName, fileName, settings, moduleResolutionHost); if (resolutionInfo.resolvedTypeReferenceDirective!.resolvedFileName) { resolutions[typeReferenceDirective.fileName] = resolutionInfo.resolvedTypeReferenceDirective!; } @@ -351,29 +369,29 @@ namespace Harness.LanguageService { getScriptInfo(fileName: string): ScriptInfo | undefined { return this.nativeHost.getScriptInfo(fileName); } addScript(fileName: string, content: string, isRootFile: boolean): void { this.nativeHost.addScript(fileName, content, isRootFile); } editScript(fileName: string, start: number, end: number, newText: string): void { this.nativeHost.editScript(fileName, start, end, newText); } - positionToLineAndCharacter(fileName: string, position: number): ts.LineAndCharacter { return this.nativeHost.positionToLineAndCharacter(fileName, position); } + positionToLineAndCharacter(fileName: string, position: number): LineAndCharacter { return this.nativeHost.positionToLineAndCharacter(fileName, position); } getCompilationSettings(): string { return JSON.stringify(this.nativeHost.getCompilationSettings()); } - getCancellationToken(): ts.HostCancellationToken { return this.nativeHost.getCancellationToken(); } + getCancellationToken(): HostCancellationToken { return this.nativeHost.getCancellationToken(); } getCurrentDirectory(): string { return this.nativeHost.getCurrentDirectory(); } getDirectories(path: string): string { return JSON.stringify(this.nativeHost.getDirectories(path)); } getDefaultLibFileName(): string { return this.nativeHost.getDefaultLibFileName(); } getScriptFileNames(): string { return JSON.stringify(this.nativeHost.getScriptFileNames()); } - getScriptSnapshot(fileName: string): ts.ScriptSnapshotShim { + getScriptSnapshot(fileName: string): ScriptSnapshotShim { const nativeScriptSnapshot = this.nativeHost.getScriptSnapshot(fileName)!; // TODO: GH#18217 return nativeScriptSnapshot && new ScriptSnapshotProxy(nativeScriptSnapshot); } - getScriptKind(): ts.ScriptKind { return this.nativeHost.getScriptKind(); } + getScriptKind(): ScriptKind { return this.nativeHost.getScriptKind(); } getScriptVersion(fileName: string): string { return this.nativeHost.getScriptVersion(fileName); } getLocalizedDiagnosticMessages(): string { return JSON.stringify({}); } - readDirectory = ts.notImplemented; - readDirectoryNames = ts.notImplemented; - readFileNames = ts.notImplemented; + readDirectory = notImplemented; + readDirectoryNames = notImplemented; + readFileNames = notImplemented; fileExists(fileName: string) { return this.getScriptInfo(fileName) !== undefined; } readFile(fileName: string) { const snapshot = this.nativeHost.getScriptSnapshot(fileName); - return snapshot && ts.getSnapshotText(snapshot); + return snapshot && getSnapshotText(snapshot); } log(s: string): void { this.nativeHost.log(s); } trace(s: string): void { this.nativeHost.trace(s); } @@ -384,15 +402,15 @@ namespace Harness.LanguageService { } } - class ClassifierShimProxy implements ts.Classifier { - constructor(private shim: ts.ClassifierShim) { + class ClassifierShimProxy implements Classifier { + constructor(private shim: ClassifierShim) { } - getEncodedLexicalClassifications(_text: string, _lexState: ts.EndOfLineState, _classifyKeywordsInGenerics?: boolean): ts.Classifications { - return ts.notImplemented(); + getEncodedLexicalClassifications(_text: string, _lexState: EndOfLineState, _classifyKeywordsInGenerics?: boolean): Classifications { + return notImplemented(); } - getClassificationsForLine(text: string, lexState: ts.EndOfLineState, classifyKeywordsInGenerics?: boolean): ts.ClassificationResult { + getClassificationsForLine(text: string, lexState: EndOfLineState, classifyKeywordsInGenerics?: boolean): ClassificationResult { const result = this.shim.getClassificationsForLine(text, lexState, classifyKeywordsInGenerics).split("\n"); - const entries: ts.ClassificationInfo[] = []; + const entries: ClassificationInfo[] = []; let i = 0; let position = 0; @@ -422,126 +440,126 @@ namespace Harness.LanguageService { throw new Error("Language Service Shim Error: " + JSON.stringify(parsedResult.error)); } else if (parsedResult.canceled) { - throw new ts.OperationCanceledException(); + throw new OperationCanceledException(); } return parsedResult.result; } - class LanguageServiceShimProxy implements ts.LanguageService { - constructor(private shim: ts.LanguageServiceShim) { + class LanguageServiceShimProxy implements LanguageService { + constructor(private shim: LanguageServiceShim) { } cleanupSemanticCache(): void { this.shim.cleanupSemanticCache(); } - getSyntacticDiagnostics(fileName: string): ts.DiagnosticWithLocation[] { + getSyntacticDiagnostics(fileName: string): DiagnosticWithLocation[] { return unwrapJSONCallResult(this.shim.getSyntacticDiagnostics(fileName)); } - getSemanticDiagnostics(fileName: string): ts.DiagnosticWithLocation[] { + getSemanticDiagnostics(fileName: string): DiagnosticWithLocation[] { return unwrapJSONCallResult(this.shim.getSemanticDiagnostics(fileName)); } - getSuggestionDiagnostics(fileName: string): ts.DiagnosticWithLocation[] { + getSuggestionDiagnostics(fileName: string): DiagnosticWithLocation[] { return unwrapJSONCallResult(this.shim.getSuggestionDiagnostics(fileName)); } - getCompilerOptionsDiagnostics(): ts.Diagnostic[] { + getCompilerOptionsDiagnostics(): Diagnostic[] { return unwrapJSONCallResult(this.shim.getCompilerOptionsDiagnostics()); } - getSyntacticClassifications(fileName: string, span: ts.TextSpan): ts.ClassifiedSpan[] { + getSyntacticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[] { return unwrapJSONCallResult(this.shim.getSyntacticClassifications(fileName, span.start, span.length)); } - getSemanticClassifications(fileName: string, span: ts.TextSpan): ts.ClassifiedSpan[] { + getSemanticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[] { return unwrapJSONCallResult(this.shim.getSemanticClassifications(fileName, span.start, span.length)); } - getEncodedSyntacticClassifications(fileName: string, span: ts.TextSpan): ts.Classifications { + getEncodedSyntacticClassifications(fileName: string, span: TextSpan): Classifications { return unwrapJSONCallResult(this.shim.getEncodedSyntacticClassifications(fileName, span.start, span.length)); } - getEncodedSemanticClassifications(fileName: string, span: ts.TextSpan): ts.Classifications { + getEncodedSemanticClassifications(fileName: string, span: TextSpan): Classifications { return unwrapJSONCallResult(this.shim.getEncodedSemanticClassifications(fileName, span.start, span.length)); } - getCompletionsAtPosition(fileName: string, position: number, preferences: ts.UserPreferences | undefined): ts.CompletionInfo { + getCompletionsAtPosition(fileName: string, position: number, preferences: UserPreferences | undefined): CompletionInfo { return unwrapJSONCallResult(this.shim.getCompletionsAtPosition(fileName, position, preferences)); } - getCompletionEntryDetails(fileName: string, position: number, entryName: string, formatOptions: ts.FormatCodeOptions | undefined, source: string | undefined, preferences: ts.UserPreferences | undefined): ts.CompletionEntryDetails { + getCompletionEntryDetails(fileName: string, position: number, entryName: string, formatOptions: FormatCodeOptions | undefined, source: string | undefined, preferences: UserPreferences | undefined): CompletionEntryDetails { return unwrapJSONCallResult(this.shim.getCompletionEntryDetails(fileName, position, entryName, JSON.stringify(formatOptions), source, preferences)); } - getCompletionEntrySymbol(): ts.Symbol { + getCompletionEntrySymbol(): Symbol { throw new Error("getCompletionEntrySymbol not implemented across the shim layer."); } - getQuickInfoAtPosition(fileName: string, position: number): ts.QuickInfo { + getQuickInfoAtPosition(fileName: string, position: number): QuickInfo { return unwrapJSONCallResult(this.shim.getQuickInfoAtPosition(fileName, position)); } - getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): ts.TextSpan { + getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan { return unwrapJSONCallResult(this.shim.getNameOrDottedNameSpan(fileName, startPos, endPos)); } - getBreakpointStatementAtPosition(fileName: string, position: number): ts.TextSpan { + getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan { return unwrapJSONCallResult(this.shim.getBreakpointStatementAtPosition(fileName, position)); } - getSignatureHelpItems(fileName: string, position: number, options: ts.SignatureHelpItemsOptions | undefined): ts.SignatureHelpItems { + getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems { return unwrapJSONCallResult(this.shim.getSignatureHelpItems(fileName, position, options)); } - getRenameInfo(fileName: string, position: number, options?: ts.RenameInfoOptions): ts.RenameInfo { + getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo { return unwrapJSONCallResult(this.shim.getRenameInfo(fileName, position, options)); } - getSmartSelectionRange(fileName: string, position: number): ts.SelectionRange { + getSmartSelectionRange(fileName: string, position: number): SelectionRange { return unwrapJSONCallResult(this.shim.getSmartSelectionRange(fileName, position)); } - findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): ts.RenameLocation[] { + findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): RenameLocation[] { return unwrapJSONCallResult(this.shim.findRenameLocations(fileName, position, findInStrings, findInComments, providePrefixAndSuffixTextForRename)); } - getDefinitionAtPosition(fileName: string, position: number): ts.DefinitionInfo[] { + getDefinitionAtPosition(fileName: string, position: number): DefinitionInfo[] { return unwrapJSONCallResult(this.shim.getDefinitionAtPosition(fileName, position)); } - getDefinitionAndBoundSpan(fileName: string, position: number): ts.DefinitionInfoAndBoundSpan { + getDefinitionAndBoundSpan(fileName: string, position: number): DefinitionInfoAndBoundSpan { return unwrapJSONCallResult(this.shim.getDefinitionAndBoundSpan(fileName, position)); } - getTypeDefinitionAtPosition(fileName: string, position: number): ts.DefinitionInfo[] { + getTypeDefinitionAtPosition(fileName: string, position: number): DefinitionInfo[] { return unwrapJSONCallResult(this.shim.getTypeDefinitionAtPosition(fileName, position)); } - getImplementationAtPosition(fileName: string, position: number): ts.ImplementationLocation[] { + getImplementationAtPosition(fileName: string, position: number): ImplementationLocation[] { return unwrapJSONCallResult(this.shim.getImplementationAtPosition(fileName, position)); } - getReferencesAtPosition(fileName: string, position: number): ts.ReferenceEntry[] { + getReferencesAtPosition(fileName: string, position: number): ReferenceEntry[] { return unwrapJSONCallResult(this.shim.getReferencesAtPosition(fileName, position)); } - findReferences(fileName: string, position: number): ts.ReferencedSymbol[] { + findReferences(fileName: string, position: number): ReferencedSymbol[] { return unwrapJSONCallResult(this.shim.findReferences(fileName, position)); } - getOccurrencesAtPosition(fileName: string, position: number): ts.ReferenceEntry[] { + getOccurrencesAtPosition(fileName: string, position: number): ReferenceEntry[] { return unwrapJSONCallResult(this.shim.getOccurrencesAtPosition(fileName, position)); } - getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): ts.DocumentHighlights[] { + getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] { return unwrapJSONCallResult(this.shim.getDocumentHighlights(fileName, position, JSON.stringify(filesToSearch))); } - getNavigateToItems(searchValue: string): ts.NavigateToItem[] { + getNavigateToItems(searchValue: string): NavigateToItem[] { return unwrapJSONCallResult(this.shim.getNavigateToItems(searchValue)); } - getNavigationBarItems(fileName: string): ts.NavigationBarItem[] { + getNavigationBarItems(fileName: string): NavigationBarItem[] { return unwrapJSONCallResult(this.shim.getNavigationBarItems(fileName)); } - getNavigationTree(fileName: string): ts.NavigationTree { + getNavigationTree(fileName: string): NavigationTree { return unwrapJSONCallResult(this.shim.getNavigationTree(fileName)); } - getOutliningSpans(fileName: string): ts.OutliningSpan[] { + getOutliningSpans(fileName: string): OutliningSpan[] { return unwrapJSONCallResult(this.shim.getOutliningSpans(fileName)); } - getTodoComments(fileName: string, descriptors: ts.TodoCommentDescriptor[]): ts.TodoComment[] { + getTodoComments(fileName: string, descriptors: TodoCommentDescriptor[]): TodoComment[] { return unwrapJSONCallResult(this.shim.getTodoComments(fileName, JSON.stringify(descriptors))); } - getBraceMatchingAtPosition(fileName: string, position: number): ts.TextSpan[] { + getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[] { return unwrapJSONCallResult(this.shim.getBraceMatchingAtPosition(fileName, position)); } - getIndentationAtPosition(fileName: string, position: number, options: ts.EditorOptions): number { + getIndentationAtPosition(fileName: string, position: number, options: EditorOptions): number { return unwrapJSONCallResult(this.shim.getIndentationAtPosition(fileName, position, JSON.stringify(options))); } - getFormattingEditsForRange(fileName: string, start: number, end: number, options: ts.FormatCodeOptions): ts.TextChange[] { + getFormattingEditsForRange(fileName: string, start: number, end: number, options: FormatCodeOptions): TextChange[] { return unwrapJSONCallResult(this.shim.getFormattingEditsForRange(fileName, start, end, JSON.stringify(options))); } - getFormattingEditsForDocument(fileName: string, options: ts.FormatCodeOptions): ts.TextChange[] { + getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions): TextChange[] { return unwrapJSONCallResult(this.shim.getFormattingEditsForDocument(fileName, JSON.stringify(options))); } - getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: ts.FormatCodeOptions): ts.TextChange[] { + getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions): TextChange[] { return unwrapJSONCallResult(this.shim.getFormattingEditsAfterKeystroke(fileName, position, key, JSON.stringify(options))); } - getDocCommentTemplateAtPosition(fileName: string, position: number): ts.TextInsertion { + getDocCommentTemplateAtPosition(fileName: string, position: number): TextInsertion { return unwrapJSONCallResult(this.shim.getDocCommentTemplateAtPosition(fileName, position)); } isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean { @@ -550,27 +568,27 @@ namespace Harness.LanguageService { getJsxClosingTagAtPosition(): never { throw new Error("Not supported on the shim."); } - getSpanOfEnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): ts.TextSpan { + getSpanOfEnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): TextSpan { return unwrapJSONCallResult(this.shim.getSpanOfEnclosingComment(fileName, position, onlyMultiLine)); } getCodeFixesAtPosition(): never { throw new Error("Not supported on the shim."); } - getCombinedCodeFix = ts.notImplemented; - applyCodeActionCommand = ts.notImplemented; - getCodeFixDiagnostics(): ts.Diagnostic[] { + getCombinedCodeFix = notImplemented; + applyCodeActionCommand = notImplemented; + getCodeFixDiagnostics(): Diagnostic[] { throw new Error("Not supported on the shim."); } - getEditsForRefactor(): ts.RefactorEditInfo { + getEditsForRefactor(): RefactorEditInfo { throw new Error("Not supported on the shim."); } - getApplicableRefactors(): ts.ApplicableRefactorInfo[] { + getApplicableRefactors(): ApplicableRefactorInfo[] { throw new Error("Not supported on the shim."); } - organizeImports(_scope: ts.OrganizeImportsScope, _formatOptions: ts.FormatCodeSettings): readonly ts.FileTextChanges[] { + organizeImports(_scope: OrganizeImportsScope, _formatOptions: FormatCodeSettings): readonly FileTextChanges[] { throw new Error("Not supported on the shim."); } - getEditsForFileRename(): readonly ts.FileTextChanges[] { + getEditsForFileRename(): readonly FileTextChanges[] { throw new Error("Not supported on the shim."); } prepareCallHierarchy(fileName: string, position: number) { @@ -582,50 +600,50 @@ namespace Harness.LanguageService { provideCallHierarchyOutgoingCalls(fileName: string, position: number) { return unwrapJSONCallResult(this.shim.provideCallHierarchyOutgoingCalls(fileName, position)); } - getEmitOutput(fileName: string): ts.EmitOutput { + getEmitOutput(fileName: string): EmitOutput { return unwrapJSONCallResult(this.shim.getEmitOutput(fileName)); } - getProgram(): ts.Program { + getProgram(): Program { throw new Error("Program can not be marshaled across the shim layer."); } - getAutoImportProvider(): ts.Program | undefined { + getAutoImportProvider(): Program | undefined { throw new Error("Program can not be marshaled across the shim layer."); } - getNonBoundSourceFile(): ts.SourceFile { + getNonBoundSourceFile(): SourceFile { throw new Error("SourceFile can not be marshaled across the shim layer."); } - getSourceFile(): ts.SourceFile { + getSourceFile(): SourceFile { throw new Error("SourceFile can not be marshaled across the shim layer."); } getSourceMapper(): never { - return ts.notImplemented(); + return notImplemented(); } clearSourceMapperCache(): never { - return ts.notImplemented(); + return notImplemented(); } dispose(): void { this.shim.dispose({}); } } export class ShimLanguageServiceAdapter implements LanguageServiceAdapter { private host: ShimLanguageServiceHost; - private factory: ts.TypeScriptServicesFactory; - constructor(preprocessToResolve: boolean, cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) { + private factory: TypeScriptServicesFactory; + constructor(preprocessToResolve: boolean, cancellationToken?: HostCancellationToken, options?: CompilerOptions) { this.host = new ShimLanguageServiceHost(preprocessToResolve, cancellationToken, options); - this.factory = new ts.TypeScriptServicesFactory(); + this.factory = new TypeScriptServicesFactory(); } getHost() { return this.host; } - getLanguageService(): ts.LanguageService { return new LanguageServiceShimProxy(this.factory.createLanguageServiceShim(this.host)); } - getClassifier(): ts.Classifier { return new ClassifierShimProxy(this.factory.createClassifierShim(this.host)); } - getPreProcessedFileInfo(fileName: string, fileContents: string): ts.PreProcessedFileInfo { + getLanguageService(): LanguageService { return new LanguageServiceShimProxy(this.factory.createLanguageServiceShim(this.host)); } + getClassifier(): Classifier { return new ClassifierShimProxy(this.factory.createClassifierShim(this.host)); } + getPreProcessedFileInfo(fileName: string, fileContents: string): PreProcessedFileInfo { const coreServicesShim = this.factory.createCoreServicesShim(this.host); const shimResult: { - referencedFiles: ts.ShimsFileReference[]; - typeReferenceDirectives: ts.ShimsFileReference[]; - importedFiles: ts.ShimsFileReference[]; + referencedFiles: ShimsFileReference[]; + typeReferenceDirectives: ShimsFileReference[]; + importedFiles: ShimsFileReference[]; isLibFile: boolean; - } = unwrapJSONCallResult(coreServicesShim.getPreProcessedFileInfo(fileName, ts.ScriptSnapshot.fromString(fileContents))); + } = unwrapJSONCallResult(coreServicesShim.getPreProcessedFileInfo(fileName, ScriptSnapshot.fromString(fileContents))); - const convertResult: ts.PreProcessedFileInfo = { + const convertResult: PreProcessedFileInfo = { referencedFiles: [], importedFiles: [], ambientExternalModules: [], @@ -634,7 +652,7 @@ namespace Harness.LanguageService { libReferenceDirectives: [] }; - ts.forEach(shimResult.referencedFiles, refFile => { + forEach(shimResult.referencedFiles, refFile => { convertResult.referencedFiles.push({ fileName: refFile.path, pos: refFile.position, @@ -642,7 +660,7 @@ namespace Harness.LanguageService { }); }); - ts.forEach(shimResult.importedFiles, importedFile => { + forEach(shimResult.importedFiles, importedFile => { convertResult.importedFiles.push({ fileName: importedFile.path, pos: importedFile.position, @@ -650,7 +668,7 @@ namespace Harness.LanguageService { }); }); - ts.forEach(shimResult.typeReferenceDirectives, typeRefDirective => { + forEach(shimResult.typeReferenceDirectives, typeRefDirective => { convertResult.importedFiles.push({ fileName: typeRefDirective.path, pos: typeRefDirective.position, @@ -662,17 +680,17 @@ namespace Harness.LanguageService { } // Server adapter - class SessionClientHost extends NativeLanguageServiceHost implements ts.server.SessionClientHost { - private client!: ts.server.SessionClient; + class SessionClientHost extends NativeLanguageServiceHost implements server.SessionClientHost { + private client!: server.SessionClient; - constructor(cancellationToken: ts.HostCancellationToken | undefined, settings: ts.CompilerOptions | undefined) { + constructor(cancellationToken: HostCancellationToken | undefined, settings: CompilerOptions | undefined) { super(cancellationToken, settings); } - onMessage = ts.noop; - writeMessage = ts.noop; + onMessage = noop; + writeMessage = noop; - setClient(client: ts.server.SessionClient) { + setClient(client: server.SessionClient) { this.client = client; } @@ -688,7 +706,7 @@ namespace Harness.LanguageService { } } - class SessionServerHost implements ts.server.ServerHost, ts.server.Logger { + class SessionServerHost implements server.ServerHost, server.Logger { args: string[] = []; newLine: string; useCaseSensitiveFileNames = false; @@ -697,22 +715,22 @@ namespace Harness.LanguageService { this.newLine = this.host.getNewLine(); } - onMessage = ts.noop; - writeMessage = ts.noop; // overridden + onMessage = noop; + writeMessage = noop; // overridden write(message: string): void { this.writeMessage(message); } readFile(fileName: string): string | undefined { - if (ts.stringContains(fileName, Compiler.defaultLibFileName)) { + if (stringContains(fileName, Compiler.defaultLibFileName)) { fileName = Compiler.defaultLibFileName; } const snapshot = this.host.getScriptSnapshot(fileName); - return snapshot && ts.getSnapshotText(snapshot); + return snapshot && getSnapshotText(snapshot); } - writeFile = ts.noop; + writeFile = noop; resolvePath(path: string): string { return path; @@ -731,10 +749,10 @@ namespace Harness.LanguageService { return ""; } - exit = ts.noop; + exit = noop; createDirectory(_directoryName: string): void { - return ts.notImplemented(); + return notImplemented(); } getCurrentDirectory(): string { @@ -746,22 +764,22 @@ namespace Harness.LanguageService { } getEnvironmentVariable(name: string): string { - return ts.sys.getEnvironmentVariable(name); + return sys.getEnvironmentVariable(name); } readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[] { return this.host.readDirectory(path, extensions, exclude, include, depth); } - watchFile(): ts.FileWatcher { - return { close: ts.noop }; + watchFile(): FileWatcher { + return { close: noop }; } - watchDirectory(): ts.FileWatcher { - return { close: ts.noop }; + watchDirectory(): FileWatcher { + return { close: noop }; } - close = ts.noop; + close = noop; info(message: string): void { this.host.log(message); @@ -783,8 +801,8 @@ namespace Harness.LanguageService { return false; } - startGroup() { throw ts.notImplemented(); } - endGroup() { throw ts.notImplemented(); } + startGroup() { throw notImplemented(); } + endGroup() { throw notImplemented(); } perftrc(message: string): void { return this.host.log(message); @@ -814,14 +832,14 @@ namespace Harness.LanguageService { return mockHash(s); } - require(_initialDir: string, _moduleName: string): ts.RequireResult { + require(_initialDir: string, _moduleName: string): RequireResult { switch (_moduleName) { // Adds to the Quick Info a fixed string and a string from the config file // and replaces the first display part case "quickinfo-augmeneter": return { module: () => ({ - create(info: ts.server.PluginCreateInfo) { + create(info: server.PluginCreateInfo) { const proxy = makeDefaultProxy(info); const langSvc: any = info.languageService; // eslint-disable-next-line only-arrow-functions @@ -855,13 +873,13 @@ namespace Harness.LanguageService { case "diagnostic-adder": return { module: () => ({ - create(info: ts.server.PluginCreateInfo) { + create(info: server.PluginCreateInfo) { const proxy = makeDefaultProxy(info); proxy.getSemanticDiagnostics = filename => { const prev = info.languageService.getSemanticDiagnostics(filename); - const sourceFile: ts.SourceFile = info.project.getSourceFile(ts.toPath(filename, /*basePath*/ undefined, ts.createGetCanonicalFileName(info.serverHost.useCaseSensitiveFileNames)))!; + const sourceFile: SourceFile = info.project.getSourceFile(toPath(filename, /*basePath*/ undefined, createGetCanonicalFileName(info.serverHost.useCaseSensitiveFileNames)))!; prev.push({ - category: ts.DiagnosticCategory.Warning, + category: DiagnosticCategory.Warning, file: sourceFile, code: 9999, length: 3, @@ -881,14 +899,14 @@ namespace Harness.LanguageService { let customMessage = "default message"; return { module: () => ({ - create(info: ts.server.PluginCreateInfo) { + create(info: server.PluginCreateInfo) { customMessage = info.config.message; const proxy = makeDefaultProxy(info); proxy.getSemanticDiagnostics = filename => { const prev = info.languageService.getSemanticDiagnostics(filename); - const sourceFile: ts.SourceFile = info.project.getSourceFile(ts.toPath(filename, /*basePath*/ undefined, ts.createGetCanonicalFileName(info.serverHost.useCaseSensitiveFileNames)))!; + const sourceFile: SourceFile = info.project.getSourceFile(toPath(filename, /*basePath*/ undefined, createGetCanonicalFileName(info.serverHost.useCaseSensitiveFileNames)))!; prev.push({ - category: ts.DiagnosticCategory.Error, + category: DiagnosticCategory.Error, file: sourceFile, code: 9999, length: 3, @@ -915,27 +933,27 @@ namespace Harness.LanguageService { } } - class FourslashSession extends ts.server.Session { + class FourslashSession extends server.Session { getText(fileName: string) { - return ts.getSnapshotText(this.projectService.getDefaultProjectForFile(ts.server.toNormalizedPath(fileName), /*ensureProject*/ true)!.getScriptSnapshot(fileName)!); + return getSnapshotText(this.projectService.getDefaultProjectForFile(server.toNormalizedPath(fileName), /*ensureProject*/ true)!.getScriptSnapshot(fileName)!); } } export class ServerLanguageServiceAdapter implements LanguageServiceAdapter { private host: SessionClientHost; - private client: ts.server.SessionClient; + private client: server.SessionClient; private server: FourslashSession; - constructor(cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) { + constructor(cancellationToken?: HostCancellationToken, options?: CompilerOptions) { // This is the main host that tests use to direct tests const clientHost = new SessionClientHost(cancellationToken, options); - const client = new ts.server.SessionClient(clientHost); + const client = new server.SessionClient(clientHost); // This host is just a proxy for the clientHost, it uses the client // host to answer server queries about files on disk const serverHost = new SessionServerHost(clientHost); - const opts: ts.server.SessionOptions = { + const opts: server.SessionOptions = { host: serverHost, - cancellationToken: ts.server.nullCancellationToken, + cancellationToken: server.nullCancellationToken, useSingleInferredProject: false, useInferredProjectPerProjectRoot: false, typingsInstaller: undefined!, // TODO: GH#18217 @@ -960,13 +978,13 @@ namespace Harness.LanguageService { this.host = clientHost; } getHost() { return this.host; } - getLanguageService(): ts.LanguageService { return this.client; } - getClassifier(): ts.Classifier { throw new Error("getClassifier is not available using the server interface."); } - getPreProcessedFileInfo(): ts.PreProcessedFileInfo { throw new Error("getPreProcessedFileInfo is not available using the server interface."); } + getLanguageService(): LanguageService { return this.client; } + getClassifier(): Classifier { throw new Error("getClassifier is not available using the server interface."); } + getPreProcessedFileInfo(): PreProcessedFileInfo { throw new Error("getPreProcessedFileInfo is not available using the server interface."); } assertTextConsistent(fileName: string) { const serverText = this.server.getText(fileName); const clientText = this.host.readFile(fileName); - ts.Debug.assert(serverText === clientText, [ + Debug.assert(serverText === clientText, [ "Server and client text are inconsistent.", "", "\x1b[1mServer\x1b[0m\x1b[31m:", @@ -976,7 +994,7 @@ namespace Harness.LanguageService { clientText, "", "This probably means something is wrong with the fourslash infrastructure, not with the test." - ].join(ts.sys.newLine)); + ].join(sys.newLine)); } } -} + diff --git a/src/harness/harnessUtils.ts b/src/harness/harnessUtils.ts index c63afb323a901..231fdc7320d7b 100644 --- a/src/harness/harnessUtils.ts +++ b/src/harness/harnessUtils.ts @@ -1,11 +1,19 @@ -namespace Utils { +import { sys } from "../compiler/sys"; +import { AnyFunction, createMap, createGetCanonicalFileName, forEach } from "../compiler/core"; +import { Node, Diagnostic, diagnosticCategoryName, SourceFile, Identifier, NodeFlags, SyntaxKind, NodeArray } from "../compiler/types"; +import { assert } from "console"; +import { forEachChild } from "../compiler/parser"; +import { flattenDiagnosticMessageText } from "../compiler/program"; +import { isString } from "util"; +import { containsParseError } from "../compiler/utilities"; + export function encodeString(s: string): string { - return ts.sys.bufferFrom!(s).toString("utf8"); + return sys.bufferFrom!(s).toString("utf8"); } export function byteLength(s: string, encoding?: string): number { // stub implementation if Buffer is not available (in-browser case) - return Buffer.byteLength(s, encoding as ts.BufferEncoding | undefined); + return Buffer.byteLength(s, encoding as BufferEncoding | undefined); } export function evalFile(fileContents: string, fileName: string, nodeContext?: any) { @@ -51,8 +59,8 @@ namespace Utils { return content; } - export function memoize(f: T, memoKey: (...anything: any[]) => string): T { - const cache = ts.createMap(); + export function memoize(f: T, memoKey: (...anything: any[]) => string): T { + const cache = createMap(); return (function (this: any, ...args: any[]) { const key = memoKey(...args); @@ -67,15 +75,15 @@ namespace Utils { }); } - export const canonicalizeForHarness = ts.createGetCanonicalFileName(/*caseSensitive*/ false); // This is done so tests work on windows _and_ linux + export const canonicalizeForHarness = createGetCanonicalFileName(/*caseSensitive*/ false); // This is done so tests work on windows _and_ linux - export function assertInvariants(node: ts.Node | undefined, parent: ts.Node | undefined) { - const queue: [ts.Node | undefined, ts.Node | undefined][] = [[node, parent]]; + export function assertInvariants(node: Node | undefined, parent: Node | undefined) { + const queue: [Node | undefined, Node | undefined][] = [[node, parent]]; for (const [node, parent] of queue) { assertInvariantsWorker(node, parent); } - function assertInvariantsWorker(node: ts.Node | undefined, parent: ts.Node | undefined): void { + function assertInvariantsWorker(node: Node | undefined, parent: Node | undefined): void { if (node) { assert.isFalse(node.pos < 0, "node.pos < 0"); assert.isFalse(node.end < 0, "node.end < 0"); @@ -88,13 +96,13 @@ namespace Utils { assert.isFalse(node.end > parent.end, "node.end > parent.end"); } - ts.forEachChild(node, child => { + forEachChild(node, child => { queue.push([child, node]); }); // Make sure each of the children is in order. let currentPos = 0; - ts.forEachChild(node, + forEachChild(node, child => { assert.isFalse(child.pos < currentPos, "child.pos < currentPos"); currentPos = child.end; @@ -113,7 +121,7 @@ namespace Utils { }); const childNodesAndArrays: any[] = []; - ts.forEachChild(node, child => { childNodesAndArrays.push(child); }, array => { childNodesAndArrays.push(array); }); + forEachChild(node, child => { childNodesAndArrays.push(child); }, array => { childNodesAndArrays.push(array); }); for (const childName in node) { if (childName === "parent" || childName === "nextContainer" || childName === "modifiers" || childName === "externalModuleIndicator" || @@ -135,25 +143,25 @@ namespace Utils { return a !== undefined && typeof a.pos === "number"; } - export function convertDiagnostics(diagnostics: readonly ts.Diagnostic[]) { + export function convertDiagnostics(diagnostics: readonly Diagnostic[]) { return diagnostics.map(convertDiagnostic); } - function convertDiagnostic(diagnostic: ts.Diagnostic) { + function convertDiagnostic(diagnostic: Diagnostic) { return { start: diagnostic.start, length: diagnostic.length, - messageText: ts.flattenDiagnosticMessageText(diagnostic.messageText, Harness.IO.newLine()), - category: ts.diagnosticCategoryName(diagnostic, /*lowerCase*/ false), + messageText: flattenDiagnosticMessageText(diagnostic.messageText, Harness.IO.newLine()), + category: diagnosticCategoryName(diagnostic, /*lowerCase*/ false), code: diagnostic.code }; } - export function sourceFileToJSON(file: ts.Node): string { + export function sourceFileToJSON(file: Node): string { return JSON.stringify(file, (_, v) => isNodeOrArray(v) ? serializeNode(v) : v, " "); function getKindName(k: number | string): string { - if (ts.isString(k)) { + if (isString(k)) { return k; } @@ -179,7 +187,7 @@ namespace Utils { } let result = ""; - ts.forEach(Object.getOwnPropertyNames(flags), (v: any) => { + forEach(Object.getOwnPropertyNames(flags), (v: any) => { if (isFinite(v)) { v = +v; if (f === +v) { @@ -200,13 +208,13 @@ namespace Utils { function getNodeFlagName(f: number) { return getFlagName((ts).NodeFlags, f); } - function serializeNode(n: ts.Node): any { + function serializeNode(n: Node): any { const o: any = { kind: getKindName(n.kind) }; - if (ts.containsParseError(n)) { + if (containsParseError(n)) { o.containsParseError = true; } - for (const propertyName of Object.getOwnPropertyNames(n) as readonly (keyof ts.SourceFile | keyof ts.Identifier)[]) { + for (const propertyName of Object.getOwnPropertyNames(n) as readonly (keyof SourceFile | keyof Identifier)[]) { switch (propertyName) { case "parent": case "symbol": @@ -229,7 +237,7 @@ namespace Utils { // Clear the flags that are produced by aggregating child values. That is ephemeral // data we don't care about in the dump. We only care what the parser set directly // on the AST. - const flags = n.flags & ~(ts.NodeFlags.JavaScriptFile | ts.NodeFlags.HasAggregatedChildData); + const flags = n.flags & ~(NodeFlags.JavaScriptFile | NodeFlags.HasAggregatedChildData); if (flags) { o[propertyName] = getNodeFlagName(flags); } @@ -247,7 +255,7 @@ namespace Utils { case "text": // Include 'text' field for identifiers/literals, but not for source files. - if (n.kind !== ts.SyntaxKind.SourceFile) { + if (n.kind !== SyntaxKind.SourceFile) { o[propertyName] = (n)[propertyName]; } break; @@ -261,7 +269,7 @@ namespace Utils { } } - export function assertDiagnosticsEquals(array1: readonly ts.Diagnostic[], array2: readonly ts.Diagnostic[]) { + export function assertDiagnosticsEquals(array1: readonly Diagnostic[], array2: readonly Diagnostic[]) { if (array1 === array2) { return; } @@ -278,14 +286,14 @@ namespace Utils { assert.equal(d1.start, d2.start, "d1.start !== d2.start"); assert.equal(d1.length, d2.length, "d1.length !== d2.length"); assert.equal( - ts.flattenDiagnosticMessageText(d1.messageText, Harness.IO.newLine()), - ts.flattenDiagnosticMessageText(d2.messageText, Harness.IO.newLine()), "d1.messageText !== d2.messageText"); + flattenDiagnosticMessageText(d1.messageText, Harness.IO.newLine()), + flattenDiagnosticMessageText(d2.messageText, Harness.IO.newLine()), "d1.messageText !== d2.messageText"); assert.equal(d1.category, d2.category, "d1.category !== d2.category"); assert.equal(d1.code, d2.code, "d1.code !== d2.code"); } } - export function assertStructuralEquals(node1: ts.Node, node2: ts.Node) { + export function assertStructuralEquals(node1: Node, node2: Node) { if (node1 === node2) { return; } @@ -298,25 +306,25 @@ namespace Utils { // call this on both nodes to ensure all propagated flags have been set (and thus can be // compared). - assert.equal(ts.containsParseError(node1), ts.containsParseError(node2)); - assert.equal(node1.flags & ~ts.NodeFlags.ReachabilityAndEmitFlags, node2.flags & ~ts.NodeFlags.ReachabilityAndEmitFlags, "node1.flags !== node2.flags"); + assert.equal(containsParseError(node1), containsParseError(node2)); + assert.equal(node1.flags & ~NodeFlags.ReachabilityAndEmitFlags, node2.flags & ~NodeFlags.ReachabilityAndEmitFlags, "node1.flags !== node2.flags"); - ts.forEachChild(node1, + forEachChild(node1, child1 => { const childName = findChildName(node1, child1); - const child2: ts.Node = (node2)[childName]; + const child2: Node = (node2)[childName]; assertStructuralEquals(child1, child2); }, array1 => { const childName = findChildName(node1, array1); - const array2: ts.NodeArray = (node2)[childName]; + const array2: NodeArray = (node2)[childName]; assertArrayStructuralEquals(array1, array2); }); } - function assertArrayStructuralEquals(array1: ts.NodeArray, array2: ts.NodeArray) { + function assertArrayStructuralEquals(array1: NodeArray, array2: NodeArray) { if (array1 === array2) { return; } @@ -367,7 +375,7 @@ namespace Utils { harnessFrameCount++; } - line = line.replace(/\bfile:\/\/\/(.*?)(?=(:\d+)*($|\)))/, (_, path) => ts.sys.resolvePath(path)); + line = line.replace(/\bfile:\/\/\/(.*?)(?=(:\d+)*($|\)))/, (_, path) => sys.resolvePath(path)); frameCount++; } @@ -395,4 +403,4 @@ namespace Utils { function isHarness(line: string) { return /[\\/]src[\\/]harness[\\/]|[\\/]run\.js/.test(line); } -} + diff --git a/src/harness/loggedIO.ts b/src/harness/loggedIO.ts index fa2c1235d71c5..8056e459c4a4c 100644 --- a/src/harness/loggedIO.ts +++ b/src/harness/loggedIO.ts @@ -1,4 +1,9 @@ -namespace Playback { +import { System } from "../compiler/sys"; +import { combinePaths, toPath, normalizeSlashes, isRootedDiskPath, normalizePath } from "../compiler/path"; +import { createGetCanonicalFileName, startsWith, forEach, createMap, flatMap, AnyFunction } from "../compiler/core"; +import { CompilerOptions } from "../compiler/types"; +import { parseCommandLine } from "../../built/local/compiler"; +export namespace Playback { interface FileInformation { contents?: string; contentsPath?: string; @@ -83,7 +88,7 @@ namespace Playback { let recordLog: IoLog | undefined; let replayLog: IoLog | undefined; - let replayFilesRead: ts.Map | undefined; + let replayFilesRead: Map | undefined; let recordLogFileNameBase = ""; interface Memoized { @@ -106,7 +111,7 @@ namespace Playback { export interface PlaybackIO extends Harness.IO, PlaybackControl { } - export interface PlaybackSystem extends ts.System, PlaybackControl { } + export interface PlaybackSystem extends System, PlaybackControl { } function createEmptyLog(): IoLog { return { @@ -128,16 +133,16 @@ namespace Playback { }; } - export function newStyleLogIntoOldStyleLog(log: IoLog, host: ts.System | Harness.IO, baseName: string) { + export function newStyleLogIntoOldStyleLog(log: IoLog, host: System | Harness.IO, baseName: string) { for (const file of log.filesAppended) { if (file.contentsPath) { - file.contents = host.readFile(ts.combinePaths(baseName, file.contentsPath)); + file.contents = host.readFile(combinePaths(baseName, file.contentsPath)); delete file.contentsPath; } } for (const file of log.filesWritten) { if (file.contentsPath) { - file.contents = host.readFile(ts.combinePaths(baseName, file.contentsPath)); + file.contents = host.readFile(combinePaths(baseName, file.contentsPath)); delete file.contentsPath; } } @@ -146,17 +151,17 @@ namespace Playback { if (result.contentsPath) { // `readFile` strips away a BOM (and actually reinerprets the file contents according to the correct encoding) // - but this has the unfortunate sideeffect of removing the BOM from any outputs based on the file, so we readd it here. - result.contents = (result.bom || "") + host.readFile(ts.combinePaths(baseName, result.contentsPath)); + result.contents = (result.bom || "") + host.readFile(combinePaths(baseName, result.contentsPath)); delete result.contentsPath; } } return log; } - const canonicalizeForHarness = ts.createGetCanonicalFileName(/*caseSensitive*/ false); // This is done so tests work on windows _and_ linux + const canonicalizeForHarness = createGetCanonicalFileName(/*caseSensitive*/ false); // This is done so tests work on windows _and_ linux function sanitizeTestFilePath(name: string) { - const path = ts.toPath(ts.normalizeSlashes(name.replace(/[\^<>:"|?*%]/g, "_")).replace(/\.\.\//g, "__dotdot/"), "", canonicalizeForHarness); - if (ts.startsWith(path, "/")) { + const path = toPath(normalizeSlashes(name.replace(/[\^<>:"|?*%]/g, "_")).replace(/\.\.\//g, "__dotdot/"), "", canonicalizeForHarness); + if (startsWith(path, "/")) { return path.substring(1); } return path; @@ -166,8 +171,8 @@ namespace Playback { if (log.filesAppended) { for (const file of log.filesAppended) { if (file.contents !== undefined) { - file.contentsPath = ts.combinePaths("appended", sanitizeTestFilePath(file.path)); - writeFile(ts.combinePaths(baseTestName, file.contentsPath), file.contents); + file.contentsPath = combinePaths("appended", sanitizeTestFilePath(file.path)); + writeFile(combinePaths(baseTestName, file.contentsPath), file.contents); delete file.contents; } } @@ -175,8 +180,8 @@ namespace Playback { if (log.filesWritten) { for (const file of log.filesWritten) { if (file.contents !== undefined) { - file.contentsPath = ts.combinePaths("written", sanitizeTestFilePath(file.path)); - writeFile(ts.combinePaths(baseTestName, file.contentsPath), file.contents); + file.contentsPath = combinePaths("written", sanitizeTestFilePath(file.path)); + writeFile(combinePaths(baseTestName, file.contentsPath), file.contents); delete file.contents; } } @@ -186,8 +191,8 @@ namespace Playback { const result = file.result!; // TODO: GH#18217 const { contents } = result; if (contents !== undefined) { - result.contentsPath = ts.combinePaths("read", sanitizeTestFilePath(file.path)); - writeFile(ts.combinePaths(baseTestName, result.contentsPath), contents); + result.contentsPath = combinePaths("read", sanitizeTestFilePath(file.path)); + writeFile(combinePaths(baseTestName, result.contentsPath), contents); const len = contents.length; if (len >= 2 && contents.charCodeAt(0) === 0xfeff) { result.bom = "\ufeff"; @@ -205,10 +210,10 @@ namespace Playback { return log; } - function initWrapper(wrapper: PlaybackSystem, underlying: ts.System): void; + function initWrapper(wrapper: PlaybackSystem, underlying: System): void; function initWrapper(wrapper: PlaybackIO, underlying: Harness.IO): void; - function initWrapper(wrapper: PlaybackSystem | PlaybackIO, underlying: ts.System | Harness.IO): void { - ts.forEach(Object.keys(underlying), prop => { + function initWrapper(wrapper: PlaybackSystem | PlaybackIO, underlying: System | Harness.IO): void { + forEach(Object.keys(underlying), prop => { (wrapper)[prop] = (underlying)[prop]; }); @@ -219,9 +224,9 @@ namespace Playback { replayLog = log; // Remove non-found files from the log (shouldn't really need them, but we still record them for diagnostic purposes) replayLog.filesRead = replayLog.filesRead.filter(f => f.result!.contents !== undefined); - replayFilesRead = ts.createMap(); + replayFilesRead = createMap(); for (const file of replayLog.filesRead) { - replayFilesRead.set(ts.normalizeSlashes(file.path).toLowerCase(), file); + replayFilesRead.set(normalizeSlashes(file.path).toLowerCase(), file); } }; @@ -246,18 +251,18 @@ namespace Playback { if (recordLog !== undefined) { let i = 0; const getBase = () => recordLogFileNameBase + i; - while (underlying.fileExists(ts.combinePaths(getBase(), "test.json"))) i++; + while (underlying.fileExists(combinePaths(getBase(), "test.json"))) i++; const newLog = oldStyleLogIntoNewStyleLog(recordLog, (path, str) => underlying.writeFile(path, str), getBase()); - underlying.writeFile(ts.combinePaths(getBase(), "test.json"), JSON.stringify(newLog, null, 4)); // eslint-disable-line no-null/no-null + underlying.writeFile(combinePaths(getBase(), "test.json"), JSON.stringify(newLog, null, 4)); // eslint-disable-line no-null/no-null const syntheticTsconfig = generateTsconfig(newLog); if (syntheticTsconfig) { - underlying.writeFile(ts.combinePaths(getBase(), "tsconfig.json"), JSON.stringify(syntheticTsconfig, null, 4)); // eslint-disable-line no-null/no-null + underlying.writeFile(combinePaths(getBase(), "tsconfig.json"), JSON.stringify(syntheticTsconfig, null, 4)); // eslint-disable-line no-null/no-null } recordLog = undefined; } }; - function generateTsconfig(newLog: IoLog): undefined | { compilerOptions: ts.CompilerOptions, files: string[] } { + function generateTsconfig(newLog: IoLog): undefined | { compilerOptions: CompilerOptions, files: string[] } { if (newLog.filesRead.some(file => /tsconfig.+json$/.test(file.path))) { return; } @@ -270,7 +275,7 @@ namespace Playback { files.push(result.contentsPath); } } - return { compilerOptions: ts.parseCommandLine(newLog.arguments).options, files }; + return { compilerOptions: parseCommandLine(newLog.arguments).options, files }; } wrapper.fileExists = recordReplay(wrapper.fileExists, underlying)( @@ -312,7 +317,7 @@ namespace Playback { wrapper.resolvePath = recordReplay(wrapper.resolvePath, underlying)( path => callAndRecord(underlying.resolvePath(path), recordLog!.pathsResolved, { path }), - memoize(path => findResultByFields(replayLog!.pathsResolved, { path }, !ts.isRootedDiskPath(ts.normalizeSlashes(path)) && replayLog!.currentDirectory ? replayLog!.currentDirectory + "/" + path : ts.normalizeSlashes(path)))); + memoize(path => findResultByFields(replayLog!.pathsResolved, { path }, !isRootedDiskPath(normalizeSlashes(path)) && replayLog!.currentDirectory ? replayLog!.currentDirectory + "/" + path : normalizeSlashes(path)))); wrapper.readFile = recordReplay(wrapper.readFile, underlying)( (path: string) => { @@ -325,7 +330,7 @@ namespace Playback { wrapper.readDirectory = recordReplay(wrapper.readDirectory, underlying)( (path, extensions, exclude, include, depth) => { - const result = (underlying).readDirectory(path, extensions, exclude, include, depth); + const result = (underlying).readDirectory(path, extensions, exclude, include, depth); recordLog!.directoriesRead.push({ path, extensions, exclude, include, depth, result }); return result; }, @@ -334,9 +339,9 @@ namespace Playback { // if each of the directoriesRead has matched path with the given path (directory with same path but different extension will considered // different entry). // TODO (yuisu): We can certainly remove these once we recapture the RWC using new API - const normalizedPath = ts.normalizePath(path).toLowerCase(); - return ts.flatMap(replayLog!.directoriesRead, directory => { - if (ts.normalizeSlashes(directory.path).toLowerCase() === normalizedPath) { + const normalizedPath = normalizePath(path).toLowerCase(); + return flatMap(replayLog!.directoriesRead, directory => { + if (normalizeSlashes(directory.path).toLowerCase() === normalizedPath) { return directory.result; } }); @@ -361,7 +366,7 @@ namespace Playback { }; } - function recordReplay(original: T, underlying: any) { + function recordReplay(original: T, underlying: any) { function createWrapper(record: T, replay: T): T { // eslint-disable-next-line only-arrow-functions return (function () { @@ -404,7 +409,7 @@ namespace Playback { } function findFileByPath(expectedPath: string, throwFileNotFoundError: boolean): FileInformation | undefined { - const normalizedName = ts.normalizePath(expectedPath).toLowerCase(); + const normalizedName = normalizePath(expectedPath).toLowerCase(); // Try to find the result through normal fileName const result = replayFilesRead!.get(normalizedName); if (result) { @@ -441,7 +446,7 @@ namespace Playback { } } - export function wrapSystem(underlying: ts.System): PlaybackSystem { + export function wrapSystem(underlying: System): PlaybackSystem { const wrapper: PlaybackSystem = {}; initWrapper(wrapper, underlying); return wrapper; diff --git a/src/harness/runnerbase.ts b/src/harness/runnerbase.ts index 1af3a903ad5a8..bb79a855c08e0 100644 --- a/src/harness/runnerbase.ts +++ b/src/harness/runnerbase.ts @@ -1,4 +1,7 @@ -namespace Harness { +import { FileBasedTest, IO, userSpecifiedRoot } from "./harnessIO"; +import { map } from "../compiler/core"; +import { normalizeSlashes, getBaseFileName } from "../compiler/path"; + export type TestRunnerKind = CompilerTestKind | FourslashTestKind | "project" | "rwc" | "test262" | "user" | "dt" | "docker"; export type CompilerTestKind = "conformance" | "compiler"; export type FourslashTestKind = "fourslash" | "fourslash-shims" | "fourslash-shims-pp" | "fourslash-server"; @@ -26,7 +29,7 @@ namespace Harness { } public enumerateFiles(folder: string, regex?: RegExp, options?: { recursive: boolean }): string[] { - return ts.map(IO.listFiles(userSpecifiedRoot + folder, regex, { recursive: (options ? options.recursive : false) }), ts.normalizeSlashes); + return map(IO.listFiles(userSpecifiedRoot + folder, regex, { recursive: (options ? options.recursive : false) }), normalizeSlashes); } abstract kind(): TestRunnerKind; @@ -52,7 +55,7 @@ namespace Harness { /** Replaces instances of full paths with fileNames only */ static removeFullPaths(path: string) { // If its a full path (starts with "C:" or "/") replace with just the filename - let fixedPath = /^(\w:|\/)/.test(path) ? ts.getBaseFileName(path) : path; + let fixedPath = /^(\w:|\/)/.test(path) ? getBaseFileName(path) : path; // when running in the browser the 'full path' is the host name, shows up in error baselines const localHost = /http:\/localhost:\d+/g; @@ -60,4 +63,4 @@ namespace Harness { return fixedPath; } } -} \ No newline at end of file + diff --git a/src/harness/sourceMapRecorder.ts b/src/harness/sourceMapRecorder.ts index 668c7812366bf..43cf467e8f1d8 100644 --- a/src/harness/sourceMapRecorder.ts +++ b/src/harness/sourceMapRecorder.ts @@ -1,35 +1,44 @@ -namespace Harness.SourceMapRecorder { +import { Mapping, MappingsDecoder, decodeMappings, tryGetSourceMappingURL, getLineInfo, isSourceMapping, sameMapping, tryParseRawSourceMap } from "../compiler/sourcemap"; +import { RawSourceMap, SourceMapEmitResult, Program, SourceFile, Extension } from "../compiler/types"; +import { Debug } from "../compiler/debug"; +import { Compiler } from "./harnessIO"; +import { assert } from "console"; +import { computeLineStarts } from "../compiler/scanner"; +import { endsWith, createMap } from "../compiler/core"; +import { System } from "../compiler/sys"; +import { getDirectoryPath, getNormalizedAbsolutePath } from "../compiler/path"; + interface SourceMapSpanWithDecodeErrors { - sourceMapSpan: ts.Mapping; + sourceMapSpan: Mapping; decodeErrors: string[] | undefined; } namespace SourceMapDecoder { let sourceMapMappings: string; let decodingIndex: number; - let mappings: ts.MappingsDecoder | undefined; + let mappings: MappingsDecoder | undefined; export interface DecodedMapping { - sourceMapSpan: ts.Mapping; + sourceMapSpan: Mapping; error?: string; } - export function initializeSourceMapDecoding(sourceMap: ts.RawSourceMap) { + export function initializeSourceMapDecoding(sourceMap: RawSourceMap) { decodingIndex = 0; sourceMapMappings = sourceMap.mappings; - mappings = ts.decodeMappings(sourceMap.mappings); + mappings = decodeMappings(sourceMap.mappings); } export function decodeNextEncodedSourceMapSpan(): DecodedMapping { - if (!mappings) return ts.Debug.fail("not initialized"); + if (!mappings) return Debug.fail("not initialized"); const result = mappings.next(); if (result.done) return { error: mappings.error || "No encoded entry found", sourceMapSpan: mappings.state }; return { sourceMapSpan: result.value }; } export function hasCompletedDecoding() { - if (!mappings) return ts.Debug.fail("not initialized"); + if (!mappings) return Debug.fail("not initialized"); return mappings.pos === sourceMapMappings.length; } @@ -53,7 +62,7 @@ namespace Harness.SourceMapRecorder { let nextJsLineToWrite: number; let spanMarkerContinues: boolean; - export function initializeSourceMapSpanWriter(sourceMapRecordWriter: Compiler.WriterAggregator, sourceMap: ts.RawSourceMap, currentJsFile: documents.TextDocument) { + export function initializeSourceMapSpanWriter(sourceMapRecordWriter: Compiler.WriterAggregator, sourceMap: RawSourceMap, currentJsFile: documents.TextDocument) { sourceMapRecorder = sourceMapRecordWriter; sourceMapSources = sourceMap.sources; sourceMapNames = sourceMap.names; @@ -69,7 +78,7 @@ namespace Harness.SourceMapRecorder { SourceMapDecoder.initializeSourceMapDecoding(sourceMap); sourceMapRecorder.WriteLine("==================================================================="); sourceMapRecorder.WriteLine("JsFile: " + sourceMap.file); - sourceMapRecorder.WriteLine("mapUrl: " + ts.tryGetSourceMappingURL(ts.getLineInfo(jsFile.text, jsLineMap))); + sourceMapRecorder.WriteLine("mapUrl: " + tryGetSourceMappingURL(getLineInfo(jsFile.text, jsLineMap))); sourceMapRecorder.WriteLine("sourceRoot: " + sourceMap.sourceRoot); sourceMapRecorder.WriteLine("sources: " + sourceMap.sources); if (sourceMap.sourcesContent) { @@ -78,9 +87,9 @@ namespace Harness.SourceMapRecorder { sourceMapRecorder.WriteLine("==================================================================="); } - function getSourceMapSpanString(mapEntry: ts.Mapping, getAbsentNameIndex?: boolean) { + function getSourceMapSpanString(mapEntry: Mapping, getAbsentNameIndex?: boolean) { let mapString = "Emitted(" + (mapEntry.generatedLine + 1) + ", " + (mapEntry.generatedCharacter + 1) + ")"; - if (ts.isSourceMapping(mapEntry)) { + if (isSourceMapping(mapEntry)) { mapString += " Source(" + (mapEntry.sourceLine + 1) + ", " + (mapEntry.sourceCharacter + 1) + ") + SourceIndex(" + mapEntry.sourceIndex + ")"; if (mapEntry.nameIndex! >= 0 && mapEntry.nameIndex! < sourceMapNames!.length) { mapString += " name (" + sourceMapNames![mapEntry.nameIndex!] + ")"; @@ -95,11 +104,11 @@ namespace Harness.SourceMapRecorder { return mapString; } - export function recordSourceMapSpan(sourceMapSpan: ts.Mapping) { + export function recordSourceMapSpan(sourceMapSpan: Mapping) { // verify the decoded span is same as the new span const decodeResult = SourceMapDecoder.decodeNextEncodedSourceMapSpan(); let decodeErrors: string[] | undefined; - if (typeof decodeResult.error === "string" || !ts.sameMapping(decodeResult.sourceMapSpan, sourceMapSpan)) { + if (typeof decodeResult.error === "string" || !sameMapping(decodeResult.sourceMapSpan, sourceMapSpan)) { if (decodeResult.error) { decodeErrors = ["!!^^ !!^^ There was decoding error in the sourcemap at this location: " + decodeResult.error]; } @@ -117,7 +126,7 @@ namespace Harness.SourceMapRecorder { spansOnSingleLine.push({ sourceMapSpan, decodeErrors }); } - export function recordNewSourceFileSpan(sourceMapSpan: ts.Mapping, newSourceFileCode: string) { + export function recordNewSourceFileSpan(sourceMapSpan: Mapping, newSourceFileCode: string) { let continuesLine = false; if (spansOnSingleLine.length > 0 && spansOnSingleLine[0].sourceMapSpan.generatedCharacter === sourceMapSpan.generatedLine) { writeRecordedSpans(); @@ -134,7 +143,7 @@ namespace Harness.SourceMapRecorder { sourceMapRecorder.WriteLine("sourceFile:" + sourceMapSources[spansOnSingleLine[0].sourceMapSpan.sourceIndex!]); sourceMapRecorder.WriteLine("-------------------------------------------------------------------"); - tsLineMap = ts.computeLineStarts(newSourceFileCode); + tsLineMap = computeLineStarts(newSourceFileCode); tsCode = newSourceFileCode; prevWrittenSourcePos = 0; } @@ -233,7 +242,7 @@ namespace Harness.SourceMapRecorder { } } - const tsCodeLineMap = ts.computeLineStarts(sourceText); + const tsCodeLineMap = computeLineStarts(sourceText); for (let i = 0; i < tsCodeLineMap.length; i++) { writeSourceMapIndent(prevEmittedCol, i === 0 ? markerIds[index] : " >"); sourceMapRecorder.Write(getTextOfLine(i, tsCodeLineMap, sourceText)); @@ -275,14 +284,14 @@ namespace Harness.SourceMapRecorder { } } - export function getSourceMapRecord(sourceMapDataList: readonly ts.SourceMapEmitResult[], program: ts.Program, jsFiles: readonly documents.TextDocument[], declarationFiles: readonly documents.TextDocument[]) { + export function getSourceMapRecord(sourceMapDataList: readonly SourceMapEmitResult[], program: Program, jsFiles: readonly documents.TextDocument[], declarationFiles: readonly documents.TextDocument[]) { const sourceMapRecorder = new Compiler.WriterAggregator(); for (let i = 0; i < sourceMapDataList.length; i++) { const sourceMapData = sourceMapDataList[i]; - let prevSourceFile: ts.SourceFile | undefined; + let prevSourceFile: SourceFile | undefined; let currentFile: documents.TextDocument; - if (ts.endsWith(sourceMapData.sourceMap.file, ts.Extension.Dts)) { + if (endsWith(sourceMapData.sourceMap.file, Extension.Dts)) { if (sourceMapDataList.length > jsFiles.length) { currentFile = declarationFiles[Math.floor(i / 2)]; // When both kinds of source map are present, they alternate js/dts } @@ -300,10 +309,10 @@ namespace Harness.SourceMapRecorder { } SourceMapSpanWriter.initializeSourceMapSpanWriter(sourceMapRecorder, sourceMapData.sourceMap, currentFile); - const mapper = ts.decodeMappings(sourceMapData.sourceMap.mappings); + const mapper = decodeMappings(sourceMapData.sourceMap.mappings); for (let iterResult = mapper.next(); !iterResult.done; iterResult = mapper.next()) { const decodedSourceMapping = iterResult.value; - const currentSourceFile = ts.isSourceMapping(decodedSourceMapping) + const currentSourceFile = isSourceMapping(decodedSourceMapping) ? program.getSourceFile(sourceMapData.inputSourceFileNames[decodedSourceMapping.sourceIndex]) : undefined; if (currentSourceFile !== prevSourceFile) { @@ -322,23 +331,23 @@ namespace Harness.SourceMapRecorder { return sourceMapRecorder.lines.join("\r\n"); } - export function getSourceMapRecordWithSystem(sys: ts.System, sourceMapFile: string) { + export function getSourceMapRecordWithSystem(sys: System, sourceMapFile: string) { const sourceMapRecorder = new Compiler.WriterAggregator(); let prevSourceFile: documents.TextDocument | undefined; - const files = ts.createMap(); - const sourceMap = ts.tryParseRawSourceMap(sys.readFile(sourceMapFile, "utf8")!); + const files = createMap(); + const sourceMap = tryParseRawSourceMap(sys.readFile(sourceMapFile, "utf8")!); if (sourceMap) { - const mapDirectory = ts.getDirectoryPath(sourceMapFile); - const sourceRoot = sourceMap.sourceRoot ? ts.getNormalizedAbsolutePath(sourceMap.sourceRoot, mapDirectory) : mapDirectory; - const generatedAbsoluteFilePath = ts.getNormalizedAbsolutePath(sourceMap.file, mapDirectory); - const sourceFileAbsolutePaths = sourceMap.sources.map(source => ts.getNormalizedAbsolutePath(source, sourceRoot)); + const mapDirectory = getDirectoryPath(sourceMapFile); + const sourceRoot = sourceMap.sourceRoot ? getNormalizedAbsolutePath(sourceMap.sourceRoot, mapDirectory) : mapDirectory; + const generatedAbsoluteFilePath = getNormalizedAbsolutePath(sourceMap.file, mapDirectory); + const sourceFileAbsolutePaths = sourceMap.sources.map(source => getNormalizedAbsolutePath(source, sourceRoot)); const currentFile = getFile(generatedAbsoluteFilePath); SourceMapSpanWriter.initializeSourceMapSpanWriter(sourceMapRecorder, sourceMap, currentFile); - const mapper = ts.decodeMappings(sourceMap.mappings); + const mapper = decodeMappings(sourceMap.mappings); for (let iterResult = mapper.next(); !iterResult.done; iterResult = mapper.next()) { const decodedSourceMapping = iterResult.value; - const currentSourceFile = ts.isSourceMapping(decodedSourceMapping) + const currentSourceFile = isSourceMapping(decodedSourceMapping) ? getFile(sourceFileAbsolutePaths[decodedSourceMapping.sourceIndex]) : undefined; if (currentSourceFile !== prevSourceFile) { @@ -364,4 +373,4 @@ namespace Harness.SourceMapRecorder { return value; } } -} + diff --git a/src/harness/tsconfig.json b/src/harness/tsconfig.json index 70ccbb36b92c4..f68f597e92096 100644 --- a/src/harness/tsconfig.json +++ b/src/harness/tsconfig.json @@ -15,7 +15,7 @@ { "path": "../services" }, { "path": "../jsTyping" }, { "path": "../server" }, - { "path": "../typingsInstallerCore" } + { "path": "../typingsInstallerCore" }, ], "files": [ diff --git a/src/harness/typeWriter.ts b/src/harness/typeWriter.ts index b45f87a19f275..bef85bccbf068 100644 --- a/src/harness/typeWriter.ts +++ b/src/harness/typeWriter.ts @@ -1,4 +1,11 @@ -namespace Harness { +import { Node, SourceFile, TypeChecker, Program, SyntaxKind, TypeFlags, IntrinsicType, TypeFormatFlags } from "../compiler/types"; +import { forEachChild } from "../compiler/parser"; +import { isExpressionNode, isDeclarationName, isIntrinsicJsxName, getSourceTextOfNodeFromSourceFile, isPartOfTypeNode, isExpressionWithTypeArgumentsInClassExtendsClause, isGlobalScopeAugmentation } from "../compiler/utilities"; +import { isImportSpecifier, isImportClause, isImportEqualsDeclaration, isExportAssignment, isExportSpecifier, isJsxOpeningElement, isJsxClosingElement, isJsxSelfClosingElement, isIdentifier, isTypeAliasDeclaration, isBindingElement, isPropertyAccessOrQualifiedName, isModuleDeclaration, isMetaProperty } from "../../built/local/compiler"; +import { skipTrivia } from "../compiler/scanner"; +import { getMeaningFromDeclaration, SemanticMeaning, isLabelName } from "../services/utilities"; +import { getBaseFileName } from "../compiler/path"; + export interface TypeWriterTypeResult { line: number; syntaxKind: number; @@ -21,25 +28,25 @@ namespace Harness { type?: string; } - function* forEachASTNode(node: ts.Node) { + function* forEachASTNode(node: Node) { const work = [node]; while (work.length) { const elem = work.pop()!; yield elem; - const resChildren: ts.Node[] = []; + const resChildren: Node[] = []; // push onto work queue in reverse order to maintain preorder traversal - ts.forEachChild(elem, c => { resChildren.unshift(c); }); + forEachChild(elem, c => { resChildren.unshift(c); }); work.push(...resChildren); } } export class TypeWriterWalker { - currentSourceFile!: ts.SourceFile; + currentSourceFile!: SourceFile; - private checker: ts.TypeChecker; + private checker: TypeChecker; - constructor(private program: ts.Program, fullTypeCheck: boolean, private hadErrorBaseline: boolean) { + constructor(private program: Program, fullTypeCheck: boolean, private hadErrorBaseline: boolean) { // Consider getting both the diagnostics checker and the non-diagnostics checker to verify // they are consistent. this.checker = fullTypeCheck @@ -65,12 +72,12 @@ namespace Harness { } } - private *visitNode(node: ts.Node, isSymbolWalk: boolean): IterableIterator { + private *visitNode(node: Node, isSymbolWalk: boolean): IterableIterator { const gen = forEachASTNode(node); let res = gen.next(); for (; !res.done; res = gen.next()) { const {value: node} = res; - if (ts.isExpressionNode(node) || node.kind === ts.SyntaxKind.Identifier || ts.isDeclarationName(node)) { + if (isExpressionNode(node) || node.kind === SyntaxKind.Identifier || isDeclarationName(node)) { const result = this.writeTypeOrSymbol(node, isSymbolWalk); if (result) { yield result; @@ -79,42 +86,42 @@ namespace Harness { } } - private isImportStatementName(node: ts.Node) { - if (ts.isImportSpecifier(node.parent) && (node.parent.name === node || node.parent.propertyName === node)) return true; - if (ts.isImportClause(node.parent) && node.parent.name === node) return true; - if (ts.isImportEqualsDeclaration(node.parent) && node.parent.name === node) return true; + private isImportStatementName(node: Node) { + if (isImportSpecifier(node.parent) && (node.parent.name === node || node.parent.propertyName === node)) return true; + if (isImportClause(node.parent) && node.parent.name === node) return true; + if (isImportEqualsDeclaration(node.parent) && node.parent.name === node) return true; return false; } - private isExportStatementName(node: ts.Node) { - if (ts.isExportAssignment(node.parent) && node.parent.expression === node) return true; - if (ts.isExportSpecifier(node.parent) && (node.parent.name === node || node.parent.propertyName === node)) return true; + private isExportStatementName(node: Node) { + if (isExportAssignment(node.parent) && node.parent.expression === node) return true; + if (isExportSpecifier(node.parent) && (node.parent.name === node || node.parent.propertyName === node)) return true; return false; } - private isIntrinsicJsxTag(node: ts.Node) { + private isIntrinsicJsxTag(node: Node) { const p = node.parent; - if (!(ts.isJsxOpeningElement(p) || ts.isJsxClosingElement(p) || ts.isJsxSelfClosingElement(p))) return false; + if (!(isJsxOpeningElement(p) || isJsxClosingElement(p) || isJsxSelfClosingElement(p))) return false; if (p.tagName !== node) return false; - return ts.isIntrinsicJsxName(node.getText()); + return isIntrinsicJsxName(node.getText()); } - private writeTypeOrSymbol(node: ts.Node, isSymbolWalk: boolean): TypeWriterResult | undefined { - const actualPos = ts.skipTrivia(this.currentSourceFile.text, node.pos); + private writeTypeOrSymbol(node: Node, isSymbolWalk: boolean): TypeWriterResult | undefined { + const actualPos = skipTrivia(this.currentSourceFile.text, node.pos); const lineAndCharacter = this.currentSourceFile.getLineAndCharacterOfPosition(actualPos); - const sourceText = ts.getSourceTextOfNodeFromSourceFile(this.currentSourceFile, node); + const sourceText = getSourceTextOfNodeFromSourceFile(this.currentSourceFile, node); if (!isSymbolWalk) { // Don't try to get the type of something that's already a type. // Exception for `T` in `type T = something` because that may evaluate to some interesting type. - if (ts.isPartOfTypeNode(node) || ts.isIdentifier(node) && !(ts.getMeaningFromDeclaration(node.parent) & ts.SemanticMeaning.Value) && !(ts.isTypeAliasDeclaration(node.parent) && node.parent.name === node)) { + if (isPartOfTypeNode(node) || isIdentifier(node) && !(getMeaningFromDeclaration(node.parent) & SemanticMeaning.Value) && !(isTypeAliasDeclaration(node.parent) && node.parent.name === node)) { return undefined; } // Workaround to ensure we output 'C' instead of 'typeof C' for base class expressions // let type = this.checker.getTypeAtLocation(node); - let type = ts.isExpressionWithTypeArgumentsInClassExtendsClause(node.parent) ? this.checker.getTypeAtLocation(node.parent) : undefined; - if (!type || type.flags & ts.TypeFlags.Any) type = this.checker.getTypeAtLocation(node); + let type = isExpressionWithTypeArgumentsInClassExtendsClause(node.parent) ? this.checker.getTypeAtLocation(node.parent) : undefined; + if (!type || type.flags & TypeFlags.Any) type = this.checker.getTypeAtLocation(node); const typeString = // Distinguish `errorType`s from `any`s; but only if the file has no errors. // Additionally, @@ -129,17 +136,17 @@ namespace Harness { // return `error`s via `getTypeAtLocation` // But this is generally expected, so we don't call those out, either (!this.hadErrorBaseline && - type.flags & ts.TypeFlags.Any && - !ts.isBindingElement(node.parent) && - !ts.isPropertyAccessOrQualifiedName(node.parent) && - !ts.isLabelName(node) && - !(ts.isModuleDeclaration(node.parent) && ts.isGlobalScopeAugmentation(node.parent)) && - !ts.isMetaProperty(node.parent) && + type.flags & TypeFlags.Any && + !isBindingElement(node.parent) && + !isPropertyAccessOrQualifiedName(node.parent) && + !isLabelName(node) && + !(isModuleDeclaration(node.parent) && isGlobalScopeAugmentation(node.parent)) && + !isMetaProperty(node.parent) && !this.isImportStatementName(node) && !this.isExportStatementName(node) && !this.isIntrinsicJsxTag(node)) ? - (type as ts.IntrinsicType).intrinsicName : - this.checker.typeToString(type, node.parent, ts.TypeFormatFlags.NoTruncation | ts.TypeFormatFlags.AllowUniqueESSymbolType); + (type as IntrinsicType).intrinsicName : + this.checker.typeToString(type, node.parent, TypeFormatFlags.NoTruncation | TypeFormatFlags.AllowUniqueESSymbolType); return { line: lineAndCharacter.line, syntaxKind: node.kind, @@ -167,7 +174,7 @@ namespace Harness { } const declSourceFile = declaration.getSourceFile(); const declLineAndCharacter = declSourceFile.getLineAndCharacterOfPosition(declaration.pos); - const fileName = ts.getBaseFileName(declSourceFile.fileName); + const fileName = getBaseFileName(declSourceFile.fileName); const isLibFile = /lib(.*)\.d\.ts/i.test(fileName); const declText = `Decl(${ fileName }, ${ isLibFile ? "--" : declLineAndCharacter.line }, ${ isLibFile ? "--" : declLineAndCharacter.character })`; symbolString += declText; @@ -183,4 +190,4 @@ namespace Harness { }; } } -} \ No newline at end of file + diff --git a/src/harness/util.ts b/src/harness/util.ts index 6e0ab3cfb7df3..7701236eb983c 100644 --- a/src/harness/util.ts +++ b/src/harness/util.ts @@ -1,21 +1,25 @@ /** * Common utilities */ -namespace Utils { + +import { DiagnosticMessage } from "../compiler/types"; +import { regExpEscape, formatStringFromArgs } from "../compiler/utilities"; +import { isWhiteSpaceLike } from "../compiler/scanner"; + const testPathPrefixRegExp = /(?:(file:\/{3})|\/)\.(ts|lib|src)\//g; export function removeTestPathPrefixes(text: string, retainTrailingDirectorySeparator?: boolean): string { return text !== undefined ? text.replace(testPathPrefixRegExp, (_, scheme) => scheme || (retainTrailingDirectorySeparator ? "/" : "")) : undefined!; // TODO: GH#18217 } - function createDiagnosticMessageReplacer string[]>(diagnosticMessage: ts.DiagnosticMessage, replacer: R) { + function createDiagnosticMessageReplacer string[]>(diagnosticMessage: DiagnosticMessage, replacer: R) { const messageParts = diagnosticMessage.message.split(/{\d+}/g); - const regExp = new RegExp(`^(?:${messageParts.map(ts.regExpEscape).join("(.*?)")})$`); + const regExp = new RegExp(`^(?:${messageParts.map(regExpEscape).join("(.*?)")})$`); type Args = R extends (messageArgs: string[], ...args: infer A) => string[] ? A : []; - return (text: string, ...args: Args) => text.replace(regExp, (_, ...fixedArgs) => ts.formatStringFromArgs(diagnosticMessage.message, replacer(fixedArgs, ...args))); + return (text: string, ...args: Args) => text.replace(regExp, (_, ...fixedArgs) => formatStringFromArgs(diagnosticMessage.message, replacer(fixedArgs, ...args))); } const replaceTypesVersionsMessage = createDiagnosticMessageReplacer( - ts.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, + Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, ([entry, , moduleName], compilerVersion) => [entry, compilerVersion, moduleName]); export function sanitizeTraceResolutionLogEntry(text: string) { @@ -67,7 +71,7 @@ namespace Utils { let indentation: number | undefined; for (const line of lines) { for (let i = 0; i < line.length && (indentation === undefined || i < indentation); i++) { - if (!ts.isWhiteSpaceLike(line.charCodeAt(i))) { + if (!isWhiteSpaceLike(line.charCodeAt(i))) { if (indentation === undefined || i < indentation) { indentation = i; break; @@ -109,4 +113,4 @@ namespace Utils { value === undefined ? "undefined" : JSON.stringify(value); } -} \ No newline at end of file + diff --git a/src/harness/vfsUtil.ts b/src/harness/vfsUtil.ts index 974c164976c2a..ee9f59caf4e0f 100644 --- a/src/harness/vfsUtil.ts +++ b/src/harness/vfsUtil.ts @@ -1,4 +1,7 @@ -namespace vfs { +import { sys } from "../compiler/sys"; +import { FileSystemEntries } from "../compiler/utilities"; +import { arrayFrom } from "../compiler/core"; + /** * Posix-style path to the TypeScript compiler build outputs (including tsc.js, lib.d.ts, etc.) */ @@ -49,9 +52,9 @@ namespace vfs { // lazy-initialized state that should be mutable even if the FileSystem is frozen. private _lazy: { - links?: collections.SortedMap; + links?: SortedMap; shadows?: Map; - meta?: collections.Metadata; + meta?: Metadata; } = {}; private _cwd: string; // current working directory @@ -77,16 +80,16 @@ namespace vfs { let cwd = options.cwd; if ((!cwd || !vpath.isRoot(cwd)) && this._lazy.links) { - const iterator = collections.getIterator(this._lazy.links.keys()); + const iterator = getIterator(this._lazy.links.keys()); try { - for (let i = collections.nextResult(iterator); i; i = collections.nextResult(iterator)) { + for (let i = nextResult(iterator); i; i = nextResult(iterator)) { const name = i.value; cwd = cwd ? vpath.resolve(name, cwd) : name; break; } } finally { - collections.closeIterator(iterator); + closeIterator(iterator); } } @@ -101,9 +104,9 @@ namespace vfs { /** * Gets metadata for this `FileSystem`. */ - public get meta(): collections.Metadata { + public get meta(): Metadata { if (!this._lazy.meta) { - this._lazy.meta = new collections.Metadata(this._shadowRoot ? this._shadowRoot.meta : undefined); + this._lazy.meta = new Metadata(this._shadowRoot ? this._shadowRoot.meta : undefined); } return this._lazy.meta; } @@ -183,16 +186,16 @@ namespace vfs { * Gets the metadata object for a path. * @param path */ - public filemeta(path: string): collections.Metadata { + public filemeta(path: string): Metadata { const { node } = this._walk(this._resolve(path)); if (!node) throw createIOError("ENOENT"); return this._filemeta(node); } - private _filemeta(node: Inode): collections.Metadata { + private _filemeta(node: Inode): Metadata { if (!node.meta) { const parentMeta = node.shadowRoot && this._shadowRoot && this._shadowRoot._filemeta(node.shadowRoot); - node.meta = new collections.Metadata(parentMeta); + node.meta = new Metadata(parentMeta); } return node.meta; } @@ -377,10 +380,10 @@ namespace vfs { public getFileListing(): string { let result = ""; - const printLinks = (dirname: string | undefined, links: collections.SortedMap) => { - const iterator = collections.getIterator(links); + const printLinks = (dirname: string | undefined, links: SortedMap) => { + const iterator = getIterator(links); try { - for (let i = collections.nextResult(iterator); i; i = collections.nextResult(iterator)) { + for (let i = nextResult(iterator); i; i = nextResult(iterator)) { const [name, node] = i.value; const path = dirname ? vpath.combine(dirname, name) : name; const marker = vpath.compare(this._cwd, path, this.ignoreCase) === 0 ? "*" : " "; @@ -399,7 +402,7 @@ namespace vfs { } } finally { - collections.closeIterator(iterator); + closeIterator(iterator); } }; printLinks(/*dirname*/ undefined, this._getRootLinks()); @@ -690,7 +693,7 @@ namespace vfs { if (isDirectory(node)) throw createIOError("EISDIR"); if (!isFile(node)) throw createIOError("EBADF"); - node.buffer = Buffer.isBuffer(data) ? data.slice() : ts.sys.bufferFrom!("" + data, encoding || "utf8") as Buffer; + node.buffer = Buffer.isBuffer(data) ? data.slice() : sys.bufferFrom!("" + data, encoding || "utf8") as Buffer; node.size = node.buffer.byteLength; node.mtimeMs = time; node.ctimeMs = time; @@ -875,7 +878,7 @@ namespace vfs { }; } - private _addLink(parent: DirectoryInode | undefined, links: collections.SortedMap, name: string, node: Inode, time = this.time()) { + private _addLink(parent: DirectoryInode | undefined, links: SortedMap, name: string, node: Inode, time = this.time()) { links.set(name, node); node.nlink++; node.ctimeMs = time; @@ -883,14 +886,14 @@ namespace vfs { if (!parent && !this._cwd) this._cwd = name; } - private _removeLink(parent: DirectoryInode | undefined, links: collections.SortedMap, name: string, node: Inode, time = this.time()) { + private _removeLink(parent: DirectoryInode | undefined, links: SortedMap, name: string, node: Inode, time = this.time()) { links.delete(name); node.nlink--; node.ctimeMs = time; if (parent) parent.mtimeMs = time; } - private _replaceLink(oldParent: DirectoryInode, oldLinks: collections.SortedMap, oldName: string, newParent: DirectoryInode, newLinks: collections.SortedMap, newName: string, node: Inode, time: number) { + private _replaceLink(oldParent: DirectoryInode, oldLinks: SortedMap, oldName: string, newParent: DirectoryInode, newLinks: SortedMap, newName: string, node: Inode, time: number) { if (oldParent !== newParent) { this._removeLink(oldParent, oldLinks, oldName, node, time); this._addLink(newParent, newLinks, newName, node, time); @@ -905,7 +908,7 @@ namespace vfs { private _getRootLinks() { if (!this._lazy.links) { - this._lazy.links = new collections.SortedMap(this.stringComparer); + this._lazy.links = new SortedMap(this.stringComparer); if (this._shadowRoot) { this._copyShadowLinks(this._shadowRoot._getRootLinks(), this._lazy.links); } @@ -916,7 +919,7 @@ namespace vfs { private _getLinks(node: DirectoryInode) { if (!node.links) { - const links = new collections.SortedMap(this.stringComparer); + const links = new SortedMap(this.stringComparer); const { source, resolver } = node; if (source && resolver) { node.source = undefined; @@ -975,16 +978,16 @@ namespace vfs { return shadow; } - private _copyShadowLinks(source: ReadonlyMap, target: collections.SortedMap) { - const iterator = collections.getIterator(source); + private _copyShadowLinks(source: ReadonlyMap, target: SortedMap) { + const iterator = getIterator(source); try { - for (let i = collections.nextResult(iterator); i; i = collections.nextResult(iterator)) { + for (let i = nextResult(iterator); i; i = nextResult(iterator)) { const [name, root] = i.value; target.set(name, this._getShadow(root)); } } finally { - collections.closeIterator(iterator); + closeIterator(iterator); } } @@ -1196,7 +1199,7 @@ namespace vfs { export interface FileSystemResolverHost { useCaseSensitiveFileNames(): boolean; - getAccessibleFileSystemEntries(path: string): ts.FileSystemEntries; + getAccessibleFileSystemEntries(path: string): FileSystemEntries; directoryExists(path: string): boolean; fileExists(path: string): boolean; getFileSize(path: string): number; @@ -1222,7 +1225,7 @@ namespace vfs { } }, readFileSync(path: string): Buffer { - return ts.sys.bufferFrom!(host.readFile(path)!, "utf8") as Buffer; // TODO: GH#18217 + return sys.bufferFrom!(host.readFile(path)!, "utf8") as Buffer; // TODO: GH#18217 } }; } @@ -1440,7 +1443,7 @@ namespace vfs { source?: string; resolver?: FileSystemResolver; shadowRoot?: FileInode; - meta?: collections.Metadata; + meta?: Metadata; } interface DirectoryInode { @@ -1452,11 +1455,11 @@ namespace vfs { ctimeMs: number; // status change time birthtimeMs: number; // creation time nlink: number; // number of hard links - links?: collections.SortedMap; + links?: SortedMap; source?: string; resolver?: FileSystemResolver; shadowRoot?: DirectoryInode; - meta?: collections.Metadata; + meta?: Metadata; } interface SymlinkInode { @@ -1470,7 +1473,7 @@ namespace vfs { nlink: number; // number of hard links symlink: string; shadowRoot?: SymlinkInode; - meta?: collections.Metadata; + meta?: Metadata; } function isEmptyNonShadowedDirectory(node: DirectoryInode) { @@ -1497,7 +1500,7 @@ namespace vfs { realpath: string; basename: string; parent: DirectoryInode | undefined; - links: collections.SortedMap; + links: SortedMap; node: Inode | undefined; } @@ -1601,7 +1604,7 @@ namespace vfs { const entry = normalizeFileSetEntry(container[name]); const file = dirname ? vpath.combine(dirname, name) : name; if (entry instanceof Directory) { - yield* ts.arrayFrom(iteratePatchWorker(file, entry.files)); + yield* arrayFrom(iteratePatchWorker(file, entry.files)); } else if (entry instanceof File) { const content = typeof entry.data === "string" ? entry.data : entry.data.toString("utf8"); @@ -1609,4 +1612,4 @@ namespace vfs { } } } -} + diff --git a/src/harness/virtualFileSystemWithWatch.ts b/src/harness/virtualFileSystemWithWatch.ts index d20e847d57d06..13ade15a5100a 100644 --- a/src/harness/virtualFileSystemWithWatch.ts +++ b/src/harness/virtualFileSystemWithWatch.ts @@ -1,4 +1,14 @@ -namespace ts.TestFSWithWatch { +import { Path, WatchOptions, ModuleResolutionHost, RequireResult, WatchFileKind, WatchDirectoryKind, PollingWatchKind } from "../compiler/types"; +import { combinePaths, getDirectoryPath, toPath, getNormalizedAbsolutePath, directorySeparator, getBaseFileName, getRelativePathToDirectoryOrUrl } from "../compiler/path"; +import { patchWriteFileEnsuringDirectory, FileWatcher, PollingInterval, FileWatcherCallback, FsWatchCallback, HostWatchFile, HostWatchDirectory, createSystemWatchFunctions, createSingleFileWatcherPerName, FileWatcherEventKind, FileSystemEntryKind, createFileWatcherCallback, generateDjb2Hash, sys } from "../compiler/sys"; +import { isString, isArray, isNumber } from "util"; +import { SortedArray } from "../compiler/corePublic"; +import { MultiMap, createMap, forEach, arrayFrom, arrayToMap, identity, createMultiMap, createGetCanonicalFileName, clone, returnFalse, insertSorted, compareStringsCaseSensitive, filterMutate, mapDefined } from "../compiler/core"; +import { assert, clear } from "console"; +import { arrayToSet, matchFiles } from "../compiler/utilities"; +import { FormatDiagnosticsHost } from "../compiler/program"; +import { Debug } from "../compiler/debug"; +export namespace TestFSWithWatch { export const libFile: File = { path: "/a/lib/lib.d.ts", content: `/// diff --git a/src/harness/vpathUtil.ts b/src/harness/vpathUtil.ts index 31419e976fffb..a1a2417d7e917 100644 --- a/src/harness/vpathUtil.ts +++ b/src/harness/vpathUtil.ts @@ -1,28 +1,30 @@ -namespace vpath { - export import sep = ts.directorySeparator; - export import normalizeSeparators = ts.normalizeSlashes; - export import isAbsolute = ts.isRootedDiskPath; - export import isRoot = ts.isDiskPathRoot; - export import hasTrailingSeparator = ts.hasTrailingDirectorySeparator; - export import addTrailingSeparator = ts.ensureTrailingDirectorySeparator; - export import removeTrailingSeparator = ts.removeTrailingDirectorySeparator; - export import normalize = ts.normalizePath; - export import combine = ts.combinePaths; - export import parse = ts.getPathComponents; - export import reduce = ts.reducePathComponents; - export import format = ts.getPathFromPathComponents; - export import resolve = ts.resolvePath; - export import compare = ts.comparePaths; - export import compareCaseSensitive = ts.comparePathsCaseSensitive; - export import compareCaseInsensitive = ts.comparePathsCaseInsensitive; - export import dirname = ts.getDirectoryPath; - export import basename = ts.getBaseFileName; - export import extname = ts.getAnyExtensionFromPath; - export import relative = ts.getRelativePathFromDirectory; - export import beneath = ts.containsPath; - export import changeExtension = ts.changeAnyExtension; - export import isTypeScript = ts.hasTSFileExtension; - export import isJavaScript = ts.hasJSFileExtension; +import { directorySeparator, normalizeSlashes, isRootedDiskPath, isDiskPathRoot, hasTrailingDirectorySeparator, ensureTrailingDirectorySeparator, removeTrailingDirectorySeparator, normalizePath, combinePaths, getPathComponents, reducePathComponents, getPathFromPathComponents, resolvePath, comparePaths, comparePathsCaseSensitive, comparePathsCaseInsensitive, getDirectoryPath, getBaseFileName, getAnyExtensionFromPath, getRelativePathFromDirectory, containsPath, changeAnyExtension } from "../compiler/path"; +import { hasTSFileExtension, hasJSFileExtension } from "../compiler/utilities"; + + export {directorySeparator as sep} ; + export {normalizeSlashes as normalizeSeparators} ; + export {isRootedDiskPath as isAbsolute} ; + export {isDiskPathRoot as isRoot} ; + export {hasTrailingDirectorySeparator as hasTrailingSeparator} ; + export {ensureTrailingDirectorySeparator as addTrailingSeparator} ; + export {removeTrailingDirectorySeparator as removeTrailingSeparator} ; + export {normalizePath as normalize} ; + export {combinePaths as combine} ; + export {getPathComponents as parse} ; + export {reducePathComponents as reduce} ; + export {getPathFromPathComponents as format} ; + export {resolvePath as resolve} ; + export {comparePaths as compare} ; + export {comparePathsCaseSensitive as compareCaseSensitive} ; + export {comparePathsCaseInsensitive as compareCaseInsensitive} ; + export {getDirectoryPath as dirname} ; + export {getBaseFileName as basename} ; + export {getAnyExtensionFromPath as extname} ; + export {getRelativePathFromDirectory as relative} ; + export {containsPath as beneath} ; + export {changeAnyExtension as changeExtension} ; + export {hasTSFileExtension as isTypeScript} ; + export {hasJSFileExtension as isJavaScript} ; const invalidRootComponentRegExp = /^(?!(\/|\/\/\w+\/|[a-zA-Z]:\/?|)$)/; const invalidNavigableComponentRegExp = /[:*?"<>|]/; @@ -101,36 +103,36 @@ namespace vpath { } export function validate(path: string, flags: ValidationFlags = ValidationFlags.RelativeOrAbsolute) { - const components = parse(path); - const trailing = hasTrailingSeparator(path); + const components = getPathComponents(path); + const trailing = hasTrailingDirectorySeparator(path); if (!validateComponents(components, flags, trailing)) throw vfs.createIOError("ENOENT"); - return components.length > 1 && trailing ? format(reduce(components)) + sep : format(reduce(components)); + return components.length > 1 && trailing ? getPathFromPathComponents(reducePathComponents(components)) + directorySeparator : getPathFromPathComponents(reducePathComponents(components)); } export function isDeclaration(path: string) { - return extname(path, ".d.ts", /*ignoreCase*/ false).length > 0; + return getAnyExtensionFromPath(path, ".d.ts", /*ignoreCase*/ false).length > 0; } export function isSourceMap(path: string) { - return extname(path, ".map", /*ignoreCase*/ false).length > 0; + return getAnyExtensionFromPath(path, ".map", /*ignoreCase*/ false).length > 0; } const javaScriptSourceMapExtensions: readonly string[] = [".js.map", ".jsx.map"]; export function isJavaScriptSourceMap(path: string) { - return extname(path, javaScriptSourceMapExtensions, /*ignoreCase*/ false).length > 0; + return getAnyExtensionFromPath(path, javaScriptSourceMapExtensions, /*ignoreCase*/ false).length > 0; } export function isJson(path: string) { - return extname(path, ".json", /*ignoreCase*/ false).length > 0; + return getAnyExtensionFromPath(path, ".json", /*ignoreCase*/ false).length > 0; } export function isDefaultLibrary(path: string) { return isDeclaration(path) - && basename(path).startsWith("lib."); + && getBaseFileName(path).startsWith("lib."); } export function isTsConfigFile(path: string): boolean { return path.indexOf("tsconfig") !== -1 && path.indexOf("json") !== -1; } -} + diff --git a/src/instrumenter/instrumenter.ts b/src/instrumenter/instrumenter.ts index cb11be5c7452b..516fb100625f7 100644 --- a/src/instrumenter/instrumenter.ts +++ b/src/instrumenter/instrumenter.ts @@ -3,13 +3,13 @@ import path = require("path"); function instrumentForRecording(fn: string, tscPath: string) { instrument(tscPath, ` -ts.sys = Playback.wrapSystem(ts.sys); -ts.sys.startRecord("${ fn }");`, `ts.sys.endRecord();`); +ts.sys = Playback.wrapSystem(sys); +ts.sys.startRecord("${ fn }");`, `sys.endRecord();`); } function instrumentForReplay(logFilename: string, tscPath: string) { instrument(tscPath, ` -ts.sys = Playback.wrapSystem(ts.sys); +ts.sys = Playback.wrapSystem(sys); ts.sys.startReplay("${ logFilename }");`); } @@ -30,7 +30,7 @@ function instrument(tscPath: string, prepareCode: string, cleanupCode = "") { fs.readFile(path.resolve(path.dirname(tscPath) + "/loggedIO.js"), "utf-8", (err: any, loggerContent: string) => { if (err) throw err; - const invocationLine = "ts.executeCommandLine(ts.sys.args);"; + const invocationLine = "executeCommandLine(sys.args);"; const index1 = tscContent.indexOf(invocationLine); if (index1 < 0) { throw new Error(`Could not find ${invocationLine}`); diff --git a/src/jsTyping/jsTyping.ts b/src/jsTyping/jsTyping.ts index e1cb9ebfd5584..ae7bda3a52cb2 100644 --- a/src/jsTyping/jsTyping.ts +++ b/src/jsTyping/jsTyping.ts @@ -1,6 +1,15 @@ /* @internal */ -namespace ts.JsTyping { +import { MapLike, versionMajorMinor, Push } from "../compiler/corePublic"; +import { Version } from "../compiler/semver"; +import { getProperty, createMapFromTemplate, createMap, mapDefined, deduplicate, equateStringsCaseSensitive, compareStringsCaseSensitive, forEach, flatMap, getOwnKeys, removeMinAndVersionNumbers, some, filter } from "../compiler/core"; +import { arrayToSet, hasJSFileExtension, removeFileExtension } from "../compiler/utilities"; +import { Path, TypeAcquisition, Extension, CharacterCodes } from "../compiler/types"; +import { readConfigFile } from "../../built/local/compiler"; +import { normalizePath, getDirectoryPath, combinePaths, getBaseFileName, fileExtensionIs, getNormalizedAbsolutePath } from "../compiler/path"; +import { Debug } from "../compiler/debug"; + +export namespace JsTyping { export interface TypingResolutionHost { directoryExists(path: string): boolean; fileExists(fileName: string): boolean; diff --git a/src/jsTyping/shared.ts b/src/jsTyping/shared.ts index ce6004f251ddc..284bb94de9e32 100644 --- a/src/jsTyping/shared.ts +++ b/src/jsTyping/shared.ts @@ -1,4 +1,5 @@ -namespace ts.server { +import { sys } from "../compiler/sys"; + export type ActionSet = "action::set"; export type ActionInvalidate = "action::invalidate"; export type ActionPackageInstalled = "action::packageInstalled"; @@ -59,4 +60,4 @@ namespace ts.server { const d = new Date(); return `${d.getHours()}:${d.getMinutes()}:${d.getSeconds()}.${d.getMilliseconds()}`; } -} + diff --git a/src/jsTyping/types.ts b/src/jsTyping/types.ts index 34f69d0d624df..3fcaea1da84c4 100644 --- a/src/jsTyping/types.ts +++ b/src/jsTyping/types.ts @@ -1,4 +1,8 @@ -declare namespace ts.server { +import { ActionSet, ActionInvalidate, EventTypesRegistry, ActionPackageInstalled, EventBeginInstallTypes, EventEndInstallTypes, EventInitializationFailed } from "./shared"; +import { Path, CompilerOptions, WatchOptions, TypeAcquisition } from "../compiler/types"; +import { SortedReadonlyArray, MapLike } from "../compiler/corePublic"; +import { FileWatcherCallback, FileWatcher, DirectoryWatcherCallback } from "../compiler/sys"; + export interface TypingInstallerResponse { readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed; } @@ -97,4 +101,4 @@ declare namespace ts.server { /* @internal */ export type TypingInstallerResponseUnion = SetTypings | InvalidateCachedTypings | TypesRegistryResponse | PackageInstalledResponse | InstallTypes | InitializationFailedResponse; -} + diff --git a/src/namespaceLike/Completions.ts b/src/namespaceLike/Completions.ts new file mode 100644 index 0000000000000..372cfd5d0bd69 --- /dev/null +++ b/src/namespaceLike/Completions.ts @@ -0,0 +1,3 @@ + +export * from "../services/completions"; +export * from "../services/stringCompletions"; diff --git a/src/namespaceLike/FindAllReferences.ts b/src/namespaceLike/FindAllReferences.ts new file mode 100644 index 0000000000000..572c10e6efa74 --- /dev/null +++ b/src/namespaceLike/FindAllReferences.ts @@ -0,0 +1,3 @@ + +export * from "../services/findAllReferences"; +export * from "../services/importTracker"; diff --git a/src/namespaceLike/Harness.Parallel.ts b/src/namespaceLike/Harness.Parallel.ts new file mode 100644 index 0000000000000..c92eac170e545 --- /dev/null +++ b/src/namespaceLike/Harness.Parallel.ts @@ -0,0 +1,4 @@ + +export * from "../testRunner/parallel/shared"; +export * as Host from "../testRunner/parallel/host"; +export * as Worker from "../testRunner/parallel/worker"; diff --git a/src/namespaceLike/Harness.ts b/src/namespaceLike/Harness.ts new file mode 100644 index 0000000000000..329da7c017c1f --- /dev/null +++ b/src/namespaceLike/Harness.ts @@ -0,0 +1,13 @@ + +export * from "../harness/harnessIO"; +export * from "../harness/runnerbase"; +export * from "../harness/typeWriter"; +export * from "../testRunner/compilerRunner"; +export * from "../testRunner/externalCompileRunner"; +export * from "../testRunner/fourslashRunner"; +export * from "../testRunner/runner"; +export * from "../testRunner/test262Runner"; +export * as LanguageService from "../harness/harnessLanguageService"; +export * as SourceMapRecorder from "../harness/sourceMapRecorder"; +import * as Parallel from "./Harness.Parallel" +export {Parallel} diff --git a/src/namespaceLike/NavigationBar.ts b/src/namespaceLike/NavigationBar.ts new file mode 100644 index 0000000000000..74f6cff88167d --- /dev/null +++ b/src/namespaceLike/NavigationBar.ts @@ -0,0 +1,2 @@ + +export * from "../services/navigationBar"; diff --git a/src/namespaceLike/OrganizeImports.ts b/src/namespaceLike/OrganizeImports.ts new file mode 100644 index 0000000000000..3d54d82b0b999 --- /dev/null +++ b/src/namespaceLike/OrganizeImports.ts @@ -0,0 +1,2 @@ + +export * from "../services/organizeImports"; diff --git a/src/namespaceLike/Utils.ts b/src/namespaceLike/Utils.ts new file mode 100644 index 0000000000000..6f485bb289f29 --- /dev/null +++ b/src/namespaceLike/Utils.ts @@ -0,0 +1,3 @@ + +export * from "../harness/harnessUtils"; +export * from "../harness/util"; diff --git a/src/namespaceLike/codefix.ts b/src/namespaceLike/codefix.ts new file mode 100644 index 0000000000000..2ab49022d2b5d --- /dev/null +++ b/src/namespaceLike/codefix.ts @@ -0,0 +1,60 @@ + +export * from "../services/codefixes/addConvertToUnknownForNonOverlappingTypes"; +export * from "../services/codefixes/addEmptyExportDeclaration"; +export * from "../services/codefixes/addMissingAsync"; +export * from "../services/codefixes/addMissingAwait"; +export * from "../services/codefixes/addMissingConst"; +export * from "../services/codefixes/addMissingDeclareProperty"; +export * from "../services/codefixes/addMissingInvocationForDecorator"; +export * from "../services/codefixes/addNameToNamelessParameter"; +export * from "../services/codefixes/annotateWithTypeFromJSDoc"; +export * from "../services/codefixes/convertConstToLet"; +export * from "../services/codefixes/convertFunctionToEs6Class"; +export * from "../services/codefixes/convertToAsyncFunction"; +export * from "../services/codefixes/convertToEs6Module"; +export * from "../services/codefixes/convertToMappedObjectType"; +export * from "../services/codefixes/convertToTypeOnlyExport"; +export * from "../services/codefixes/convertToTypeOnlyImport"; +export * from "../services/codefixes/correctQualifiedNameToIndexedAccessType"; +export * from "../services/codefixes/disableJsDiagnostics"; +export * from "../services/codefixes/fixAddMissingMember"; +export * from "../services/codefixes/fixAddMissingNewOperator"; +export * from "../services/codefixes/fixAddModuleReferTypeMissingTypeof"; +export * from "../services/codefixes/fixAwaitInSyncFunction"; +export * from "../services/codefixes/fixCannotFindModule"; +export * from "../services/codefixes/fixClassDoesntImplementInheritedAbstractMember"; +export * from "../services/codefixes/fixClassIncorrectlyImplementsInterface"; +export * from "../services/codefixes/fixClassSuperMustPrecedeThisAccess"; +export * from "../services/codefixes/fixConstructorForDerivedNeedSuperCall"; +export * from "../services/codefixes/fixEnableExperimentalDecorators"; +export * from "../services/codefixes/fixEnableJsxFlag"; +export * from "../services/codefixes/fixExpectedComma"; +export * from "../services/codefixes/fixExtendsInterfaceBecomesImplements"; +export * from "../services/codefixes/fixForgottenThisPropertyAccess"; +export * from "../services/codefixes/fixImplicitThis"; +export * from "../services/codefixes/fixIncorrectNamedTupleSyntax"; +export * from "../services/codefixes/fixInvalidImportSyntax"; +export * from "../services/codefixes/fixInvalidJsxCharacters"; +export * from "../services/codefixes/fixJSDocTypes"; +export * from "../services/codefixes/fixMissingCallParentheses"; +export * from "../services/codefixes/fixModuleAndTargetOptions"; +export * from "../services/codefixes/fixPropertyOverrideAccessor"; +export * from "../services/codefixes/fixReturnTypeInAsyncFunction"; +export * from "../services/codefixes/fixSpelling"; +export * from "../services/codefixes/fixStrictClassInitialization"; +export * from "../services/codefixes/fixUnreachableCode"; +export * from "../services/codefixes/fixUnusedIdentifier"; +export * from "../services/codefixes/fixUnusedLabel"; +export * from "../services/codefixes/generateAccessors"; +export * from "../services/codefixes/helpers"; +export * from "../services/codefixes/importFixes"; +export * from "../services/codefixes/removeAccidentalCallParentheses"; +export * from "../services/codefixes/inferFromUsage"; +export * from "../services/codefixes/removeUnnecessaryAwait"; +export * from "../services/codefixes/requireInTs"; +export * from "../services/codefixes/returnValueCorrect"; +export * from "../services/codefixes/splitTypeOnlyImport"; +export * from "../services/codefixes/useBigintLiteral"; +export * from "../services/codefixes/useDefaultImport"; +export * from "../services/codefixes/wrapJsxInFragment"; +export * from "../services/codeFixProvider"; diff --git a/src/namespaceLike/formatting.ts b/src/namespaceLike/formatting.ts new file mode 100644 index 0000000000000..50ce2add50de0 --- /dev/null +++ b/src/namespaceLike/formatting.ts @@ -0,0 +1,8 @@ + +export * from "../services/formatting/formatting"; +export * from "../services/formatting/formattingContext"; +export * from "../services/formatting/formattingScanner"; +export * from "../services/formatting/rule"; +export * from "../services/formatting/rules"; +export * from "../services/formatting/rulesMap"; +export * from "../services/formatting/smartIndenter"; diff --git a/src/namespaceLike/projectSystem.ts b/src/namespaceLike/projectSystem.ts new file mode 100644 index 0000000000000..756da4854d099 --- /dev/null +++ b/src/namespaceLike/projectSystem.ts @@ -0,0 +1,54 @@ + +export * from "../testRunner/unittests/tsserver/applyChangesToOpenFiles"; +export * from "../testRunner/unittests/tsserver/autoImportProvider"; +export * from "../testRunner/unittests/tsserver/cachingFileSystemInformation"; +export * from "../testRunner/unittests/tsserver/cancellationToken"; +export * from "../testRunner/unittests/tsserver/compileOnSave"; +export * from "../testRunner/unittests/tsserver/completions"; +export * from "../testRunner/unittests/tsserver/configFileSearch"; +export * from "../testRunner/unittests/tsserver/configuredProjects"; +export * from "../testRunner/unittests/tsserver/declarationFileMaps"; +export * from "../testRunner/unittests/tsserver/documentRegistry"; +export * from "../testRunner/unittests/tsserver/duplicatePackages"; +export * from "../testRunner/unittests/tsserver/dynamicFiles"; +export * from "../testRunner/unittests/tsserver/events/largeFileReferenced"; +export * from "../testRunner/unittests/tsserver/events/projectLanguageServiceState"; +export * from "../testRunner/unittests/tsserver/events/projectLoading"; +export * from "../testRunner/unittests/tsserver/events/projectUpdatedInBackground"; +export * from "../testRunner/unittests/tsserver/externalProjects"; +export * from "../testRunner/unittests/tsserver/forceConsistentCasingInFileNames"; +export * from "../testRunner/unittests/tsserver/formatSettings"; +export * from "../testRunner/unittests/tsserver/getApplicableRefactors"; +export * from "../testRunner/unittests/tsserver/getEditsForFileRename"; +export * from "../testRunner/unittests/tsserver/getExportReferences"; +export * from "../testRunner/unittests/tsserver/helpers"; +export * from "../testRunner/unittests/tsserver/importHelpers"; +export * from "../testRunner/unittests/tsserver/importSuggestionsCache"; +export * from "../testRunner/unittests/tsserver/inferredProjects"; +export * from "../testRunner/unittests/tsserver/languageService"; +export * from "../testRunner/unittests/tsserver/maxNodeModuleJsDepth"; +export * from "../testRunner/unittests/tsserver/metadataInResponse"; +export * from "../testRunner/unittests/tsserver/navTo"; +export * from "../testRunner/unittests/tsserver/occurences"; +export * from "../testRunner/unittests/tsserver/openFile"; +export * from "../testRunner/unittests/tsserver/packageJsonInfo"; +export * from "../testRunner/unittests/tsserver/projectErrors"; +export * from "../testRunner/unittests/tsserver/projectReferenceCompileOnSave"; +export * from "../testRunner/unittests/tsserver/projectReferenceErrors"; +export * from "../testRunner/unittests/tsserver/projectReferences"; +export * from "../testRunner/unittests/tsserver/projects"; +export * from "../testRunner/unittests/tsserver/refactors"; +export * from "../testRunner/unittests/tsserver/reload"; +export * from "../testRunner/unittests/tsserver/rename"; +export * from "../testRunner/unittests/tsserver/resolutionCache"; +export * from "../testRunner/unittests/tsserver/semanticOperationsOnSyntaxServer"; +export * from "../testRunner/unittests/tsserver/skipLibCheck"; +export * from "../testRunner/unittests/tsserver/smartSelection"; +export * from "../testRunner/unittests/tsserver/symLinks"; +export * from "../testRunner/unittests/tsserver/syntaxOperations"; +export * from "../testRunner/unittests/tsserver/telemetry"; +export * from "../testRunner/unittests/tsserver/typeAquisition"; +export * from "../testRunner/unittests/tsserver/typeOnlyImportChains"; +export * from "../testRunner/unittests/tsserver/typeReferenceDirectives"; +export * from "../testRunner/unittests/tsserver/typingsInstaller"; +export * from "../testRunner/unittests/tsserver/watchEnvironment"; diff --git a/src/namespaceLike/refactor.ts b/src/namespaceLike/refactor.ts new file mode 100644 index 0000000000000..e793dc2afade2 --- /dev/null +++ b/src/namespaceLike/refactor.ts @@ -0,0 +1,13 @@ + +export * from "../services/refactorProvider"; +export * from "../services/refactors/addOrRemoveBracesToArrowFunction"; +export * from "../services/refactors/convertArrowFunctionOrFunctionExpression"; +export * from "../services/refactors/convertExport"; +export * from "../services/refactors/convertImport"; +export * from "../services/refactors/convertOverloadListToSingleSignature"; +export * from "../services/refactors/convertParamsToDestructuredObject"; +export * from "../services/refactors/convertStringOrTemplateLiteral"; +export * from "../services/refactors/extractSymbol"; +export * from "../services/refactors/extractType"; +export * from "../services/refactors/generateGetAccessorAndSetAccessor"; +export * from "../services/refactors/moveToNewFile"; diff --git a/src/namespaceLike/server.ts b/src/namespaceLike/server.ts new file mode 100644 index 0000000000000..b86cbc421fe14 --- /dev/null +++ b/src/namespaceLike/server.ts @@ -0,0 +1,18 @@ + +export * from "../harness/client"; +export * from "../jsTyping/shared"; +export * from "../jsTyping/types"; +export * from "../server/editorServices"; +export * from "../server/packageJsonCache"; +export * from "../server/project"; +export * from "../server/scriptInfo"; +export * from "../server/scriptVersionCache"; +export * from "../server/session"; +export * from "../server/types"; +export * from "../server/typingsCache"; +export * from "../server/utilitiesPublic"; +export * from "../testRunner/unittests/tsserver/session"; +export * from "../tsserver/server"; +export * as protocol from "../server/protocol"; +import * as typingsInstaller from "./server.typingsInstaller" +export {typingsInstaller} diff --git a/src/namespaceLike/server.typingsInstaller.ts b/src/namespaceLike/server.typingsInstaller.ts new file mode 100644 index 0000000000000..c9e9eae6faeeb --- /dev/null +++ b/src/namespaceLike/server.typingsInstaller.ts @@ -0,0 +1,3 @@ + +export * from "../typingsInstaller/nodeTypingsInstaller"; +export * from "../typingsInstallerCore/typingsInstaller"; diff --git a/src/namespaceLike/tsconfig.json b/src/namespaceLike/tsconfig.json new file mode 100644 index 0000000000000..d5fcba1c9577a --- /dev/null +++ b/src/namespaceLike/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../tsconfig-base", + "compilerOptions": { + "outFile": "../../built/local/namespaceLike.js" + }, + "references": [ + { "path": "../compiler" }, + { "path": "../harness" }, + { "path": "../jsTyping" }, + { "path": "../server" }, + { "path": "../testRunner" }, + { "path": "../tsserver" }, + { "path": "../services" }, + { "path": "../typingsInstaller" }, + { "path": "../typingsInstallerCore" }, + ], + "include": ["*.ts"], +} diff --git a/src/namespaceLike/vfs.ts b/src/namespaceLike/vfs.ts new file mode 100644 index 0000000000000..8d1ffc6bb2972 --- /dev/null +++ b/src/namespaceLike/vfs.ts @@ -0,0 +1,2 @@ + +export * from "../harness/vfsUtil"; diff --git a/src/namespaceLike/vpath.ts b/src/namespaceLike/vpath.ts new file mode 100644 index 0000000000000..04f099ae46d58 --- /dev/null +++ b/src/namespaceLike/vpath.ts @@ -0,0 +1,2 @@ + +export * from "../harness/vpathUtil"; diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 0722616ed6b2c..45a7a3c842558 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -1,4 +1,29 @@ -namespace ts.server { +import { Project, ConfiguredProject, isConfiguredProject, InferredProject, ProjectKind, isInferredProject, ExternalProject, countEachFileTypes, AutoImportProviderProject, ProjectFilesWithTSDiagnostics, hasNoTypeScriptSource } from "./project"; +import { Diagnostic, CompilerOptions, CommandLineOption, WatchOptions, ScriptKind, UserPreferences, FileExtensionInfo, Path, ResolvedProjectReference, ProjectReference, SourceFile, WatchDirectoryFlags, TypeAcquisition, DocumentPositionMapper, DocumentPosition, Ternary, TsConfigSourceFile } from "../compiler/types"; +import { PerformanceEvent, IndentStyle, FormatCodeSettings, HostCancellationToken, TextChange, getDefaultFormatCodeSettings, emptyOptions, PackageJsonInfo, PackageJsonAutoImportPreference } from "../services/types"; +import { createMap, createMapFromTemplate, some, forEach, MultiMap, createMultiMap, createGetCanonicalFileName, noop, arrayFrom, AssertionLevel, mapDefinedIterator, unorderedRemoveItem, contains, startsWith, returnTrue, find, mapDefinedEntries, tryAddToSet, flatMap, arrayToMap, toFileNameLowerCase, removeMinAndVersionNumbers } from "../compiler/core"; +import { Debug, LogLevel } from "../compiler/debug"; +import { optionDeclarations, optionsForWatch, canWatchDirectory, convertCompilerOptionsForTelemetry, tryReadFile, parseJsonSourceFileConfigFileContent, canJsonReportNoInputFiles, getFileNamesFromConfigSpecs, removeIgnoredPath, convertEnableAutoDiscoveryToEnable } from "../../built/local/compiler"; +import { NormalizedPath, toNormalizedPath, emptyArray, isInferredProjectName, Errors, normalizedPathToPath, asNormalizedPath, ProjectOptions, Msg } from "./utilitiesPublic"; +import { getAnyExtensionFromPath, fileExtensionIs, combinePaths, getDirectoryPath, ensureTrailingDirectorySeparator, toPath, getNormalizedAbsolutePath, getBaseFileName, isRootedDiskPath, containsPath, isNodeModulesDirectory, normalizePath, hasExtension, directorySeparator, normalizeSlashes, forEachAncestorDirectory } from "../compiler/path"; +import { FileWatcher, FileWatcherEventKind, PollingInterval, missingFileModifiedTime, getFileWatcherEventKind } from "../compiler/sys"; +import { ServerHost } from "./types"; +import { Logger } from "../services/shims"; +import { ITypingsInstaller, TypingsCache, nullTypingsInstaller } from "./typingsCache"; +import { ScriptInfo, ScriptInfoVersion, isDynamicFileName } from "./scriptInfo"; +import { forEachKey, forEachEntry, hasTSFileExtension, cloneMap, addToSeen, removeFileExtension } from "../compiler/utilities"; +import { WatchType, returnNoopFileWatcher, noopFileWatcher } from "../compiler/watch"; +import { ExternalProject } from "./protocol"; +import { DocumentRegistry, createDocumentRegistryInternal, DocumentRegistryBucketKey } from "../../built/local/services"; +import { WatchFactory, WatchLogLevel, getWatchFactory, isIgnoredFileFromWildCardWatching, ConfigFileProgramReloadLevel, createCachedDirectoryStructureHost, DirectoryStructureHost } from "../compiler/watchUtilities"; +import { PackageJsonCache, createPackageJsonCache } from "./packageJsonCache"; +import { SetTypings, InvalidateCachedTypings, PackageInstalledResponse, BeginInstallTypes, EndInstallTypes } from "../jsTyping/types"; +import { ActionSet, ActionInvalidate } from "../jsTyping/shared"; +import { isInsideNodeModules } from "../services/utilities"; +import { parseJsonText } from "../compiler/parser"; +import { ReadMapFile, getDocumentPositionMapper } from "../services/sourcemaps"; +import { ReadonlyCollection } from "../compiler/corePublic"; + export const maxProgramSizeForNonTsFiles = 20 * 1024 * 1024; /*@internal*/ export const maxFileSize = 4 * 1024 * 1024; @@ -1842,7 +1867,7 @@ namespace ts.server { totalNonTsFileSize += this.host.getFileSize(fileName); if (totalNonTsFileSize > maxProgramSizeForNonTsFiles || totalNonTsFileSize > availableSpace) { - this.logger.info(getExceedLimitMessage({ propertyReader, hasTSFileExtension: ts.hasTSFileExtension, host: this.host }, totalNonTsFileSize)); // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier + this.logger.info(getExceedLimitMessage({ propertyReader, hasTSFileExtension, host: this.host }, totalNonTsFileSize)); // Keep the size as zero since it's disabled return fileName; } @@ -1915,7 +1940,7 @@ namespace ts.server { configFileName: configFileName(), projectType: project instanceof ExternalProject ? "external" : "configured", languageServiceEnabled: project.languageServiceEnabled, - version: ts.version, // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier + version, }; this.eventHandler({ eventName: ProjectInfoTelemetryEvent, data }); @@ -3790,4 +3815,4 @@ namespace ts.server { function printProjectWithoutFileNames(project: Project) { project.print(/*writeProjectFileNames*/ false); } -} + diff --git a/src/server/packageJsonCache.ts b/src/server/packageJsonCache.ts index 18a4a8a36bf61..b23a87e8c1b4f 100644 --- a/src/server/packageJsonCache.ts +++ b/src/server/packageJsonCache.ts @@ -1,5 +1,12 @@ /*@internal*/ -namespace ts.server { + +import { Path, Ternary } from "../compiler/types"; +import { PackageJsonInfo } from "../services/types"; +import { ProjectService } from "./editorServices"; +import { createMap } from "../compiler/core"; +import { getDirectoryPath, combinePaths, forEachAncestorDirectory } from "../compiler/path"; +import { tryFileExists, createPackageJsonInfo } from "../services/utilities"; + export interface PackageJsonCache { addOrUpdate(fileName: Path): void; forEach(action: (info: PackageJsonInfo, fileName: Path) => void): void; @@ -55,4 +62,4 @@ namespace ts.server { Ternary.Maybe; } } -} + diff --git a/src/server/project.ts b/src/server/project.ts index 9bdbb194472f1..3bf874b8ea5ce 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -1,4 +1,27 @@ -namespace ts.server { +import { ScriptInfo } from "./scriptInfo"; +import { FileStats, updateProjectIfDirty, ProjectService, forEachResolvedProjectReferenceProject, projectContainsInfoDirectly, ProjectReferenceProjectLoadKind } from "./editorServices"; +import { ScriptKind, Extension, Diagnostic, Path, ModuleResolutionHost, Program, HasInvalidatedResolution, ResolvedProjectReference, CompilerOptions, WatchOptions, SourceFile, ProjectReference, ResolvedModuleFull, ResolvedModuleWithFailedLookupLocations, ResolvedTypeReferenceDirective, WatchDirectoryFlags, DocumentPositionMapper, TypeAcquisition, StructureIsReused, Statement, PluginImport, ConfigFileSpecs, CompilerHost, ExpandResult } from "../compiler/types"; +import { fileExtensionIs, normalizeSlashes, combinePaths, getDirectoryPath, normalizePath, toPath, getNormalizedAbsolutePath } from "../compiler/path"; +import { LanguageService, LanguageServiceHost, InstallPackageOptions, ApplyCodeActionCommandResult, IScriptSnapshot, HostCancellationToken, PerformanceEvent, PackageJsonInfo, PackageJsonAutoImportPreference } from "../services/types"; +import { ServerHost } from "./types"; +import { NormalizedPath, emptyArray, Msg, asNormalizedPath, Errors, toNormalizedPath, makeInferredProjectName, makeAutoImportProviderProjectName, ProjectOptions } from "./utilitiesPublic"; +import { FileWatcher, DirectoryWatcherCallback, FileWatcherEventKind, PollingInterval } from "../compiler/sys"; +import { createMap, returnFalse, GetCanonicalFileName, maybeBind, neverArray, addRange, mapDefined, sort, flatMap, forEach, map, enumerateInsertsAndDeletes, getStringComparer, noop, arrayIsEqualTo, findIndex, arrayFrom, arrayToMap, orderedRemoveItem, firstDefined, sortAndDeduplicate, append, every, startsWith, returnTrue, filter } from "../compiler/core"; +import { SortedReadonlyArray } from "../compiler/corePublic"; +import { ResolutionCache, createResolutionCache, getDefaultLibFileName, getAutomaticTypeDirectiveNames, timestamp, isExternalModuleNameRelative, parsePackageName, resolveTypeReferenceDirective, getEffectiveTypeRoots, updateErrorForNoInputFiles } from "../../built/local/compiler"; +import { BuilderState } from "../compiler/builderState"; +import { ThrottledCancellationToken, getDefaultCompilerOptions, createLanguageService, getDefaultLibFilePath } from "../services/services"; +import { DirectoryStructureHost, CachedDirectoryStructureHost, updateMissingFilePathsWatch, closeFileWatcherOf, WildcardDirectoryWatcher, ConfigFileProgramReloadLevel, updateWatchingWildcardDirectories } from "../compiler/watchUtilities"; +import { DocumentRegistry } from "../../built/local/services"; +import { TypingsCache } from "./typingsCache"; +import { discoverProbableSymlinks, getEmitDeclarations, clearMap, closeFileWatcher, outFile, removeFileExtension, getDeclarationEmitOutputFilePathWorker, forEachKey, isNonGlobalAmbientModule, changesAffectModuleResolution, forEachEntry, stripQuotes, getOrUpdate, resolutionExtensionIsTSOrJson, isJsonEqual } from "../compiler/utilities"; +import { WatchType } from "../compiler/watch"; +import { SourceMapper } from "../services/sourcemaps"; +import { Debug, LogLevel } from "../compiler/debug"; +import { perfLogger } from "../compiler/perfLogger"; +import { consumesNodeCoreModules, isInsideNodeModules, cloneCompilerOptions } from "../services/utilities"; +import { inferredTypesContainingFile } from "../compiler/program"; + export enum ProjectKind { Inferred, @@ -354,7 +377,7 @@ namespace ts.server { getScriptFileNames() { if (!this.rootFiles) { - return ts.emptyArray; + return neverArray; } let result: string[] | undefined; @@ -365,7 +388,7 @@ namespace ts.server { } }); - return addRange(result, this.typingFiles) || ts.emptyArray; + return addRange(result, this.typingFiles) || neverArray; } private getOrCreateScriptInfoAndAttachToProject(fileName: string) { @@ -1796,8 +1819,8 @@ namespace ts.server { getTypeAcquisition(): TypeAcquisition { return { enable: allRootFilesAreJsOrDts(this), - include: ts.emptyArray, - exclude: ts.emptyArray + include: neverArray, + exclude: neverArray }; } } @@ -1808,7 +1831,7 @@ namespace ts.server { /*@internal*/ static getRootFileNames(dependencySelection: PackageJsonAutoImportPreference, hostProject: Project, moduleResolutionHost: ModuleResolutionHost, compilerOptions: CompilerOptions): string[] { if (!dependencySelection) { - return ts.emptyArray; + return neverArray; } let dependencyNames: Set | undefined; @@ -1837,7 +1860,7 @@ namespace ts.server { } } - return rootNames || ts.emptyArray; + return rootNames || neverArray; function addDependency(dependency: string) { if (!startsWith(dependency, "@types/")) { @@ -1857,8 +1880,8 @@ namespace ts.server { noLib: true, diagnostics: false, skipLibCheck: true, - types: ts.emptyArray, - lib: ts.emptyArray, + types: neverArray, + lib: neverArray, sourceMap: false }; @@ -1920,7 +1943,7 @@ namespace ts.server { } getScriptFileNames() { - return this.rootFileNames || ts.emptyArray; + return this.rootFileNames || neverArray; } getLanguageService(): never { @@ -2343,4 +2366,4 @@ namespace ts.server { export function isExternalProject(project: Project): project is ExternalProject { return project.projectKind === ProjectKind.External; } -} + diff --git a/src/server/protocol.ts b/src/server/protocol.ts index de974058fa167..cff8477fb1643 100644 --- a/src/server/protocol.ts +++ b/src/server/protocol.ts @@ -1,9 +1,14 @@ /* eslint-disable @typescript-eslint/no-unnecessary-qualifier */ +import { TextInsertion, TodoCommentDescriptor, TodoComment, OutliningSpanKind, HighlightSpanKind, RenameLocation, ScriptElementKind, TextChange, JSDocTagInfo } from "../services/types"; +import { OutputFile } from "../../built/local/compiler"; +import { ScriptKind, TypeAcquisition, FileExtensionInfo, CompilerOptionsValue, PluginImport, ProjectReference } from "../compiler/types"; +import { MapLike } from "../compiler/corePublic"; + /** * Declaration module describing the TypeScript Server protocol */ -namespace ts.server.protocol { + // NOTE: If updating this, be sure to also update `allCommandNames` in `testRunner/unittests/tsserver/session.ts`. export const enum CommandTypes { JsxClosingTag = "jsxClosingTag", @@ -275,7 +280,7 @@ namespace ts.server.protocol { export interface StatusResponseBody { /** - * The TypeScript version (`ts.version`). + * The TypeScript version (`version`). */ version: string; } @@ -390,7 +395,7 @@ namespace ts.server.protocol { */ /* @internal */ export interface OutliningSpansResponseFull extends Response { - body?: ts.OutliningSpan[]; + body?: OutliningSpan[]; } /** @@ -878,7 +883,7 @@ namespace ts.server.protocol { } /** @internal */ export interface EmitOutputResponse extends Response { - readonly body: EmitOutput | ts.EmitOutput; + readonly body: EmitOutput | EmitOutput; } /** @internal */ export interface EmitOutput { @@ -1268,7 +1273,7 @@ namespace ts.server.protocol { /** * Script kind of the file */ - scriptKind?: ScriptKindName | ts.ScriptKind; + scriptKind?: ScriptKindName | ScriptKind; /** * Whether file has mixed content (i.e. .cshtml file that combines html markup with C#/JavaScript) */ @@ -1338,7 +1343,7 @@ namespace ts.server.protocol { /** * Current set of compiler options for project */ - options: ts.CompilerOptions; + options: CompilerOptions; /** * true if project language service is disabled */ @@ -1432,7 +1437,7 @@ namespace ts.server.protocol { /** * List of changes that should be applied to known open file */ - changes: ts.TextChange[]; + changes: TextChange[]; } @@ -1488,9 +1493,9 @@ namespace ts.server.protocol { } export interface WatchOptions { - watchFile?: WatchFileKind | ts.WatchFileKind; - watchDirectory?: WatchDirectoryKind | ts.WatchDirectoryKind; - fallbackPolling?: PollingWatchKind | ts.PollingWatchKind; + watchFile?: WatchFileKind | WatchFileKind; + watchDirectory?: WatchDirectoryKind | WatchDirectoryKind; + fallbackPolling?: PollingWatchKind | PollingWatchKind; synchronousWatchDirectory?: boolean; [option: string]: CompilerOptionsValue | undefined; } @@ -2968,7 +2973,7 @@ namespace ts.server.protocol { indent: number; } - /** protocol.NavigationTree is identical to ts.NavigationTree, except using protocol.TextSpan instead of ts.TextSpan */ + /** protocol.NavigationTree is identical to NavigationTree, except using protocol.TextSpan instead of TextSpan */ export interface NavigationTree { text: string; kind: ScriptElementKind; @@ -3137,7 +3142,7 @@ namespace ts.server.protocol { tabSize?: number; newLineCharacter?: string; convertTabsToSpaces?: boolean; - indentStyle?: IndentStyle | ts.IndentStyle; + indentStyle?: IndentStyle | IndentStyle; trimTrailingWhitespace?: boolean; } @@ -3211,14 +3216,14 @@ namespace ts.server.protocol { inlineSourceMap?: boolean; inlineSources?: boolean; isolatedModules?: boolean; - jsx?: JsxEmit | ts.JsxEmit; + jsx?: JsxEmit | JsxEmit; lib?: string[]; locale?: string; mapRoot?: string; maxNodeModuleJsDepth?: number; - module?: ModuleKind | ts.ModuleKind; - moduleResolution?: ModuleResolutionKind | ts.ModuleResolutionKind; - newLine?: NewLineKind | ts.NewLineKind; + module?: ModuleKind | ModuleKind; + moduleResolution?: ModuleResolutionKind | ModuleResolutionKind; + newLine?: NewLineKind | NewLineKind; noEmit?: boolean; noEmitHelpers?: boolean; noEmitOnError?: boolean; @@ -3254,7 +3259,7 @@ namespace ts.server.protocol { suppressExcessPropertyErrors?: boolean; suppressImplicitAnyIndexErrors?: boolean; useDefineForClassFields?: boolean; - target?: ScriptTarget | ts.ScriptTarget; + target?: ScriptTarget | ScriptTarget; traceResolution?: boolean; resolveJsonModule?: boolean; types?: string[]; @@ -3303,4 +3308,4 @@ namespace ts.server.protocol { ES2020 = "ES2020", ESNext = "ESNext" } -} + diff --git a/src/server/scriptInfo.ts b/src/server/scriptInfo.ts index e362256b46b5e..d4bf6b785c285 100644 --- a/src/server/scriptInfo.ts +++ b/src/server/scriptInfo.ts @@ -1,4 +1,25 @@ -namespace ts.server { +import { ScriptVersionCache, AbsolutePositionAndLineText } from "./scriptVersionCache"; +import { ServerHost } from "./types"; +import { Debug } from "../compiler/debug"; +import { IScriptSnapshot, ScriptSnapshot, FormatCodeSettings, getDefaultFormatCodeSettings, emptyOptions } from "../services/types"; +import { TextSpan, SourceFile, Path, SourceFileLike, DocumentPositionMapper, ScriptKind } from "../compiler/types"; +import { createTextSpanFromBounds } from "../../built/local/compiler"; +import { computePositionOfLineAndCharacter, computeLineAndCharacterOfPosition, computeLineStarts } from "../compiler/scanner"; +import { hasTSFileExtension, getScriptKindFromFileName } from "../compiler/utilities"; +import { maxFileSize } from "./editorServices"; +import { LineInfo, getLineInfo } from "../compiler/sourcemap"; +import { NormalizedPath, Errors } from "./utilitiesPublic"; +import { stringContains, contains, unorderedRemoveItem, assign, forEach, some } from "../compiler/core"; +import { getBaseFileName, directorySeparator } from "../compiler/path"; +import { DocumentRegistryBucketKey } from "../../built/local/services"; +import { FileWatcher, FileWatcherEventKind } from "../compiler/sys"; +import { Project, isConfiguredProject, isInferredProject, ConfiguredProject, InferredProject, isExternalProject, ProjectKind } from "./project"; +import { clear } from "console"; +import { ExternalProject } from "./protocol"; +import { getSnapshotText } from "../services/utilities"; +import { isString } from "util"; +import { closeFileWatcherOf } from "../compiler/watchUtilities"; + export interface ScriptInfoVersion { svc: number; text: number; @@ -678,4 +699,4 @@ namespace ts.server { Debug.assert(location.line > 0, `Expected line to be non-${location.line === 0 ? "zero" : "negative"}`); Debug.assert(location.offset > 0, `Expected offset to be non-${location.offset === 0 ? "zero" : "negative"}`); } -} + diff --git a/src/server/scriptVersionCache.ts b/src/server/scriptVersionCache.ts index 3daa9968a2f52..53fd626bfa545 100644 --- a/src/server/scriptVersionCache.ts +++ b/src/server/scriptVersionCache.ts @@ -1,5 +1,12 @@ /*@internal*/ -namespace ts.server { + +import { createTextChangeRange, createTextSpan, collapseTextChangeRangesAcrossMultipleVersions, unchangedTextChangeRange } from "../../built/local/compiler"; +import { IScriptSnapshot } from "../services/types"; +import { TextSpan, TextChangeRange } from "../compiler/types"; +import { emptyArray } from "./utilitiesPublic"; +import { Debug } from "../compiler/debug"; +import { computeLineStarts } from "../compiler/scanner"; + const lineCollectionCapacity = 4; interface LineCollection { @@ -830,4 +837,4 @@ namespace ts.server { return 1; } } -} + diff --git a/src/server/session.ts b/src/server/session.ts index d02b8dd0e85dc..3df7198bae7ed 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -1,4 +1,24 @@ -namespace ts.server { +import { HostCancellationToken, TextChange, RenameLocation, ReferencedSymbol, ReferencedSymbolDefinitionInfo, DocumentSpan, PerformanceEvent, WithMetadata, DefinitionInfo, DefinitionInfoAndBoundSpan, ImplementationLocation, TextInsertion, RenameInfo, OutliningSpan, QuickInfo, CompletionInfo, CompletionEntry, CompletionEntryDetails, SignatureHelpItems, NavigationBarItem, NavigationTree, NavigateToItem, RefactorEditInfo, FileTextChanges, CodeFixAction, CombinedCodeActions, CodeActionCommand, CodeAction, SelectionRange, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall, FormatCodeSettings } from "../services/types"; +import { Project, isInferredProject, isExternalProject, isConfiguredProject, ProjectKind } from "./project"; +import { NormalizedPath, emptyArray, toNormalizedPath, Msg, Errors } from "./utilitiesPublic"; +import { CompilerOptions, Diagnostic, diagnosticCategoryName, DiagnosticRelatedInformation, LineAndCharacter, OperationCanceledException, Path, DocumentPosition, UserPreferences, TextSpan, ScriptKind, Extension, EmitResult, TextRange } from "../compiler/types"; +import { getEmitDeclarations, outFile } from "../compiler/utilities"; +import { flattenDiagnosticMessageText } from "../compiler/program"; +import { map, MultiMap, flatMapToMutable, flatMap, deduplicate, equateValues, contains, firstOrUndefined, find, memoize, tryAddToSet, arrayFrom, filter, concatenate, identity, createMap, mapDefined, startsWith, compareStringsCaseSensitiveUI, singleIterator, toArray, stringContains, toFileNameLowerCase, createMapFromTemplate, mapIterator, arrayIterator, mapDefinedIterator, arrayReverseIterator, first, isArray, isString } from "../compiler/core"; +import { getLineAndCharacterOfPosition, computeLineAndCharacterOfPosition, computeLineStarts } from "../compiler/scanner"; +import { textSpanEnd, createTextSpan, EmitOutput, createTextSpanFromBounds } from "../../built/local/compiler"; +import { Logger } from "../services/shims"; +import { LogLevel, Debug } from "../compiler/debug"; +import { ServerHost } from "./types"; +import { ProjectService, ProjectServiceEventHandler, ProjectServiceOptions, ProjectServiceEvent, ProjectsUpdatedInBackgroundEvent, ProjectLoadingStartEvent, ProjectLoadingFinishEvent, LargeFileReferencedEvent, ConfigFileDiagEvent, ProjectLanguageServiceStateEvent, ProjectInfoTelemetryEvent, updateProjectIfDirty, convertFormatOptions, convertUserPreferences, convertScriptKindName, ScriptInfoOrConfig, isConfigFile } from "./editorServices"; +import { documentSpansEqual, PossibleProgramFileInfo, getSnapshotText, mapOneOrMany } from "../services/utilities"; +import { Push } from "../compiler/corePublic"; +import { ITypingsInstaller } from "./typingsCache"; +import { perfLogger } from "../compiler/perfLogger"; +import { ScriptInfo } from "./scriptInfo"; +import { displayPartsToString, getSupportedCodeFixes } from "../services/services"; +import { fileExtensionIs, normalizePath } from "../compiler/path"; + interface StackTraceError extends Error { stack?: string; } @@ -2340,7 +2360,7 @@ namespace ts.server { private handlers = createMapFromTemplate<(request: protocol.Request) => HandlerResponse>({ [CommandNames.Status]: () => { - const response: protocol.StatusResponseBody = { version: ts.version }; // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier + const response: protocol.StatusResponseBody = { version}; return this.requiredResponse(response); }, [CommandNames.OpenExternalProject]: (request: protocol.OpenExternalProjectRequest) => { @@ -2883,4 +2903,4 @@ namespace ts.server { return text; } -} + diff --git a/src/server/types.ts b/src/server/types.ts index 671e854440df3..e3f4b4333f2e1 100644 --- a/src/server/types.ts +++ b/src/server/types.ts @@ -1,4 +1,4 @@ -declare namespace ts.server { + export interface CompressedData { length: number; compressionKind: string; @@ -17,4 +17,4 @@ declare namespace ts.server { trace?(s: string): void; require?(initialPath: string, moduleName: string): RequireResult; } -} + diff --git a/src/server/typingsCache.ts b/src/server/typingsCache.ts index e46fab53c79ab..9ae432435d933 100644 --- a/src/server/typingsCache.ts +++ b/src/server/typingsCache.ts @@ -1,4 +1,11 @@ -namespace ts.server { +import { InstallPackageOptions, ApplyCodeActionCommandResult } from "../services/types"; +import { Path, TypeAcquisition, CompilerOptions } from "../compiler/types"; +import { Project } from "./project"; +import { SortedReadonlyArray } from "../compiler/corePublic"; +import { ProjectService } from "./editorServices"; +import { returnFalse, notImplemented, noop, createMap, arrayIsEqualTo, sort } from "../compiler/core"; +import { emptyArray } from "./utilitiesPublic"; + export interface InstallPackageOptionsWithProject extends InstallPackageOptions { projectName: string; projectRootPath: Path; @@ -140,4 +147,4 @@ namespace ts.server { this.installer.onProjectClosed(project); } } -} + diff --git a/src/server/utilities.ts b/src/server/utilities.ts index 651c11555da02..192cef8dff5a7 100644 --- a/src/server/utilities.ts +++ b/src/server/utilities.ts @@ -1,5 +1,5 @@ /* @internal */ -namespace ts.server { +namespace server { export class ThrottledOperations { private readonly pendingTimeouts: Map = createMap(); private readonly logger?: Logger | undefined; diff --git a/src/server/utilitiesPublic.ts b/src/server/utilitiesPublic.ts index 5e9ba6b973223..8549484e25246 100644 --- a/src/server/utilitiesPublic.ts +++ b/src/server/utilitiesPublic.ts @@ -1,4 +1,10 @@ -namespace ts.server { +import { SortedReadonlyArray, SortedArray } from "../compiler/corePublic"; +import { Project } from "./project"; +import { TypeAcquisition, Path } from "../compiler/types"; +import { DiscoverTypings } from "../jsTyping/types"; +import { normalizePath, isRootedDiskPath, getNormalizedAbsolutePath } from "../compiler/path"; +import { createMap } from "../compiler/core"; + export enum LogLevel { terse, normal, @@ -125,4 +131,4 @@ namespace ts.server { export function createSortedArray(): SortedArray { return [] as any as SortedArray; // TODO: GH#19873 } -} + diff --git a/src/server/watchType.ts b/src/server/watchType.ts index 8cc5014b0e57b..6b163dd7c96a5 100644 --- a/src/server/watchType.ts +++ b/src/server/watchType.ts @@ -1,5 +1,7 @@ /* @internal */ -namespace ts { + +import { WatchType } from "../compiler/watch"; + // Additional tsserver specific watch information export interface WatchTypeRegistry { ClosedScriptInfo: "Closed Script info", @@ -17,4 +19,4 @@ namespace ts { WatchType.NoopConfigFileForInferredRoot = "Noop Config file for the inferred project root"; WatchType.MissingGeneratedFile = "Missing generated file"; WatchType.PackageJsonFile = "package.json file for import suggestions"; -} \ No newline at end of file + diff --git a/src/services/breakpoints.ts b/src/services/breakpoints.ts index eee180ffe144f..ce3f44a35e5f6 100644 --- a/src/services/breakpoints.ts +++ b/src/services/breakpoints.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.BreakpointResolver { + +import { SourceFile, NodeFlags, Node, TextSpan, NodeArray, SyntaxKind, VariableStatement, VariableDeclaration, PropertyDeclaration, PropertySignature, ParameterDeclaration, FunctionLikeDeclaration, Block, CatchClause, ExpressionStatement, ReturnStatement, WhileStatement, DoStatement, IfStatement, LabeledStatement, BreakOrContinueStatement, ForStatement, ForInStatement, ForOfStatement, SwitchStatement, CaseOrDefaultClause, TryStatement, ThrowStatement, ExportAssignment, ImportEqualsDeclaration, ImportDeclaration, ExportDeclaration, ModuleDeclaration, WithStatement, BindingPattern, DestructuringPattern, BinaryExpression, ArrayLiteralExpression, ObjectLiteralExpression, PropertyAssignment, TypeAssertion, ModifierFlags, VariableDeclarationList, Expression, ObjectLiteralElement, EnumDeclaration, ClassDeclaration, CaseBlock } from "../compiler/types"; +import { getTokenAtPosition, findPrecedingToken, findNextToken, isArrayLiteralOrObjectLiteralDestructuringPattern } from "./utilities"; +import { skipTrivia } from "../compiler/scanner"; +import { createTextSpanFromBounds, isFunctionLike, isVariableDeclarationList, isBindingPattern } from "../../built/local/compiler"; +import { isFunctionBlock, isExpressionNode, isAssignmentOperator, hasSyntacticModifier } from "../compiler/utilities"; +import { getModuleInstanceState, ModuleInstanceState } from "../compiler/binder"; +import { Debug } from "../compiler/debug"; +import { forEach, lastOrUndefined } from "../compiler/core"; + /** * Get the breakpoint span in given sourceFile */ @@ -720,4 +729,4 @@ namespace ts.BreakpointResolver { } } } -} + diff --git a/src/services/callHierarchy.ts b/src/services/callHierarchy.ts index 2718c76963a8a..0f0223131e04d 100644 --- a/src/services/callHierarchy.ts +++ b/src/services/callHierarchy.ts @@ -1,5 +1,19 @@ /* @internal */ -namespace ts.CallHierarchy { + +import { ClassExpression, Identifier, FunctionExpression, Node, VariableDeclaration, ArrowFunction, NodeFlags, SourceFile, ModuleDeclaration, FunctionDeclaration, ClassDeclaration, MethodDeclaration, GetAccessorDeclaration, SetAccessorDeclaration, SyntaxKind, TypeChecker, Program, EmitHint, FunctionLikeDeclaration, SymbolFlags, TextRange, TextSpan, CancellationToken, CallExpression, NewExpression, TaggedTemplateExpression, PropertyAccessExpression, ElementAccessExpression, Decorator, JsxOpeningLikeElement, TypeAssertion, AsExpression, ParameterDeclaration, AccessExpression, ModifierFlags, ClassLikeDeclaration } from "../compiler/types"; +import { isFunctionExpression, isClassExpression, isNamedDeclaration, isArrowFunction, isVariableDeclaration, isIdentifier, getCombinedNodeFlags, isSourceFile, isModuleDeclaration, isFunctionDeclaration, isClassDeclaration, isMethodDeclaration, isMethodSignature, isGetAccessorDeclaration, isSetAccessorDeclaration, getNameOfDeclaration, idText, isComputedPropertyName, isModuleBlock, getAssignedName, isConstructorDeclaration, isFunctionLikeDeclaration, createTextSpanFromBounds, isTaggedTemplateExpression, isJsxOpeningLikeElement, isClassLike, isPropertyDeclaration } from "../../built/local/compiler"; +import { Debug } from "../compiler/debug"; +import { find, indicesOf, map, compareStringsCaseSensitive, append, filter, forEach } from "../compiler/core"; +import { isStringOrNumericLiteralLike, usingSingleLineStringWriter, getFirstConstructorWithBody, findAncestor, isDeclarationName, isAccessExpression, isPartOfTypeNode, hasSyntacticModifier, getClassExtendsHeritageElement } from "../compiler/utilities"; +import { createPrinter } from "../compiler/emitter"; +import { CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from "./types"; +import { getNodeKind, getNodeModifiers, isCallOrNewExpressionTarget, isTaggedTemplateTag, isDecoratorTarget, isJsxOpeningLikeElementTagName, isRightSideOfPropertyAccess, isArgumentExpressionOfElementAccess, createTextRangeFromNode, createTextSpanFromRange } from "./utilities"; +import { skipTrivia } from "../compiler/scanner"; +import { getNodeId } from "../compiler/checker"; +import { group } from "console"; +import { isArray } from "util"; +import { forEachChild } from "../compiler/parser"; + export type NamedExpression = | ClassExpression & { name: Identifier } | FunctionExpression & { name: Identifier } @@ -511,4 +525,4 @@ namespace ts.CallHierarchy { } return group(collectCallSites(program, declaration), getCallSiteGroupKey, entries => convertCallSiteGroupToOutgoingCall(program, entries)); } -} + diff --git a/src/services/classifier.ts b/src/services/classifier.ts index d10f67e0e941e..ba509462c7f94 100644 --- a/src/services/classifier.ts +++ b/src/services/classifier.ts @@ -1,4 +1,15 @@ -namespace ts { +import { Classifier, EndOfLineState, ClassificationResult, Classifications, ClassificationType, ClassificationInfo, TokenClass, ClassifiedSpan, ClassificationTypeNames } from "./types"; +import { createScanner, Scanner, couldStartTrivia, isLineBreak } from "../compiler/scanner"; +import { ScriptTarget, SyntaxKind, CharacterCodes, TypeChecker, CancellationToken, SourceFile, UnderscoreEscapedMap, TextSpan, Node, SymbolFlags, HasJSDoc, JSDoc, JSDocParameterTag, JSDocTemplateTag, JSDocTypeTag, JSDocReturnTag, commentPragmas, JsxOpeningElement, JsxClosingElement, JsxSelfClosingElement, JsxAttribute, ClassDeclaration, TypeParameterDeclaration, InterfaceDeclaration, EnumDeclaration, ModuleDeclaration, ParameterDeclaration } from "../compiler/types"; +import { isTrivia, isKeyword, nodeIsMissing, setParent, isThisIdentifier } from "../compiler/utilities"; +import { lastOrUndefined, arrayToNumericMap, some } from "../compiler/core"; +import { Debug } from "../compiler/debug"; +import { isTemplateLiteralKind, textSpanIntersectsWith, isIdentifier, isModuleDeclaration, createTextSpan, isJSDoc, isToken, decodedTextSpanIntersectsWith } from "../../built/local/compiler"; +import { Push } from "../compiler/corePublic"; +import { isAccessibilityModifier, getMeaningFromLocation, SemanticMeaning, getTypeArgumentOrTypeParameterList, isPunctuation } from "./utilities"; +import { getModuleInstanceState, ModuleInstanceState } from "../compiler/binder"; +import { parseIsolatedJSDocComment } from "../compiler/parser"; + /** The classifier is used for syntactic highlighting in editors via the TSServer */ export function createClassifier(): Classifier { const scanner = createScanner(ScriptTarget.Latest, /*skipTrivia*/ false); @@ -778,7 +789,7 @@ namespace ts { } // Limiting classification to exactly the elements and attributes - // defined in `ts.commentPragmas` would be excessive, but we can avoid + // defined in `commentPragmas` would be excessive, but we can avoid // some obvious false positives (e.g. in XML-like doc comments) by // checking the element name. // eslint-disable-next-line no-in-operator @@ -1060,4 +1071,4 @@ namespace ts { } } } -} + diff --git a/src/services/codeFixProvider.ts b/src/services/codeFixProvider.ts index ab88aa97a3d7e..6f3e03e585c01 100644 --- a/src/services/codeFixProvider.ts +++ b/src/services/codeFixProvider.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.codefix { + +import { createMultiMap, createMap, arrayFrom, contains, flatMap, map, cast } from "../compiler/core"; +import { CodeFixRegistration, FileTextChanges, CodeActionCommand, CodeFixAction, CodeFixContext, CodeFixAllContext, CombinedCodeActions, TextChange, CodeFixContextBase } from "./types"; +import { DiagnosticMessage, Diagnostic, DiagnosticWithLocation } from "../compiler/types"; +import { isArray, isString } from "util"; +import { formatStringFromArgs, getLocaleSpecificMessage } from "../compiler/utilities"; +import { Debug } from "../compiler/debug"; +import { Push } from "../compiler/corePublic"; +import { computeSuggestionDiagnostics } from "./suggestionDiagnostics"; + const errorCodeToFixes = createMultiMap(); const fixIdToRegistration = createMap(); @@ -96,4 +105,4 @@ namespace ts.codefix { ...computeSuggestionDiagnostics(sourceFile, program, cancellationToken) ]; } -} + diff --git a/src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts b/src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts index 3351ef9e5a3a7..d91f4e074cf92 100644 --- a/src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts +++ b/src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, AsExpression, TypeAssertion, SyntaxKind } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { Debug } from "../../compiler/debug"; +import { findAncestor } from "../../compiler/utilities"; +import { isAsExpression, isTypeAssertionExpression, factory } from "../../../built/local/compiler"; + const fixId = "addConvertToUnknownForNonOverlappingTypes"; const errorCodes = [Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code]; registerCodeFix({ @@ -20,4 +27,4 @@ namespace ts.codefix { : factory.createTypeAssertion(factory.createKeywordTypeNode(SyntaxKind.UnknownKeyword), assertion.expression); changeTracker.replaceNode(sourceFile, assertion.expression, replacement); } -} + diff --git a/src/services/codefixes/addEmptyExportDeclaration.ts b/src/services/codefixes/addEmptyExportDeclaration.ts index 96b7a81e17bb8..8d8d383a8eff5 100644 --- a/src/services/codefixes/addEmptyExportDeclaration.ts +++ b/src/services/codefixes/addEmptyExportDeclaration.ts @@ -1,5 +1,8 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixActionWithoutFixAll } from "../codeFixProvider"; +import { factory } from "../../../built/local/compiler"; + registerCodeFix({ errorCodes: [Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code], getCodeActions: context => { @@ -17,4 +20,4 @@ namespace ts.codefix { return [createCodeFixActionWithoutFixAll("addEmptyExportDeclaration", changes, Diagnostics.Add_export_to_make_this_file_into_a_module)]; }, }); -} \ No newline at end of file + diff --git a/src/services/codefixes/addMissingAsync.ts b/src/services/codefixes/addMissingAsync.ts index 5876805ee1c02..9c8dc47130284 100644 --- a/src/services/codefixes/addMissingAsync.ts +++ b/src/services/codefixes/addMissingAsync.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.codefix { + +import { FileTextChanges, CodeFixContext, CodeFixAllContext } from "../types"; +import { registerCodeFix, codeFixAll, createCodeFixAction } from "../codeFixProvider"; +import { find, some } from "../../compiler/core"; +import { TextSpan, ArrowFunction, FunctionDeclaration, FunctionExpression, MethodDeclaration, SourceFile, ModifierFlags, Diagnostic } from "../../compiler/types"; +import { getNodeId } from "../../compiler/checker"; +import { factory, textSpanEnd, isArrowFunction, isMethodDeclaration, isFunctionExpression, isFunctionDeclaration } from "../../../built/local/compiler"; +import { getSynthesizedDeepClone, getTokenAtPosition, textSpansEqual, createTextSpanFromNode } from "../utilities"; +import { getSyntacticModifierFlags, findAncestor } from "../../compiler/utilities"; +import { isNumber } from "util"; + type ContextualTrackChangesFunction = (cb: (changeTracker: textChanges.ChangeTracker) => void) => FileTextChanges[]; const fixId = "addMissingAsync"; const errorCodes = [ @@ -84,4 +94,4 @@ namespace ts.codefix { !!relatedInformation && some(relatedInformation, related => related.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code); } -} + diff --git a/src/services/codefixes/addMissingAwait.ts b/src/services/codefixes/addMissingAwait.ts index 1b16a33deb382..3cc9372a114a4 100644 --- a/src/services/codefixes/addMissingAwait.ts +++ b/src/services/codefixes/addMissingAwait.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.codefix { + +import { FileTextChanges, CodeFixContext, CodeFixAllContext } from "../types"; +import { registerCodeFix, codeFixAll, createCodeFixActionWithoutFixAll, createCodeFixAction } from "../codeFixProvider"; +import { compact, forEach, some, tryCast, find, contains, tryAddToSet } from "../../compiler/core"; +import { Expression, TypeChecker, SourceFile, TextSpan, CancellationToken, Program, Node, SyntaxKind, ModifierFlags, Identifier, Diagnostic, TypeFlags, NodeFlags } from "../../compiler/types"; +import { isNumber } from "util"; +import { textSpansEqual, getTokenAtPosition, createTextSpanFromNode, findPrecedingToken, positionIsASICandidate } from "../utilities"; +import { findAncestor, getAncestor, hasSyntacticModifier } from "../../compiler/utilities"; +import { textSpanEnd, isExpression, isVariableDeclaration, isIdentifier, isPropertyAccessExpression, isBinaryExpression, isArrowFunction, isBlock, factory, isCallOrNewExpression } from "../../../built/local/compiler"; +import { getSymbolId } from "../../compiler/checker"; + type ContextualTrackChangesFunction = (cb: (changeTracker: textChanges.ChangeTracker) => void) => FileTextChanges[]; const fixId = "addMissingAwait"; const propertyAccessCode = Diagnostics.Property_0_does_not_exist_on_type_1.code; @@ -288,4 +298,4 @@ namespace ts.codefix { changeTracker.insertText(sourceFile, beforeNode.getStart(sourceFile), ";"); } } -} + diff --git a/src/services/codefixes/addMissingConst.ts b/src/services/codefixes/addMissingConst.ts index 1c819cafe0f73..aced0ebd5d6da 100644 --- a/src/services/codefixes/addMissingConst.ts +++ b/src/services/codefixes/addMissingConst.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { NodeSet, findAncestor, isAssignmentExpression } from "../../compiler/utilities"; +import { SourceFile, Program, Node, SyntaxKind, Expression, TypeChecker } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { isForInOrOfStatement, isBinaryExpression, isExpressionStatement, isArrayLiteralExpression, isIdentifier } from "../../../built/local/compiler"; +import { every } from "../../compiler/core"; + const fixId = "addMissingConst"; const errorCodes = [ Diagnostics.Cannot_find_name_0.code, @@ -108,4 +115,4 @@ namespace ts.codefix { && isIdentifier(expression.left) && !checker.getSymbolAtLocation(expression.left); } -} + diff --git a/src/services/codefixes/addMissingDeclareProperty.ts b/src/services/codefixes/addMissingDeclareProperty.ts index e08929b9dd132..5ea4815fe4eb0 100644 --- a/src/services/codefixes/addMissingDeclareProperty.ts +++ b/src/services/codefixes/addMissingDeclareProperty.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { NodeSet } from "../../compiler/utilities"; +import { SourceFile, Node, SyntaxKind } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { isIdentifier } from "../../../built/local/compiler"; + const fixId = "addMissingDeclareProperty"; const errorCodes = [ Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code, @@ -31,4 +37,4 @@ namespace ts.codefix { changeTracker.insertModifierBefore(sourceFile, SyntaxKind.DeclareKeyword, declaration); } } -} + diff --git a/src/services/codefixes/addMissingInvocationForDecorator.ts b/src/services/codefixes/addMissingInvocationForDecorator.ts index e772b4a82f267..51756e45b1d7c 100644 --- a/src/services/codefixes/addMissingInvocationForDecorator.ts +++ b/src/services/codefixes/addMissingInvocationForDecorator.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { findAncestor } from "../../compiler/utilities"; +import { isDecorator, factory } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; + const fixId = "addMissingInvocationForDecorator"; const errorCodes = [Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code]; registerCodeFix({ @@ -19,4 +26,4 @@ namespace ts.codefix { const replacement = factory.createCallExpression(decorator.expression, /*typeArguments*/ undefined, /*argumentsArray*/ undefined); changeTracker.replaceNode(sourceFile, decorator.expression, replacement); } -} + diff --git a/src/services/codefixes/addNameToNamelessParameter.ts b/src/services/codefixes/addNameToNamelessParameter.ts index 07bc1bea7e3c6..2613c9ca92c7d 100644 --- a/src/services/codefixes/addNameToNamelessParameter.ts +++ b/src/services/codefixes/addNameToNamelessParameter.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { isIdentifier, isParameter, factory } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; + const fixId = "addNameToNamelessParameter"; const errorCodes = [Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code]; registerCodeFix({ @@ -34,4 +40,4 @@ namespace ts.codefix { param.initializer); changeTracker.replaceNode(sourceFile, token, replacement); } -} + diff --git a/src/services/codefixes/annotateWithTypeFromJSDoc.ts b/src/services/codefixes/annotateWithTypeFromJSDoc.ts index 274902c1041bb..175738f299ddf 100644 --- a/src/services/codefixes/annotateWithTypeFromJSDoc.ts +++ b/src/services/codefixes/annotateWithTypeFromJSDoc.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, FunctionLikeDeclaration, VariableDeclaration, PropertySignature, PropertyDeclaration, Node, ParameterDeclaration, SyntaxKind, TypeNode, JSDocOptionalType, JSDocNonNullableType, JSDocNullableType, JSDocVariadicType, JSDocFunctionType, TypeReferenceNode, EmitFlags } from "../../compiler/types"; +import { getTokenAtPosition, findChildOfKind } from "../utilities"; +import { tryCast, first, last, neverArray } from "../../compiler/core"; +import { isParameter, isFunctionLikeDeclaration, getJSDocReturnType, getJSDocType, isArrowFunction, factory, setEmitFlags, isIdentifier } from "../../../built/local/compiler"; +import { getJSDocTypeParameterDeclarations, isJSDocIndexSignature } from "../../compiler/utilities"; +import { Debug } from "../../compiler/debug"; +import { visitEachChild, visitNode, visitNodes } from "../../compiler/visitorPublic"; +import { nullTransformationContext } from "../../compiler/transformer"; + const fixId = "annotateWithTypeFromJSDoc"; const errorCodes = [Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code]; registerCodeFix({ @@ -77,7 +87,7 @@ namespace ts.codefix { switch (node.kind) { case SyntaxKind.JSDocAllType: case SyntaxKind.JSDocUnknownType: - return factory.createTypeReferenceNode("any", emptyArray); + return factory.createTypeReferenceNode("any", neverArray); case SyntaxKind.JSDocOptionalType: return transformJSDocOptionalType(node as JSDocOptionalType); case SyntaxKind.JSDocNonNullableType: @@ -98,11 +108,11 @@ namespace ts.codefix { } function transformJSDocOptionalType(node: JSDocOptionalType) { - return factory.createUnionTypeNode([visitNode(node.type, transformJSDocType), factory.createTypeReferenceNode("undefined", emptyArray)]); + return factory.createUnionTypeNode([visitNode(node.type, transformJSDocType), factory.createTypeReferenceNode("undefined", neverArray)]); } function transformJSDocNullableType(node: JSDocNullableType) { - return factory.createUnionTypeNode([visitNode(node.type, transformJSDocType), factory.createTypeReferenceNode("null", emptyArray)]); + return factory.createUnionTypeNode([visitNode(node.type, transformJSDocType), factory.createTypeReferenceNode("null", neverArray)]); } function transformJSDocVariadicType(node: JSDocVariadicType) { @@ -112,7 +122,7 @@ namespace ts.codefix { function transformJSDocFunctionType(node: JSDocFunctionType) { // TODO: This does not properly handle `function(new:C, string)` per https://github.com/google/closure-compiler/wiki/Types-in-the-Closure-Type-System#the-javascript-type-language // however we do handle it correctly in `serializeTypeForDeclaration` in checker.ts - return factory.createFunctionTypeNode(emptyArray, node.parameters.map(transformJSDocParameter), node.type ?? factory.createKeywordTypeNode(SyntaxKind.AnyKeyword)); + return factory.createFunctionTypeNode(neverArray, node.parameters.map(transformJSDocParameter), node.type ?? factory.createKeywordTypeNode(SyntaxKind.AnyKeyword)); } function transformJSDocParameter(node: ParameterDeclaration) { @@ -146,7 +156,7 @@ namespace ts.codefix { } name = factory.createIdentifier(text); if ((text === "Array" || text === "Promise") && !node.typeArguments) { - args = factory.createNodeArray([factory.createTypeReferenceNode("any", emptyArray)]); + args = factory.createNodeArray([factory.createTypeReferenceNode("any", neverArray)]); } else { args = visitNodes(node.typeArguments, transformJSDocType); @@ -168,4 +178,4 @@ namespace ts.codefix { setEmitFlags(indexSignature, EmitFlags.SingleLine); return indexSignature; } -} + diff --git a/src/services/codefixes/convertConstToLet.ts b/src/services/codefixes/convertConstToLet.ts index 610aaf5daa4e2..ff9bec9b71ab3 100644 --- a/src/services/codefixes/convertConstToLet.ts +++ b/src/services/codefixes/convertConstToLet.ts @@ -1,5 +1,9 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction } from "../codeFixProvider"; +import { SourceFile, Program, VariableStatement } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; + const fixId = "fixConvertConstToLet"; const errorCodes = [Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code]; @@ -29,4 +33,4 @@ namespace ts.codefix { const start = variableStatement.getStart(); changes.replaceRangeWithText(sourceFile, { pos: start, end: start + 5 }, "let"); } -} + diff --git a/src/services/codefixes/convertFunctionToEs6Class.ts b/src/services/codefixes/convertFunctionToEs6Class.ts index 0ca2135307f95..c5932c3d802ed 100644 --- a/src/services/codefixes/convertFunctionToEs6Class.ts +++ b/src/services/codefixes/convertFunctionToEs6Class.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { CodeFixContext } from "../types"; +import { SourceFile, TypeChecker, SymbolFlags, Node, ClassDeclaration, SyntaxKind, FunctionDeclaration, VariableDeclaration, VariableDeclarationList, ClassElement, PropertyAccessExpression, ObjectLiteralExpression, Expression, Modifier, BinaryExpression, FunctionExpression, ArrowFunction, Block, ObjectLiteralElementLike } from "../../compiler/types"; +import { getTokenAtPosition, copyLeadingComments } from "../utilities"; +import { hasJSDocNodes, isPropertyAccessExpression, isBinaryExpression, isObjectLiteralExpression, factory, isFunctionLike, isMethodDeclaration, isGetOrSetAccessorDeclaration, isPropertyAssignment, isFunctionExpression, isArrowFunction, isIdentifier } from "../../../built/local/compiler"; +import { every, flatMap, concatenate, filter } from "../../compiler/core"; +import { isSourceFileJS } from "../../compiler/utilities"; + const fixId = "convertFunctionToEs6Class"; const errorCodes = [Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code]; registerCodeFix({ @@ -264,4 +272,4 @@ namespace ts.codefix { if (isIdentifier(x.name) && x.name.text === "constructor") return true; return false; } -} + diff --git a/src/services/codefixes/convertToAsyncFunction.ts b/src/services/codefixes/convertToAsyncFunction.ts index 03a7f167cff91..c834944c1d7e8 100644 --- a/src/services/codefixes/convertToAsyncFunction.ts +++ b/src/services/codefixes/convertToAsyncFunction.ts @@ -1,5 +1,17 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { CodeFixContext, CodeFixContextBase } from "../types"; +import { BindingPattern, Type, Identifier, TypeChecker, SourceFile, FunctionLikeDeclaration, SyntaxKind, Block, ReturnStatement, Node, CallExpression, Expression, GeneratedIdentifierFlags, Statement, VariableStatement, UnionReduction, NodeFlags, TypeNode, SignatureKind, FunctionExpression, ArrowFunction, Signature, BindingName } from "../../compiler/types"; +import { getTokenAtPosition, hasPropertyAccessExpressionWithName, getSynthesizedDeepClone, getSynthesizedDeepCloneWithRenames } from "../utilities"; +import { isIdentifier, isVariableDeclaration, isFunctionLikeDeclaration, isBlock, isCallExpression, isFunctionLike, isExpression, isParameter, factory, isBindingElement, isPropertyAccessExpression, isReturnStatement, isOmittedExpression } from "../../../built/local/compiler"; +import { tryCast, createMap, neverArray, forEach, createMultiMap, firstOrUndefined, compact, lastOrUndefined, flatMap, every } from "../../compiler/core"; +import { getContainingFunction, isInJSFile, forEachReturnStatement } from "../../compiler/utilities"; +import { forEachChild } from "../../compiler/parser"; +import { isReturnStatementWithFixablePromiseHandler, isFixablePromiseHandler } from "../suggestionDiagnostics"; +import { getNodeId, getSymbolId } from "../../compiler/checker"; +import { Debug } from "../../compiler/debug"; + const fixId = "convertToAsyncFunction"; const errorCodes = [Diagnostics.This_may_be_converted_to_an_async_function.code]; let codeActionSucceeded = true; @@ -65,7 +77,7 @@ namespace ts.codefix { const isInJavascript = isInJSFile(functionToConvert); const setOfExpressionsToReturn = getAllPromiseExpressionsToReturn(functionToConvert, checker); const functionToConvertRenamed = renameCollidingVarNames(functionToConvert, checker, synthNamesMap, context.sourceFile); - const returnStatements = functionToConvertRenamed.body && isBlock(functionToConvertRenamed.body) ? getReturnStatementsWithPromiseHandlers(functionToConvertRenamed.body) : emptyArray; + const returnStatements = functionToConvertRenamed.body && isBlock(functionToConvertRenamed.body) ? getReturnStatementsWithPromiseHandlers(functionToConvertRenamed.body) : neverArray; const transformer: Transformer = { checker, synthNamesMap, setOfExpressionsToReturn, isInJSFile: isInJavascript }; if (!returnStatements.length) { @@ -203,14 +215,14 @@ namespace ts.codefix { } function getNewNameIfConflict(name: Identifier, originalNames: ReadonlyMap): SynthIdentifier { - const numVarsSameName = (originalNames.get(name.text) || emptyArray).length; + const numVarsSameName = (originalNames.get(name.text) || neverArray).length; const identifier = numVarsSameName === 0 ? name : factory.createIdentifier(name.text + "_" + numVarsSameName); return createSynthIdentifier(identifier); } function silentFail() { codeActionSucceeded = false; - return emptyArray; + return neverArray; } // dispatch function to recursively build the refactoring @@ -424,7 +436,7 @@ namespace ts.codefix { seenReturnStatement); } else { - const innerRetStmts = isFixablePromiseHandler(funcBody) ? [factory.createReturnStatement(funcBody)] : emptyArray; + const innerRetStmts = isFixablePromiseHandler(funcBody) ? [factory.createReturnStatement(funcBody)] : neverArray; const innerCbBody = getInnerTransformationBody(transformer, innerRetStmts, prevArgName); if (innerCbBody.length > 0) { @@ -451,7 +463,7 @@ namespace ts.codefix { // If no cases apply, we've found a transformation body we don't know how to handle, so the refactoring should no-op to avoid deleting code. return silentFail(); } - return emptyArray; + return neverArray; } function getLastCallSignature(type: Type, checker: TypeChecker): Signature | undefined { @@ -580,7 +592,7 @@ namespace ts.codefix { return { kind: SynthBindingNameKind.Identifier, identifier, types, hasBeenDeclared: false }; } - function createSynthBindingPattern(bindingPattern: BindingPattern, elements: readonly SynthBindingName[] = emptyArray, types: Type[] = []): SynthBindingPattern { + function createSynthBindingPattern(bindingPattern: BindingPattern, elements: readonly SynthBindingName[] = neverArray, types: Type[] = []): SynthBindingPattern { return { kind: SynthBindingNameKind.BindingPattern, bindingPattern, elements, types }; } @@ -595,4 +607,4 @@ namespace ts.codefix { function shouldReturn(expression: Expression, transformer: Transformer): boolean { return !!expression.original && transformer.setOfExpressionsToReturn.has(getNodeId(expression.original)); } -} + diff --git a/src/services/codefixes/convertToEs6Module.ts b/src/services/codefixes/convertToEs6Module.ts index 77f18a8b5cefa..b5b02222006ad 100644 --- a/src/services/codefixes/convertToEs6Module.ts +++ b/src/services/codefixes/convertToEs6Module.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixActionWithoutFixAll } from "../codeFixProvider"; +import { getQuotePreference, QuotePreference, makeImport, getSynthesizedDeepClone, findChildOfKind, getSynthesizedDeepClones } from "../utilities"; +import { SourceFile, SyntaxKind, TypeChecker, ScriptTarget, SymbolFlags, PropertyAccessExpression, Identifier, Statement, VariableStatement, ExpressionStatement, BinaryExpression, BindingName, StringLiteralLike, Node, ObjectLiteralExpression, ObjectLiteralElementLike, __String, ExportDeclaration, Expression, FunctionExpression, ArrowFunction, ClassExpression, BindingElement, ImportSpecifier, Modifier, MethodDeclaration, FunctionDeclaration, ClassDeclaration, ImportDeclaration, NodeFlags, ExportSpecifier } from "../../compiler/types"; +import { getResolvedModule, importFromModuleSpecifier, isRequireCall, isNonContextualKeyword, createRange, emptyUnderscoreEscapedMap } from "../../compiler/utilities"; +import { factory, isPropertyAccessExpression, isIdentifier, isBinaryExpression, isObjectLiteralExpression, isFunctionExpression, isArrowFunction, isClassExpression } from "../../../built/local/compiler"; +import { createMap, flatMap, mapAllOrFail, arrayFrom, mapIterator, createMultiMap, concatenate } from "../../compiler/core"; +import { isExportsOrModuleExportsOrAlias } from "../../compiler/binder"; +import { Debug } from "../../compiler/debug"; +import { moduleSpecifierToValidIdentifier } from "./importFixes"; + registerCodeFix({ errorCodes: [Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code], getCodeActions(context) { @@ -524,4 +534,4 @@ namespace ts.codefix { exportSpecifiers && factory.createNamedExports(exportSpecifiers), moduleSpecifier === undefined ? undefined : factory.createStringLiteral(moduleSpecifier)); } -} + diff --git a/src/services/codefixes/convertToMappedObjectType.ts b/src/services/codefixes/convertToMappedObjectType.ts index 600ef5a1fd86c..e8d23449d2c11 100644 --- a/src/services/codefixes/convertToMappedObjectType.ts +++ b/src/services/codefixes/convertToMappedObjectType.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { InterfaceDeclaration, TypeAliasDeclaration, IndexSignatureDeclaration, SourceFile, TypeNode, TypeLiteralNode, SyntaxKind } from "../../compiler/types"; +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { idText, isIndexSignatureDeclaration, isClassDeclaration, isInterfaceDeclaration, isTypeAliasDeclaration, factory, isIdentifier } from "../../../built/local/compiler"; +import { getTokenAtPosition } from "../utilities"; +import { cast, first, neverArray } from "../../compiler/core"; +import { hasEffectiveReadonlyModifier, getAllSuperTypeNodes } from "../../compiler/utilities"; + const fixIdAddMissingTypeof = "fixConvertToMappedObjectType"; const fixId = fixIdAddMissingTypeof; const errorCodes = [Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code]; @@ -49,8 +56,8 @@ namespace ts.codefix { const intersectionType = factory.createIntersectionTypeNode([ ...getAllSuperTypeNodes(container), mappedIntersectionType, - ...(otherMembers.length ? [factory.createTypeLiteralNode(otherMembers)] : emptyArray), + ...(otherMembers.length ? [factory.createTypeLiteralNode(otherMembers)] : neverArray), ]); changes.replaceNode(sourceFile, container, createTypeAliasFromInterface(container, intersectionType)); } -} + diff --git a/src/services/codefixes/convertToTypeOnlyExport.ts b/src/services/codefixes/convertToTypeOnlyExport.ts index 35510249927a9..f236d1eeb61d6 100644 --- a/src/services/codefixes/convertToTypeOnlyExport.ts +++ b/src/services/codefixes/convertToTypeOnlyExport.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { createMap, tryCast, filter, contains } from "../../compiler/core"; +import { addToSeen } from "../../compiler/utilities"; +import { getNodeId } from "../../compiler/checker"; +import { TextSpan, SourceFile, ExportSpecifier } from "../../compiler/types"; +import { getTokenAtPosition, getDiagnosticsWithinSpan, createTextSpanFromNode, findDiagnosticForNode } from "../utilities"; +import { isExportSpecifier, factory } from "../../../built/local/compiler"; +import { CodeFixContextBase } from "../types"; + const errorCodes = [Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code]; const fixId = "convertToTypeOnlyExport"; registerCodeFix({ @@ -80,4 +89,4 @@ namespace ts.codefix { return element === originExportSpecifier || findDiagnosticForNode(element, diagnostics)?.code === errorCodes[0]; }); } -} + diff --git a/src/services/codefixes/convertToTypeOnlyImport.ts b/src/services/codefixes/convertToTypeOnlyImport.ts index 7079ee8d2ba22..d1a0cc11a78d6 100644 --- a/src/services/codefixes/convertToTypeOnlyImport.ts +++ b/src/services/codefixes/convertToTypeOnlyImport.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { TextSpan, SourceFile, ImportDeclaration } from "../../compiler/types"; +import { tryCast } from "../../compiler/core"; +import { getTokenAtPosition } from "../utilities"; +import { isImportDeclaration, factory } from "../../../built/local/compiler"; +import { CodeFixContextBase } from "../types"; + const errorCodes = [Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error.code]; const fixId = "convertToTypeOnlyImport"; registerCodeFix({ @@ -49,4 +56,4 @@ namespace ts.codefix { importDeclaration.moduleSpecifier)); } } -} + diff --git a/src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts b/src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts index d2462546c6220..ccece30661049 100644 --- a/src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts +++ b/src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, QualifiedName, Identifier } from "../../compiler/types"; +import { findAncestor } from "../../compiler/utilities"; +import { getTokenAtPosition } from "../utilities"; +import { isQualifiedName, isIdentifier, factory } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; + const fixId = "correctQualifiedNameToIndexedAccessType"; const errorCodes = [Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code]; registerCodeFix({ @@ -33,4 +40,4 @@ namespace ts.codefix { factory.createLiteralTypeNode(factory.createStringLiteral(rightText))); changeTracker.replaceNode(sourceFile, qualifiedName, replacement); } -} + diff --git a/src/services/codefixes/disableJsDiagnostics.ts b/src/services/codefixes/disableJsDiagnostics.ts index 4469ffb6b716f..4fc93e337e047 100644 --- a/src/services/codefixes/disableJsDiagnostics.ts +++ b/src/services/codefixes/disableJsDiagnostics.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.codefix { + +import { mapDefined, tryAddToSet } from "../../compiler/core"; +import { DiagnosticCategory, SourceFile } from "../../compiler/types"; +import { registerCodeFix, createCodeFixActionWithoutFixAll, createFileTextChanges, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { isInJSFile, isCheckJsEnabledForFile } from "../../compiler/utilities"; +import { getNewLineOrDefaultFromHost, createTextChange } from "../utilities"; +import { CodeFixAction } from "../types"; +import { createTextSpanFromBounds, createTextSpan } from "../../../built/local/compiler"; +import { getLineAndCharacterOfPosition } from "../../compiler/scanner"; + const fixName = "disableJsDiagnostics"; const fixId = "disableJsDiagnostics"; const errorCodes = mapDefined(Object.keys(Diagnostics) as readonly (keyof typeof Diagnostics)[], key => { @@ -53,4 +62,4 @@ namespace ts.codefix { changes.insertCommentBeforeLine(sourceFile, lineNumber, position, " @ts-ignore"); } } -} + diff --git a/src/services/codefixes/fixAddMissingMember.ts b/src/services/codefixes/fixAddMissingMember.ts index 9d48f054226b9..a1b98b186c047 100644 --- a/src/services/codefixes/fixAddMissingMember.ts +++ b/src/services/codefixes/fixAddMissingMember.ts @@ -1,5 +1,17 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, createCombinedCodeActions, eachDiagnostic, createCodeFixActionWithoutFixAll } from "../codeFixProvider"; +import { concatenate, createMap, find, tryCast, singleElementArray, some } from "../../compiler/core"; +import { NodeMap, addToSeen, isSourceFileJS, getFirstConstructorWithBody, findAncestor } from "../../compiler/utilities"; +import { ClassOrInterface, getAllSupers } from "./generateAccessors"; +import { getNodeId } from "../../compiler/checker"; +import { isPrivateIdentifier, isInterfaceDeclaration, isIdentifier, isPropertyAccessExpression, isClassLike, isCallExpression, isEnumDeclaration, factory, isPropertyDeclaration, isMethodDeclaration, isConstructorDeclaration } from "../../../built/local/compiler"; +import { ModifierFlags, Identifier, EnumDeclaration, CallExpression, PrivateIdentifier, SourceFile, TypeChecker, Program, TypeReference, ClassLikeDeclaration, SyntaxKind, Expression, Node, TypeNode, BinaryExpression, PropertyDeclaration, TypeFlags } from "../../compiler/types"; +import { getTokenAtPosition, skipConstraint, startsWithUnderscore } from "../utilities"; +import { CodeFixContext, CodeFixAction, CodeFixContextBase } from "../types"; +import { createImportAdder } from "./importFixes"; +import { createMethodFromCallExpression } from "./helpers"; + const fixName = "addMissingMember"; const errorCodes = [ Diagnostics.Property_0_does_not_exist_on_type_1.code, @@ -350,4 +362,4 @@ namespace ts.codefix { trailingTriviaOption: textChanges.TrailingTriviaOption.Exclude }); } -} + diff --git a/src/services/codefixes/fixAddMissingNewOperator.ts b/src/services/codefixes/fixAddMissingNewOperator.ts index cd8eb9c8c212c..ae73b001eab3a 100644 --- a/src/services/codefixes/fixAddMissingNewOperator.ts +++ b/src/services/codefixes/fixAddMissingNewOperator.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, TextSpan, Node } from "../../compiler/types"; +import { cast } from "../../compiler/core"; +import { isCallExpression, factory, textSpanEnd } from "../../../built/local/compiler"; +import { getTokenAtPosition } from "../utilities"; + const fixId = "addMissingNewOperator"; const errorCodes = [Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code]; registerCodeFix({ @@ -29,4 +35,4 @@ namespace ts.codefix { } return token; } -} + diff --git a/src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts b/src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts index e90bbad826861..7c880b6a86547 100644 --- a/src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts +++ b/src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, ImportTypeNode, SyntaxKind } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { Debug } from "../../compiler/debug"; +import { factory } from "../../../built/local/compiler"; + const fixIdAddMissingTypeof = "fixAddModuleReferTypeMissingTypeof"; const fixId = fixIdAddMissingTypeof; const errorCodes = [Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code]; @@ -28,4 +34,4 @@ namespace ts.codefix { const newTypeNode = factory.updateImportTypeNode(importType, importType.argument, importType.qualifier, importType.typeArguments, /* isTypeOf */ true); changes.replaceNode(sourceFile, importType, newTypeNode); } -} + diff --git a/src/services/codefixes/fixAwaitInSyncFunction.ts b/src/services/codefixes/fixAwaitInSyncFunction.ts index f09b204de64b7..ea388f53f3093 100644 --- a/src/services/codefixes/fixAwaitInSyncFunction.ts +++ b/src/services/codefixes/fixAwaitInSyncFunction.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { createMap, first } from "../../compiler/core"; +import { addToSeen, getContainingFunction, getEntityNameFromTypeNode } from "../../compiler/utilities"; +import { getNodeId } from "../../compiler/checker"; +import { FunctionDeclaration, MethodDeclaration, FunctionExpression, ArrowFunction, SourceFile, Node, TypeNode, SyntaxKind } from "../../compiler/types"; +import { isVariableDeclaration, isFunctionTypeNode, factory } from "../../../built/local/compiler"; +import { getTokenAtPosition, findChildOfKind } from "../utilities"; + const fixId = "fixAwaitInSyncFunction"; const errorCodes = [ Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, @@ -78,4 +86,4 @@ namespace ts.codefix { } changes.insertModifierBefore(sourceFile, SyntaxKind.AsyncKeyword, insertBefore); } -} + diff --git a/src/services/codefixes/fixCannotFindModule.ts b/src/services/codefixes/fixCannotFindModule.ts index a5d44c887b9a2..5e269eab56269 100644 --- a/src/services/codefixes/fixCannotFindModule.ts +++ b/src/services/codefixes/fixCannotFindModule.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { Debug } from "../../compiler/debug"; +import { InstallPackageAction, LanguageServiceHost } from "../types"; +import { SourceFile } from "../../compiler/types"; +import { cast } from "../../compiler/core"; +import { getTokenAtPosition } from "../utilities"; +import { isStringLiteral, parsePackageName, isExternalModuleNameRelative, getTypesPackageName } from "../../../built/local/compiler"; + const fixName = "fixCannotFindModule"; const fixIdInstallTypesPackage = "installTypesPackage"; @@ -54,4 +62,4 @@ namespace ts.codefix { ? (JsTyping.nodeCoreModules.has(packageName) ? "@types/node" : undefined) : (host.isKnownTypesPackageName!(packageName) ? getTypesPackageName(packageName) : undefined); // TODO: GH#18217 } -} + diff --git a/src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts b/src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts index eac02f0d7135a..b937da62aa1f1 100644 --- a/src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts +++ b/src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { createMap, cast, first } from "../../compiler/core"; +import { addToSeen, getEffectiveBaseTypeNode, getSyntacticModifierFlags } from "../../compiler/utilities"; +import { getNodeId } from "../../compiler/checker"; +import { SourceFile, ClassLikeDeclaration, UserPreferences, ModifierFlags } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { isClassLike } from "../../../built/local/compiler"; +import { TypeConstructionContext, createMissingMemberNodes } from "./helpers"; +import { createImportAdder } from "./importFixes"; + const errorCodes = [ Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code, Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code, @@ -52,4 +62,4 @@ namespace ts.codefix { const flags = getSyntacticModifierFlags(first(symbol.getDeclarations()!)); return !(flags & ModifierFlags.Private) && !!(flags & ModifierFlags.Abstract); } -} + diff --git a/src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts b/src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts index 954a64ef53dcd..22e98687732a1 100644 --- a/src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts +++ b/src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts @@ -1,5 +1,17 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { mapDefined, createMap, and, find } from "../../compiler/core"; +import { ExpressionWithTypeArguments, SourceFile, ClassLikeDeclaration, ModifierFlags, UserPreferences, InterfaceType, IndexKind, InterfaceDeclaration, ClassElement, TypeChecker, SymbolTable } from "../../compiler/types"; +import { CodeFixAction } from "../types"; +import { getEffectiveImplementsTypeNodes, addToSeen, getContainingClass, getEffectiveModifierFlags, getEffectiveBaseTypeNode, createSymbolTable } from "../../compiler/utilities"; +import { getNodeId } from "../../compiler/checker"; +import { Debug } from "../../compiler/debug"; +import { getTokenAtPosition } from "../utilities"; +import { TypeConstructionContext, createMissingMemberNodes, getNoopSymbolTrackerWithResolver } from "./helpers"; +import { isConstructorDeclaration } from "../../../built/local/compiler"; +import { createImportAdder } from "./importFixes"; + const errorCodes = [ Diagnostics.Class_0_incorrectly_implements_interface_1.code, Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code @@ -92,4 +104,4 @@ namespace ts.codefix { const heritageClauseTypeSymbols = checker.getPropertiesOfType(heritageClauseType); return createSymbolTable(heritageClauseTypeSymbols.filter(symbolPointsToNonPrivateMember)); } -} + diff --git a/src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts b/src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts index 1c26c39b10c1a..58e6c96b5ad01 100644 --- a/src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts +++ b/src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { createMap } from "../../compiler/core"; +import { addToSeen, getContainingFunction, isSuperCall } from "../../compiler/utilities"; +import { getNodeId } from "../../compiler/checker"; +import { SourceFile, ConstructorDeclaration, ExpressionStatement, SyntaxKind, Node, CallExpression } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { isPropertyAccessExpression, isExpressionStatement, isFunctionLike } from "../../../built/local/compiler"; +import { forEachChild } from "../../compiler/parser"; + const fixId = "classSuperMustPrecedeThisAccess"; const errorCodes = [Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code]; registerCodeFix({ @@ -49,4 +58,4 @@ namespace ts.codefix { ? undefined : forEachChild(n, findSuperCall); } -} + diff --git a/src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts b/src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts index b7941259ede90..5a7c7aa6b04b6 100644 --- a/src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts +++ b/src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, ConstructorDeclaration } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { Debug } from "../../compiler/debug"; +import { isConstructorDeclaration, factory } from "../../../built/local/compiler"; +import { neverArray } from "../../compiler/core"; + const fixId = "constructorForDerivedNeedSuperCall"; const errorCodes = [Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code]; registerCodeFix({ @@ -22,7 +29,7 @@ namespace ts.codefix { } function doChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, ctr: ConstructorDeclaration) { - const superCall = factory.createExpressionStatement(factory.createCallExpression(factory.createSuper(), /*typeArguments*/ undefined, /*argumentsArray*/ emptyArray)); + const superCall = factory.createExpressionStatement(factory.createCallExpression(factory.createSuper(), /*typeArguments*/ undefined, /*argumentsArray*/ neverArray)); changes.insertNodeAtConstructorStart(sourceFile, ctr, superCall); } -} + diff --git a/src/services/codefixes/fixEnableExperimentalDecorators.ts b/src/services/codefixes/fixEnableExperimentalDecorators.ts index 13ff16945a477..d5192125135b9 100644 --- a/src/services/codefixes/fixEnableExperimentalDecorators.ts +++ b/src/services/codefixes/fixEnableExperimentalDecorators.ts @@ -1,5 +1,10 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixActionWithoutFixAll, codeFixAll } from "../codeFixProvider"; +import { TsConfigSourceFile } from "../../compiler/types"; +import { setJsonCompilerOptionValue } from "./helpers"; +import { factory } from "../../../built/local/compiler"; + const fixId = "enableExperimentalDecorators"; const errorCodes = [ Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code @@ -28,4 +33,4 @@ namespace ts.codefix { function doChange(changeTracker: textChanges.ChangeTracker, configFile: TsConfigSourceFile) { setJsonCompilerOptionValue(changeTracker, configFile, "experimentalDecorators", factory.createTrue()); } -} + diff --git a/src/services/codefixes/fixEnableJsxFlag.ts b/src/services/codefixes/fixEnableJsxFlag.ts index f077880bc3c42..733cd4a70beb5 100644 --- a/src/services/codefixes/fixEnableJsxFlag.ts +++ b/src/services/codefixes/fixEnableJsxFlag.ts @@ -1,5 +1,10 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixActionWithoutFixAll, codeFixAll } from "../codeFixProvider"; +import { TsConfigSourceFile } from "../../compiler/types"; +import { setJsonCompilerOptionValue } from "./helpers"; +import { factory } from "../../../built/local/compiler"; + const fixID = "fixEnableJsxFlag"; const errorCodes = [Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code]; registerCodeFix({ @@ -32,4 +37,4 @@ namespace ts.codefix { function doChange(changeTracker: textChanges.ChangeTracker, configFile: TsConfigSourceFile) { setJsonCompilerOptionValue(changeTracker, configFile, "jsx", factory.createStringLiteral("react")); } -} + diff --git a/src/services/codefixes/fixExpectedComma.ts b/src/services/codefixes/fixExpectedComma.ts index 89aa32d8f4287..6a590239c6c22 100644 --- a/src/services/codefixes/fixExpectedComma.ts +++ b/src/services/codefixes/fixExpectedComma.ts @@ -1,5 +1,10 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { Node, SourceFile, SyntaxKind } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { isObjectLiteralExpression, isArrayLiteralExpression, factory } from "../../../built/local/compiler"; + const fixId = "fixExpectedComma"; const expectedErrorCode = Diagnostics._0_expected.code; const errorCodes = [expectedErrorCode]; @@ -43,4 +48,4 @@ namespace ts.codefix { const newNode = factory.createToken(SyntaxKind.CommaToken); changes.replaceNode(sourceFile, node, newNode); } -} + diff --git a/src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts b/src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts index f8621e1f93d6f..2f931b307c9f0 100644 --- a/src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts +++ b/src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, SyntaxKind, Node, HeritageClause } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { getContainingClass } from "../../compiler/utilities"; +import { factory } from "../../../built/local/compiler"; +import { isWhiteSpaceSingleLine } from "../../compiler/scanner"; + const fixId = "extendsInterfaceBecomesImplements"; const errorCodes = [Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code]; registerCodeFix({ @@ -49,4 +56,4 @@ namespace ts.codefix { changes.deleteRange(sourceFile, { pos: implementsToken.getStart(), end }); } } -} + diff --git a/src/services/codefixes/fixForgottenThisPropertyAccess.ts b/src/services/codefixes/fixForgottenThisPropertyAccess.ts index 067ce4b0b9e26..1ff7c82494a7d 100644 --- a/src/services/codefixes/fixForgottenThisPropertyAccess.ts +++ b/src/services/codefixes/fixForgottenThisPropertyAccess.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { Identifier, PrivateIdentifier, SourceFile } from "../../compiler/types"; +import { getTokenAtPosition, suppressLeadingAndTrailingTrivia } from "../utilities"; +import { isIdentifier, factory } from "../../../built/local/compiler"; +import { getContainingClass } from "../../compiler/utilities"; + const fixId = "forgottenThisPropertyAccess"; const didYouMeanStaticMemberCode = Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code; const errorCodes = [ @@ -42,4 +48,4 @@ namespace ts.codefix { suppressLeadingAndTrailingTrivia(node); changes.replaceNode(sourceFile, node, factory.createPropertyAccessExpression(className ? factory.createIdentifier(className) : factory.createThis(), node)); } -} + diff --git a/src/services/codefixes/fixImplicitThis.ts b/src/services/codefixes/fixImplicitThis.ts index bfff6fe21f10a..f47f10f773db8 100644 --- a/src/services/codefixes/fixImplicitThis.ts +++ b/src/services/codefixes/fixImplicitThis.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, DiagnosticAndArguments, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { neverArray } from "../../compiler/core"; +import { SourceFile, TypeChecker, SyntaxKind } from "../../compiler/types"; +import { getTokenAtPosition, findChildOfKind, ANONYMOUS } from "../utilities"; +import { Debug } from "../../compiler/debug"; +import { getThisContainer, isSourceFileJS, isAssignmentExpression } from "../../compiler/utilities"; +import { isFunctionDeclaration, isFunctionExpression, isSourceFile, factory, isPropertyAccessExpression } from "../../../built/local/compiler"; +import { addJSDocTags } from "./inferFromUsage"; + const fixId = "fixImplicitThis"; const errorCodes = [Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code]; registerCodeFix({ @@ -10,7 +19,7 @@ namespace ts.codefix { const changes = textChanges.ChangeTracker.with(context, t => { diagnostic = doChange(t, sourceFile, span.start, program.getTypeChecker()); }); - return diagnostic ? [createCodeFixAction(fixId, changes, diagnostic, fixId, Diagnostics.Fix_all_implicit_this_errors)] : emptyArray; + return diagnostic ? [createCodeFixAction(fixId, changes, diagnostic, fixId, Diagnostics.Fix_all_implicit_this_errors)] : neverArray; }, fixIds: [fixId], getAllCodeActions: context => codeFixAll(context, errorCodes, (changes, diag) => { @@ -58,4 +67,4 @@ namespace ts.codefix { return Diagnostics.Add_class_tag; } } -} + diff --git a/src/services/codefixes/fixIncorrectNamedTupleSyntax.ts b/src/services/codefixes/fixIncorrectNamedTupleSyntax.ts index a806e19f654c2..cf358ce24bada 100644 --- a/src/services/codefixes/fixIncorrectNamedTupleSyntax.ts +++ b/src/services/codefixes/fixIncorrectNamedTupleSyntax.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction } from "../codeFixProvider"; +import { SourceFile, SyntaxKind, NamedTupleMember, OptionalTypeNode, RestTypeNode, ParenthesizedTypeNode } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { findAncestor } from "../../compiler/utilities"; +import { factory } from "../../../built/local/compiler"; + const fixId = "fixIncorrectNamedTupleSyntax"; const errorCodes = [ Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code, @@ -49,4 +55,4 @@ namespace ts.codefix { } changes.replaceNode(sourceFile, namedTupleMember, updated); } -} + diff --git a/src/services/codefixes/fixInvalidImportSyntax.ts b/src/services/codefixes/fixInvalidImportSyntax.ts index acc033df36fc7..cbba1439ebc02 100644 --- a/src/services/codefixes/fixInvalidImportSyntax.ts +++ b/src/services/codefixes/fixInvalidImportSyntax.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.codefix { + +import { CodeFixContext, CodeFixAction } from "../types"; +import { ImportDeclaration, NamespaceImport, ModuleKind, SourceFile, Node, SyntaxKind, CallExpression, NewExpression, TransientSymbol } from "../../compiler/types"; +import { getSourceFileOfNode, getNamespaceDeclarationNode, getEmitModuleKind, findAncestor, isImportCall } from "../../compiler/utilities"; +import { makeImport, getQuotePreference, getTokenAtPosition } from "../utilities"; +import { factory, isExpression, isNamedDeclaration } from "../../../built/local/compiler"; +import { createCodeFixActionWithoutFixAll, registerCodeFix } from "../codeFixProvider"; +import { addRange } from "../../compiler/core"; + const fixName = "invalidImportSyntax"; function getCodeFixesForImportDeclaration(context: CodeFixContext, node: ImportDeclaration): CodeFixAction[] { @@ -93,4 +101,4 @@ namespace ts.codefix { } return fixes; } -} + diff --git a/src/services/codefixes/fixInvalidJsxCharacters.ts b/src/services/codefixes/fixInvalidJsxCharacters.ts index 67ce26efd6519..9919246ba267e 100644 --- a/src/services/codefixes/fixInvalidJsxCharacters.ts +++ b/src/services/codefixes/fixInvalidJsxCharacters.ts @@ -1,5 +1,10 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { hasProperty } from "../../compiler/core"; +import { UserPreferences, SourceFile } from "../../compiler/types"; +import { quote } from "../utilities"; + const fixIdExpression = "fixInvalidJsxCharacters_expression"; const fixIdHtmlEntity = "fixInvalidJsxCharacters_htmlEntity"; @@ -45,4 +50,4 @@ namespace ts.codefix { const replacement = useHtmlEntity ? htmlEntity[character] : `{${quote(character, preferences)}}`; changes.replaceRangeWithText(sourceFile, { pos: start, end: start + 1 }, replacement); } -} + diff --git a/src/services/codefixes/fixJSDocTypes.ts b/src/services/codefixes/fixJSDocTypes.ts index f8dbe52b26db4..29688400c827a 100644 --- a/src/services/codefixes/fixJSDocTypes.ts +++ b/src/services/codefixes/fixJSDocTypes.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SyntaxKind, TypeFlags, Type, DiagnosticMessage, SourceFile, TypeNode, TypeChecker, AsExpression, CallSignatureDeclaration, ConstructSignatureDeclaration, FunctionDeclaration, GetAccessorDeclaration, IndexSignatureDeclaration, MappedTypeNode, MethodDeclaration, MethodSignature, ParameterDeclaration, PropertyDeclaration, PropertySignature, SetAccessorDeclaration, TypeAliasDeclaration, TypeAssertion, VariableDeclaration, Node } from "../../compiler/types"; +import { CodeFixAction } from "../types"; +import { findAncestor } from "../../compiler/utilities"; +import { getTokenAtPosition } from "../utilities"; + const fixIdPlain = "fixJSDocTypes_plain"; const fixIdNullable = "fixJSDocTypes_nullable"; const errorCodes = [Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code]; @@ -80,4 +86,4 @@ namespace ts.codefix { return false; } } -} + diff --git a/src/services/codefixes/fixMissingCallParentheses.ts b/src/services/codefixes/fixMissingCallParentheses.ts index a144bc40f5045..1ecbb68243ea8 100644 --- a/src/services/codefixes/fixMissingCallParentheses.ts +++ b/src/services/codefixes/fixMissingCallParentheses.ts @@ -1,5 +1,10 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, Identifier, PrivateIdentifier, PropertyAccessExpression } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { isPropertyAccessExpression, isIdentifier } from "../../../built/local/compiler"; + const fixId = "fixMissingCallParentheses"; const errorCodes = [ Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead.code, @@ -42,4 +47,4 @@ namespace ts.codefix { return undefined; } -} + diff --git a/src/services/codefixes/fixModuleAndTargetOptions.ts b/src/services/codefixes/fixModuleAndTargetOptions.ts index fce565814836a..8dea94718d42a 100644 --- a/src/services/codefixes/fixModuleAndTargetOptions.ts +++ b/src/services/codefixes/fixModuleAndTargetOptions.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixActionWithoutFixAll } from "../codeFixProvider"; +import { CodeFixAction } from "../types"; +import { getEmitModuleKind, getEmitScriptTarget, getTsConfigObjectLiteralExpression } from "../../compiler/utilities"; +import { ModuleKind, ScriptTarget, Expression } from "../../compiler/types"; +import { setJsonCompilerOptionValue, setJsonCompilerOptionValues } from "./helpers"; +import { factory } from "../../../built/local/compiler"; + registerCodeFix({ errorCodes: [Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code], getCodeActions: context => { @@ -41,4 +48,4 @@ namespace ts.codefix { return codeFixes.length ? codeFixes : undefined; } }); -} + diff --git a/src/services/codefixes/fixPropertyOverrideAccessor.ts b/src/services/codefixes/fixPropertyOverrideAccessor.ts index 1941b5ccd5826..f525eb35661e2 100644 --- a/src/services/codefixes/fixPropertyOverrideAccessor.ts +++ b/src/services/codefixes/fixPropertyOverrideAccessor.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile } from "../../compiler/types"; +import { CodeFixContext, CodeFixAllContext } from "../types"; +import { getTokenAtPosition } from "../utilities"; +import { Debug } from "../../compiler/debug"; +import { isAccessor, isClassLike, unescapeLeadingUnderscores } from "../../../built/local/compiler"; +import { singleOrUndefined } from "../../compiler/core"; +import { getAllSupers, generateAccessorFromProperty } from "./generateAccessors"; +import { getTextOfPropertyName, getSourceFileOfNode } from "../../compiler/utilities"; + const errorCodes = [ Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code, Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code, @@ -54,4 +64,4 @@ namespace ts.codefix { } return generateAccessorFromProperty(file, startPosition, endPosition, context, Diagnostics.Generate_get_and_set_accessors.message); } -} + diff --git a/src/services/codefixes/fixReturnTypeInAsyncFunction.ts b/src/services/codefixes/fixReturnTypeInAsyncFunction.ts index 6d27b8030d574..841f93b020401 100644 --- a/src/services/codefixes/fixReturnTypeInAsyncFunction.ts +++ b/src/services/codefixes/fixReturnTypeInAsyncFunction.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { TypeNode, Type, SourceFile, TypeChecker } from "../../compiler/types"; +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { isInJSFile, findAncestor } from "../../compiler/utilities"; +import { getTokenAtPosition } from "../utilities"; +import { isFunctionLikeDeclaration, factory } from "../../../built/local/compiler"; + const fixId = "fixReturnTypeInAsyncFunction"; const errorCodes = [ Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code, @@ -61,4 +67,4 @@ namespace ts.codefix { function doChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, returnTypeNode: TypeNode, promisedTypeNode: TypeNode): void { changes.replaceNode(sourceFile, returnTypeNode, factory.createTypeReferenceNode("Promise", [promisedTypeNode])); } -} + diff --git a/src/services/codefixes/fixSpelling.ts b/src/services/codefixes/fixSpelling.ts index 0c63dc5ebfc95..2bc301a915219 100644 --- a/src/services/codefixes/fixSpelling.ts +++ b/src/services/codefixes/fixSpelling.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { symbolName, isJsxAttribute, isPropertyAccessExpression, isIdentifierOrPrivateIdentifier, isImportSpecifier, isIdentifier, isImportDeclaration, isJsxOpeningLikeElement, isNamedDeclaration, isPrivateIdentifier, factory, isStringLiteralLike } from "../../../built/local/compiler"; +import { SourceFile, Node, NodeFlags, ScriptTarget, SymbolFlags, ImportDeclaration } from "../../compiler/types"; +import { CodeFixContextBase } from "../types"; +import { getTokenAtPosition, getMeaningFromLocation, SemanticMeaning } from "../utilities"; +import { Debug } from "../../compiler/debug"; +import { findAncestor, getTextOfNode, getResolvedModule } from "../../compiler/utilities"; +import { isIdentifierText } from "../../compiler/scanner"; + const fixId = "fixSpelling"; const errorCodes = [ Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code, @@ -115,4 +124,4 @@ namespace ts.codefix { return context.program.getSourceFile(resolvedModule.resolvedFileName); } -} + diff --git a/src/services/codefixes/fixStrictClassInitialization.ts b/src/services/codefixes/fixStrictClassInitialization.ts index 37cb7ffa74224..7b30e5f851cb6 100644 --- a/src/services/codefixes/fixStrictClassInitialization.ts +++ b/src/services/codefixes/fixStrictClassInitialization.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, codeFixAll, createCodeFixAction } from "../codeFixProvider"; +import { append, cast, firstDefined } from "../../compiler/core"; +import { Debug } from "../../compiler/debug"; +import { SourceFile, PropertyDeclaration, SyntaxKind, Expression, TypeChecker, Type, TypeFlags, BigIntLiteralType, ModifierFlags } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { isIdentifier, isPropertyDeclaration, factory, isUnionTypeNode } from "../../../built/local/compiler"; +import { CodeFixContext, CodeFixAction } from "../types"; +import { getClassLikeDeclarationOfSymbol, hasSyntacticModifier, getFirstConstructorWithBody } from "../../compiler/utilities"; + const fixName = "strictClassInitialization"; const fixIdAddDefiniteAssignmentAssertions = "addMissingPropertyDefiniteAssignmentAssertions"; const fixIdAddUndefinedType = "addMissingPropertyUndefinedType"; @@ -138,4 +147,4 @@ namespace ts.codefix { } return undefined; } -} + diff --git a/src/services/codefixes/fixUnreachableCode.ts b/src/services/codefixes/fixUnreachableCode.ts index d4d53c4d27f95..d97ebe3b8a4dc 100644 --- a/src/services/codefixes/fixUnreachableCode.ts +++ b/src/services/codefixes/fixUnreachableCode.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, SyntaxKind, IfStatement } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { findAncestor, sliceAfter } from "../../compiler/utilities"; +import { isStatement, isBlock, factory } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; +import { first, neverArray } from "../../compiler/core"; + const fixId = "fixUnreachableCode"; const errorCodes = [Diagnostics.Unreachable_code_detected.code]; registerCodeFix({ @@ -35,7 +43,7 @@ namespace ts.codefix { break; } else { - changes.replaceNode(sourceFile, statement, factory.createBlock(emptyArray)); + changes.replaceNode(sourceFile, statement, factory.createBlock(neverArray)); } return; } @@ -65,4 +73,4 @@ namespace ts.codefix { } return last; } -} + diff --git a/src/services/codefixes/fixUnusedIdentifier.ts b/src/services/codefixes/fixUnusedIdentifier.ts index 4aa099cb379f5..780a98d5f5698 100644 --- a/src/services/codefixes/fixUnusedIdentifier.ts +++ b/src/services/codefixes/fixUnusedIdentifier.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll, DiagnosticAndArguments } from "../codeFixProvider"; +import { getTokenAtPosition, isMemberSymbolInBaseType } from "../utilities"; +import { isJSDocTemplateTag, isInferTypeNode, isComputedPropertyName, factory, isImportDeclaration, isObjectBindingPattern, isVariableDeclarationList, isIdentifier, isParameter, getJSDocParameterTags, isPropertyAccessExpression, isBinaryExpression, isExpressionStatement, isImportClause } from "../../../built/local/compiler"; +import { SyntaxKind, SourceFile, Node, ImportDeclaration, TypeChecker, Identifier, VariableDeclaration, ParameterDeclaration } from "../../compiler/types"; +import { showModuleSpecifier, isDeclarationWithTypeParameterChildren } from "../../compiler/utilities"; +import { CodeFixAction, FileTextChanges } from "../types"; +import { cast, tryCast } from "../../compiler/core"; +import { Debug } from "../../compiler/debug"; + const fixName = "unusedIdentifier"; const fixIdPrefix = "unusedIdentifier_prefix"; const fixIdDelete = "unusedIdentifier_delete"; @@ -261,4 +270,4 @@ namespace ts.codefix { } }); } -} + diff --git a/src/services/codefixes/fixUnusedLabel.ts b/src/services/codefixes/fixUnusedLabel.ts index 49f334720ed53..6ecd7b509bc52 100644 --- a/src/services/codefixes/fixUnusedLabel.ts +++ b/src/services/codefixes/fixUnusedLabel.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, SyntaxKind } from "../../compiler/types"; +import { getTokenAtPosition, findChildOfKind } from "../utilities"; +import { cast } from "../../compiler/core"; +import { isLabeledStatement } from "../../../built/local/compiler"; +import { positionsAreOnSameLine } from "../../compiler/utilities"; +import { skipTrivia } from "../../compiler/scanner"; + const fixId = "fixUnusedLabel"; const errorCodes = [Diagnostics.Unused_label.code]; registerCodeFix({ @@ -22,4 +30,4 @@ namespace ts.codefix { : skipTrivia(sourceFile.text, findChildOfKind(labeledStatement, SyntaxKind.ColonToken, sourceFile)!.end, /*stopAfterLineBreak*/ true); changes.deleteRange(sourceFile, { pos, end }); } -} + diff --git a/src/services/codefixes/generateAccessors.ts b/src/services/codefixes/generateAccessors.ts index 518278d041c12..e57bea35ad223 100644 --- a/src/services/codefixes/generateAccessors.ts +++ b/src/services/codefixes/generateAccessors.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { ParameterPropertyDeclaration, isClassLike, isIdentifier, isStringLiteral, isParameterPropertyDeclaration, isPropertyDeclaration, isPropertyAssignment, factory, isElementAccessExpression, isPropertyAccessExpression, isFunctionLike } from "../../../built/local/compiler"; +import { PropertyDeclaration, PropertyAssignment, Identifier, StringLiteral, ClassLikeDeclaration, ObjectLiteralExpression, TypeNode, SourceFile, ModifiersArray, DeclarationName, Node, ModifierFlags, SyntaxKind, AccessorDeclaration, ConstructorDeclaration, TypeChecker, SymbolFlags, InterfaceDeclaration } from "../../compiler/types"; +import { FileTextChanges } from "../types"; +import { suppressLeadingAndTrailingTrivia, getTokenAtPosition, nodeOverlapsWithStartEnd, startsWithUnderscore, getUniqueName } from "../utilities"; +import { getEffectiveModifierFlags, isSourceFileJS, getFirstConstructorWithBody, findAncestor, getLocaleSpecificMessage, hasStaticModifier, hasEffectiveReadonlyModifier, getTypeAnnotationNode, isWriteAccess, getClassExtendsHeritageElement } from "../../compiler/utilities"; +import { cast, find } from "../../compiler/core"; + type AcceptedDeclaration = ParameterPropertyDeclaration | PropertyDeclaration | PropertyAssignment; type AcceptedNameType = Identifier | StringLiteral; type ContainerDeclaration = ClassLikeDeclaration | ObjectLiteralExpression; @@ -267,4 +274,4 @@ namespace ts.codefix { } export type ClassOrInterface = ClassLikeDeclaration | InterfaceDeclaration; -} + diff --git a/src/services/codefixes/helpers.ts b/src/services/codefixes/helpers.ts index 405a5db924bd6..9bdb1489a161e 100644 --- a/src/services/codefixes/helpers.ts +++ b/src/services/codefixes/helpers.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.codefix { + +import { ClassLikeDeclaration, UserPreferences, ClassElement, SymbolTracker, Program, Node, PropertyName, SymbolFlags, NodeFlags, SyntaxKind, NodeBuilderFlags, AccessorDeclaration, SignatureKind, SignatureDeclaration, Signature, NodeArray, Modifier, Block, MethodDeclaration, CallExpression, ModifierFlags, CharacterCodes, TypeChecker, Type, ScriptTarget, TypeNode, ParameterDeclaration, TypeParameterDeclaration, TsConfigSourceFile, Expression, ObjectLiteralExpression, PropertyAssignment, EntityName, Identifier } from "../../compiler/types"; +import { ImportAdder } from "./importFixes"; +import { noop, neverArray, some, sameMap, map, find } from "../../compiler/core"; +import { getModuleSpecifierResolverHost, getSynthesizedDeepClone, getSynthesizedDeepClones, getNameForExportedSymbol } from "../utilities"; +import { LanguageServiceHost, CodeFixContextBase } from "../types"; +import { getEmitScriptTarget, getEffectiveModifierFlags, getAllAccessorDeclarations, getSetAccessorValueParameter, getTsConfigObjectLiteralExpression, isLiteralImportTypeNode, getFirstIdentifier } from "../../compiler/utilities"; +import { getNameOfDeclaration, factory, isGetAccessorDeclaration, isSetAccessorDeclaration, isIdentifier, idText, setTextRange, isInterfaceDeclaration, isPropertyAccessExpression, isYieldExpression, isImportTypeNode, isObjectLiteralExpression, isPropertyAssignment, isStringLiteral } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; +import { signatureHasRestParameter } from "../../compiler/checker"; + /** * Finds members of the resolved type that are missing in the class pointed to by class decl * and generates source code for the missing members. @@ -86,7 +96,7 @@ namespace ts.codefix { /*decorators*/ undefined, modifiers, name, - emptyArray, + neverArray, typeNode, ambient ? undefined : createStubbedMethodBody(preferences))); } @@ -495,4 +505,4 @@ namespace ts.codefix { export function importSymbols(importAdder: ImportAdder, symbols: readonly Symbol[]) { symbols.forEach(s => importAdder.addImportFromExportedSymbol(s, /*usageIsTypeOnly*/ true)); } -} + diff --git a/src/services/codefixes/importFixes.ts b/src/services/codefixes/importFixes.ts index f1d2996d7e662..7bf87a4c95a04 100644 --- a/src/services/codefixes/importFixes.ts +++ b/src/services/codefixes/importFixes.ts @@ -1,5 +1,18 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, eachDiagnostic, createCombinedCodeActions, DiagnosticAndArguments, createCodeFixAction } from "../codeFixProvider"; +import { getQuotePreference, getNameForExportedSymbol, insertImports, getTokenAtPosition, createModuleSpecifierResolutionHost, getMeaningFromLocation, SemanticMeaning, getUniqueSymbolId, QuotePreference, getTypeKeywordOfTypeOnlyImport, getQuoteFromPreference, makeStringLiteral, makeImport, getMeaningFromDeclaration, getPackageJsonsVisibleToFile, consumesNodeCoreModules } from "../utilities"; +import { DiagnosticWithLocation, SourceFile, Program, UserPreferences, ImportClause, ObjectBindingPattern, ImportsNotUsedAsValues, Statement, AnyImportOrRequire, TypeChecker, SymbolFlags, SyntaxKind, CompilerOptions, ModuleKind, Node, Identifier, InternalSymbolName, CancellationToken, StringLiteral, VariableStatement, NodeFlags, ModuleSpecifierResolutionHost, ScriptTarget } from "../../compiler/types"; +import { CodeFixContextBase, LanguageServiceHost, CodeAction, CodeFixAction } from "../types"; +import { createMap, first, pushIfUnique, combine, startsWith, flatMap, neverArray, firstDefined, tryCast, mapDefined, sort, arrayFrom, flatMapIterator, createMultiMap, cast, last, some, GetCanonicalFileName, removeSuffix, stringContains } from "../../compiler/core"; +import { Mutable, getEmitScriptTarget, skipAlias, isSourceFileJS, isValidTypeOnlyAliasUseSite, importFromModuleSpecifier, isRequireVariableDeclaration, getEmitModuleKind, isUMDExportSymbol, getAllowSyntheticDefaultImports, isInJSFile, isIntrinsicJsxName, getLocalSymbolForExportDefault, stripQuotes, isExternalOrCommonJsModule, hostGetCanonicalFileName, removeFileExtension, isStringANonContextualKeyword } from "../../compiler/utilities"; +import { Debug } from "../../compiler/debug"; +import { getNodeId } from "../../compiler/checker"; +import { getDirectoryPath, forEachAncestorDirectory, getBaseFileName, pathIsRelative, isRootedDiskPath, getPathComponents } from "../../compiler/path"; +import { escapeLeadingUnderscores, isNamespaceImport, isIdentifier, isStringLiteral, isJsxOpeningLikeElement, isJsxOpeningFragment, isImportEqualsDeclaration, isExportAssignment, isExportSpecifier, factory, isNamedImports, timestamp, getTypesPackageName, getPackageNameFromTypesPackageName } from "../../../built/local/compiler"; +import { isExternalModule } from "../../compiler/parser"; +import { isIdentifierStart, isIdentifierPart } from "../../compiler/scanner"; + export const importFixName = "import"; const importFixId = "fixMissingImport"; const errorCodes: readonly number[] = [ @@ -278,7 +291,7 @@ namespace ts.codefix { const addToExisting = tryAddToExistingImport(existingImports, position !== undefined && isTypeOnlyPosition(sourceFile, position)); // Don't bother providing an action to add a new import if we can add to an existing one. const addImport = addToExisting ? [addToExisting] : getFixesForAddImport(exportInfos, existingImports, program, sourceFile, position, preferTypeOnlyImport, useRequire, host, preferences); - return [...(useNamespace ? [useNamespace] : emptyArray), ...addImport]; + return [...(useNamespace ? [useNamespace] : neverArray), ...addImport]; } function tryUseExistingNamespaceImport(existingImports: readonly FixAddToExistingImportInfo[], symbolName: string, position: number, checker: TypeChecker): FixUseNamespaceImport | undefined { @@ -351,7 +364,7 @@ namespace ts.codefix { function getExistingImportDeclarations({ moduleSymbol, importKind, exportedSymbolIsTypeOnly }: SymbolExportInfo, checker: TypeChecker, sourceFile: SourceFile): readonly FixAddToExistingImportInfo[] { // Can't use an es6 import for a type in JS. - return exportedSymbolIsTypeOnly && isSourceFileJS(sourceFile) ? emptyArray : mapDefined(sourceFile.imports, (moduleSpecifier): FixAddToExistingImportInfo | undefined => { + return exportedSymbolIsTypeOnly && isSourceFileJS(sourceFile) ? neverArray : mapDefined(sourceFile.imports, (moduleSpecifier): FixAddToExistingImportInfo | undefined => { const i = importFromModuleSpecifier(moduleSpecifier); if (isRequireVariableDeclaration(i.parent, /*requireStringLiteralLikeArgument*/ true)) { return checker.resolveExternalModuleName(moduleSpecifier) === moduleSymbol ? { declaration: i.parent, importKind } : undefined; @@ -635,7 +648,7 @@ namespace ts.codefix { return [Diagnostics.Change_0_to_1, symbolName, getImportTypePrefix(fix.moduleSpecifier, quotePreference) + symbolName]; case ImportFixKind.AddToExisting: { const { importClauseOrBindingPattern, importKind, canUseTypeOnlyImport, moduleSpecifier } = fix; - doAddExistingFix(changes, sourceFile, importClauseOrBindingPattern, importKind === ImportKind.Default ? symbolName : undefined, importKind === ImportKind.Named ? [symbolName] : emptyArray, canUseTypeOnlyImport); + doAddExistingFix(changes, sourceFile, importClauseOrBindingPattern, importKind === ImportKind.Default ? symbolName : undefined, importKind === ImportKind.Named ? [symbolName] : neverArray, canUseTypeOnlyImport); const moduleSpecifierWithoutQuotes = stripQuotes(moduleSpecifier); return [importKind === ImportKind.Default ? Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1 : Diagnostics.Add_0_to_existing_import_declaration_from_1, symbolName, moduleSpecifierWithoutQuotes]; // you too! } @@ -1033,4 +1046,4 @@ namespace ts.codefix { return components[0]; } } -} + diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index bd5782d7a0fe5..b73ef2bbef0af 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -1,5 +1,16 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { getTokenAtPosition, nodeSeenTracker, NodeSeenTracker, getTypeNodeIfAccessible, findChildOfKind } from "../utilities"; +import { Declaration, Node, DiagnosticMessage, SourceFile, Program, CancellationToken, UserPreferences, SyntaxKind, VariableDeclaration, PropertyDeclaration, PropertySignature, ParameterDeclaration, FunctionLike, TypeNode, SetAccessorDeclaration, Type, ScriptTarget, EmitFlags, HasJSDoc, JSDocTag, ArrowFunction, JSDocParameterTag, JSDocReturnTag, PropertyName, Token, Identifier, PrivateIdentifier, SignatureDeclaration, UnderscoreEscapedMap, Expression, PrefixUnaryExpression, BinaryExpression, CaseOrDefaultClause, CallExpression, NewExpression, PropertyAccessExpression, ElementAccessExpression, PropertyAssignment, ShorthandPropertyAssignment, TypeFlags, ObjectFlags, AnonymousType, UnionReduction, SignatureKind, SymbolFlags, __String, TransientSymbol, Signature, TypeReference, UnionOrIntersectionType, SymbolLinks, SignatureFlags } from "../../compiler/types"; +import { returnTrue, cast, first, last, firstOrUndefined, tryCast, forEach, mapDefined, flatMapToMutable, neverArray, flatMap, createMultiMap, mapEntries, singleOrUndefined } from "../../compiler/core"; +import { getNameOfDeclaration, isSetAccessorDeclaration, isParameterPropertyModifier, isVariableDeclaration, isPropertyDeclaration, isPropertySignature, isPropertyAccessExpression, factory, isExpressionStatement, isParameter, isGetAccessorDeclaration, isIdentifier, isArrowFunction, isVariableStatement, getJSDocType, setEmitFlags, isCallExpression, escapeLeadingUnderscores } from "../../../built/local/compiler"; +import { getContainingFunction, isInJSFile, getEmitScriptTarget, createUnderscoreEscapedMap, isRestParameter, isRightSideOfQualifiedNameOrPropertyAccess, isExpressionNode, isAssignmentExpression, getObjectFlags, forEachEntry, createSymbolTable } from "../../compiler/utilities"; +import { LanguageServiceHost } from "../types"; +import { createImportAdder, ImportAdder } from "./importFixes"; +import { Debug } from "../../compiler/debug"; +import { tryGetAutoImportableReferenceFromImportTypeNode } from "./helpers"; + const fixId = "inferFromUsage"; const errorCodes = [ // Variable declarations @@ -359,7 +370,7 @@ namespace ts.codefix { if (merged) oldTags[i] = merged; return !!merged; })); - const tag = factory.createJSDocComment(comments.join("\n"), factory.createNodeArray([...(oldTags || emptyArray), ...unmergedNewTags])); + const tag = factory.createJSDocComment(comments.join("\n"), factory.createNodeArray([...(oldTags || neverArray), ...unmergedNewTags])); const jsDocNode = parent.kind === SyntaxKind.ArrowFunction ? getJsDocNodeForArrowFunction(parent) : parent; jsDocNode.jsDoc = parent.jsDoc; jsDocNode.jsDocCache = parent.jsDocCache; @@ -584,7 +595,7 @@ namespace ts.codefix { calculateUsageOfNode(reference, usage); } - return combineTypes(usage.candidateThisTypes || emptyArray); + return combineTypes(usage.candidateThisTypes || neverArray); } function inferTypesFromReferencesSingle(references: readonly Identifier[]): Type[] { @@ -1090,7 +1101,7 @@ namespace ts.codefix { } function getFunctionFromCalls(calls: CallUsage[]) { - return checker.createAnonymousType(/*symbol*/ undefined, createSymbolTable(), [getSignatureFromCalls(calls)], emptyArray, /*stringIndexInfo*/ undefined, /*numberIndexInfo*/ undefined); + return checker.createAnonymousType(/*symbol*/ undefined, createSymbolTable(), [getSignatureFromCalls(calls)], neverArray, /*stringIndexInfo*/ undefined, /*numberIndexInfo*/ undefined); } function getSignatureFromCalls(calls: CallUsage[]): Signature { @@ -1121,4 +1132,4 @@ namespace ts.codefix { } } } -} + diff --git a/src/services/codefixes/removeAccidentalCallParentheses.ts b/src/services/codefixes/removeAccidentalCallParentheses.ts index 32a7d4606f02a..dfeb973d7ee12 100644 --- a/src/services/codefixes/removeAccidentalCallParentheses.ts +++ b/src/services/codefixes/removeAccidentalCallParentheses.ts @@ -1,5 +1,10 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixActionWithoutFixAll } from "../codeFixProvider"; +import { findAncestor } from "../../compiler/utilities"; +import { getTokenAtPosition } from "../utilities"; +import { isCallExpression } from "../../../built/local/compiler"; + const fixId = "removeAccidentalCallParentheses"; const errorCodes = [ Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code, @@ -18,4 +23,4 @@ namespace ts.codefix { }, fixIds: [fixId], }); -} + diff --git a/src/services/codefixes/removeUnnecessaryAwait.ts b/src/services/codefixes/removeUnnecessaryAwait.ts index 07028e2793762..c5cc4609175d8 100644 --- a/src/services/codefixes/removeUnnecessaryAwait.ts +++ b/src/services/codefixes/removeUnnecessaryAwait.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, TextSpan, AwaitKeywordToken, SyntaxKind, Node } from "../../compiler/types"; +import { tryCast } from "../../compiler/core"; +import { getTokenAtPosition, findPrecedingToken } from "../utilities"; +import { isAwaitExpression, isParenthesizedExpression, isIdentifier } from "../../../built/local/compiler"; +import { getLeftmostExpression } from "../../compiler/utilities"; + const fixId = "removeUnnecessaryAwait"; const errorCodes = [ Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code, @@ -40,4 +47,4 @@ namespace ts.codefix { changeTracker.replaceNode(sourceFile, expressionToReplace, awaitExpression.expression); } -} + diff --git a/src/services/codefixes/requireInTs.ts b/src/services/codefixes/requireInTs.ts index f990f5cadb260..4ce98cccbd8b7 100644 --- a/src/services/codefixes/requireInTs.ts +++ b/src/services/codefixes/requireInTs.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, Identifier, NamedImports, VariableStatement, StringLiteralLike, Program, ObjectBindingPattern, ImportSpecifier } from "../../compiler/types"; +import { factory, isVariableDeclaration, isIdentifier, isObjectBindingPattern, isVariableStatement } from "../../../built/local/compiler"; +import { getTokenAtPosition } from "../utilities"; +import { isRequireCall, getAllowSyntheticDefaultImports } from "../../compiler/utilities"; +import { Debug } from "../../compiler/debug"; +import { cast, tryCast, first } from "../../compiler/core"; + const fixId = "requireInTs"; const errorCodes = [Diagnostics.require_call_may_be_converted_to_an_import.code]; registerCodeFix({ @@ -69,4 +77,4 @@ namespace ts.codefix { return factory.createNamedImports(importSpecifiers); } } -} + diff --git a/src/services/codefixes/returnValueCorrect.ts b/src/services/codefixes/returnValueCorrect.ts index 54b782417af2c..bd8082ef919f6 100644 --- a/src/services/codefixes/returnValueCorrect.ts +++ b/src/services/codefixes/returnValueCorrect.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.codefix { + +import { FunctionLikeDeclaration, Expression, Statement, Node, ArrowFunction, TypeChecker, Identifier, SymbolFlags, Type, ModifierFlags, SourceFile, VariableLikeDeclaration, SyntaxKind } from "../../compiler/types"; +import { registerCodeFix, codeFixAll, createCodeFixAction } from "../codeFixProvider"; +import { append, first } from "../../compiler/core"; +import { isArrowFunction, isBlock, isExpressionStatement, isLabeledStatement, factory, isFunctionLikeDeclaration, isCallExpression, isJsxAttribute, isJsxExpression } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; +import { createSymbolTable, hasSyntacticModifier, findAncestor, isDeclarationName, isVariableLike } from "../../compiler/utilities"; +import { length } from "module"; +import { getTokenAtPosition, rangeContainsRange, suppressLeadingAndTrailingTrivia, probablyUsesSemicolons, needsParentheses, copyComments } from "../utilities"; +import { CodeFixContext } from "../types"; + const fixId = "returnValueCorrect"; const fixIdAddReturnStatement = "fixAddReturnStatement"; const fixRemoveBracesFromArrowFunctionBody = "fixRemoveBracesFromArrowFunctionBody"; @@ -241,4 +251,4 @@ namespace ts.codefix { const changes = textChanges.ChangeTracker.with(context, t => wrapBlockWithParen(t, context.sourceFile, declaration, expression)); return createCodeFixAction(fixId, changes, Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal, fixIdWrapTheBlockWithParen, Diagnostics.Wrap_all_object_literal_with_parentheses); } -} + diff --git a/src/services/codefixes/splitTypeOnlyImport.ts b/src/services/codefixes/splitTypeOnlyImport.ts index 321ab03d31d1d..0001904d6beed 100644 --- a/src/services/codefixes/splitTypeOnlyImport.ts +++ b/src/services/codefixes/splitTypeOnlyImport.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, TextSpan, ImportDeclaration } from "../../compiler/types"; +import { findAncestor } from "../../compiler/utilities"; +import { getTokenAtPosition } from "../utilities"; +import { isImportDeclaration, factory } from "../../../built/local/compiler"; +import { CodeFixContextBase } from "../types"; +import { Debug } from "../../compiler/debug"; + const errorCodes = [Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code]; const fixId = "splitTypeOnlyImport"; registerCodeFix({ @@ -40,4 +48,4 @@ namespace ts.codefix { factory.updateImportClause(importClause, importClause.isTypeOnly, /*name*/ undefined, importClause.namedBindings), importDeclaration.moduleSpecifier)); } -} + diff --git a/src/services/codefixes/useBigintLiteral.ts b/src/services/codefixes/useBigintLiteral.ts index f521386f85e2f..60468e190b420 100644 --- a/src/services/codefixes/useBigintLiteral.ts +++ b/src/services/codefixes/useBigintLiteral.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { SourceFile, TextSpan } from "../../compiler/types"; +import { tryCast } from "../../compiler/core"; +import { getTokenAtPosition } from "../utilities"; +import { isNumericLiteral, factory } from "../../../built/local/compiler"; + 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, @@ -30,4 +36,4 @@ namespace ts.codefix { changeTracker.replaceNode(sourceFile, numericLiteral, factory.createBigIntLiteral(newText)); } -} + diff --git a/src/services/codefixes/useDefaultImport.ts b/src/services/codefixes/useDefaultImport.ts index 75d4d15bd7e7e..2fb98f3f14f3d 100644 --- a/src/services/codefixes/useDefaultImport.ts +++ b/src/services/codefixes/useDefaultImport.ts @@ -1,5 +1,10 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { AnyImportSyntax, Identifier, Expression, SourceFile, UserPreferences } from "../../compiler/types"; +import { getTokenAtPosition, makeImport, getQuotePreference } from "../utilities"; +import { isIdentifier, isImportEqualsDeclaration, isExternalModuleReference, isNamespaceImport } from "../../../built/local/compiler"; + const fixId = "useDefaultImport"; const errorCodes = [Diagnostics.Import_may_be_converted_to_a_default_import.code]; registerCodeFix({ @@ -39,4 +44,4 @@ namespace ts.codefix { function doChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, info: Info, preferences: UserPreferences): void { changes.replaceNode(sourceFile, info.importNode, makeImport(info.name, /*namedImports*/ undefined, info.moduleSpecifier, getQuotePreference(sourceFile, preferences))); } -} + diff --git a/src/services/codefixes/wrapJsxInFragment.ts b/src/services/codefixes/wrapJsxInFragment.ts index c850d4113713e..80ca0554b738e 100644 --- a/src/services/codefixes/wrapJsxInFragment.ts +++ b/src/services/codefixes/wrapJsxInFragment.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.codefix { + +import { registerCodeFix, createCodeFixAction, codeFixAll } from "../codeFixProvider"; +import { JsxEmit, SourceFile, BinaryExpression, Node, JsxChild, SyntaxKind } from "../../compiler/types"; +import { getTokenAtPosition } from "../utilities"; +import { isBinaryExpression, factory, isJsxChild } from "../../../built/local/compiler"; +import { nodeIsMissing } from "../../compiler/utilities"; + const fixID = "wrapJsxInFragment"; const errorCodes = [Diagnostics.JSX_expressions_must_have_one_parent_element.code]; registerCodeFix({ @@ -68,4 +74,4 @@ namespace ts.codefix { else return undefined; } } -} + diff --git a/src/services/completions.ts b/src/services/completions.ts index 989aff628bdf8..2d7dc9711f2a4 100644 --- a/src/services/completions.ts +++ b/src/services/completions.ts @@ -1,5 +1,19 @@ /* @internal */ -namespace ts.Completions { + +import { TypeChecker, Program, SourceFile, UserPreferences, SyntaxKind, CompilerOptions, ScriptTarget, PseudoBigInt, Node, PropertyAccessExpression, SymbolFlags, BreakOrContinueStatement, CancellationToken, Identifier, JSDocParameterTag, Type, VariableDeclaration, BinaryExpression, JsxAttribute, Expression, CharacterCodes, JSDocPropertyTag, QualifiedName, ModuleDeclaration, LanguageVariant, JsxElement, JSDocReturnTag, JSDocTypeTag, JSDocTypedefTag, JSDocTag, ImportTypeNode, NodeFlags, ContextFlags, InternalSymbolName, Declaration, ModifierFlags, ImportOrExportSpecifier, ObjectLiteralExpression, ObjectBindingPattern, ConstructorDeclaration, FunctionLikeDeclaration, JsxOpeningLikeElement, __String, SpreadAssignment, JsxSpreadAttribute, ObjectType, ClassElement, NodeArray, JsxAttributes, TypeFlags, ObjectTypeDeclaration, TypeElement } from "../compiler/types"; +import { forEach, startsWith, createMap, some, find, firstDefined, cast, first, last, mapDefined, filter, tryCast, filterMutate, every, contains, or, flatMap, memoize, findLast, lastOrUndefined } from "../compiler/core"; +import { LanguageServiceHost, CompletionsTriggerCharacter, CompletionInfo, CompletionEntry, ScriptElementKind, ScriptElementKindModifier, CompletionEntryDetails, SymbolDisplayPartKind, CodeAction, SymbolDisplayPart, JSDocTagInfo } from "./types"; +import { findPrecedingToken, isInString, findChildOfKind, quote, getReplacementSpanForContextToken, createTextSpanFromNode, positionIsASICandidate, displayPart, SemanticMeaning, getNameForExportedSymbol, textPart, getContextualTypeFromParent, getSwitchedType, isEqualityOperatorKind, getTokenAtPosition, isInComment, hasDocComment, getLineStartPositionForPosition, getTouchingPropertyName, isPossiblyTypeArgumentPosition, isInRightSideOfInternalImportEqualsDeclaration, isExternalModuleSymbol, compilerOptionsIndicateEs6Modules, programContainsModules, isNonGlobalDeclaration, positionBelongsToNode, rangeContainsPositionExclusive, createTextRangeFromSpan, hasIndexSignature, isTypeKeyword, rangeContainsPosition, isStringLiteralOrTemplate } from "./utilities"; +import { getStringLiteralCompletions, getStringLiteralCompletionDetails } from "./stringCompletions"; +import { isBreakOrContinueStatement, isJsxClosingElement, unescapeLeadingUnderscores, createTextSpanFromBounds, timestamp, isFunctionLike, isLabeledStatement, isIdentifier, isCaseClause, isJsxExpression, isBinaryExpression, isJSDocParameterTag, isIdentifierOrPrivateIdentifier, isCallExpression, isEntityName, isModuleDeclaration, isMetaProperty, escapeLeadingUnderscores, getNameOfDeclaration, isComputedPropertyName, isPropertyAccessExpression, isStatement, isSourceFile, isExportAssignment, isAssertionExpression, isTypeOfExpression, isFunctionLikeKind, isExportSpecifier, isRegularExpressionLiteral, isStringTextContainingNode, hasInitializer, hasType, isExpression, isNamedExports, isClassLike, isClassElement, isObjectLiteralExpression, isObjectBindingPattern, isMethodDeclaration, isShorthandPropertyAssignment, isParameter, isConstructorDeclaration, isParameterPropertyModifier, isFunctionLikeDeclaration, isPropertyDeclaration, isJsxAttribute, isSpreadAssignment, isBindingElement, isPrivateIdentifierPropertyDeclaration, isJsxSpreadAttribute, isClassMemberModifier, isJSDoc, isClassOrTypeElement, isPrivateIdentifier, isStringLiteralLike } from "../../built/local/compiler"; +import { Debug } from "../compiler/debug"; +import { arrayToSet, isSourceFileJS, isCheckJsEnabledForFile, pseudoBigIntToString, stripQuotes, skipAlias, isAbstractConstructorSymbol, isDeclarationName, nodeIsMissing, isKeyword, isLiteralImportTypeNode, isPartOfTypeNode, getCombinedLocalAndExportSymbolFlags, addToSeen, isIdentifierANonContextualKeyword, getLocalSymbolForExportDefault, getRootDeclaration, isVariableLike, getContainingClass, getDeclarationModifierFlagsFromSymbol, isNamedImportsOrExports, findAncestor, getEffectiveModifierFlags, getAllSuperTypeNodes, createUnderscoreEscapedMap, isPropertyNameLiteral, getEscapedTextOfIdentifierOrLiteral, hasEffectiveModifier, getPropertyNameForPropertyNameNode, isSingleOrDoubleQuote, isKnownSymbol, isContextualKeyword, typeHasCallOrConstructSignatures, isObjectTypeDeclaration, tryGetImportFromModuleSpecifier } from "../compiler/utilities"; +import { Push } from "../compiler/corePublic"; +import { getNameTable } from "./services"; +import { isIdentifierText, tokenToString, stringToToken, getLineAndCharacterOfPosition } from "../compiler/scanner"; +import { isString } from "util"; +import { getSymbolId } from "../compiler/checker"; + export enum SortText { LocationPriority = "0", OptionalMember = "1", @@ -174,7 +188,7 @@ namespace ts.Completions { return undefined; } - const stringCompletions = StringCompletions.getStringLiteralCompletions(sourceFile, position, contextToken, typeChecker, compilerOptions, host, log, preferences); + const stringCompletions = getStringLiteralCompletions(sourceFile, position, contextToken, typeChecker, compilerOptions, host, log, preferences); if (stringCompletions) { return stringCompletions; } @@ -194,12 +208,12 @@ namespace ts.Completions { return completionInfoFromData(sourceFile, typeChecker, compilerOptions, log, completionData, preferences); case CompletionDataKind.JsDocTagName: // If the current position is a jsDoc tag name, only tag names should be provided for completion - return jsdocCompletionInfo(JsDoc.getJSDocTagNameCompletions()); + return jsdocCompletionInfo(getJSDocTagNameCompletions()); case CompletionDataKind.JsDocTag: // If the current position is a jsDoc tag, only tags should be provided for completion - return jsdocCompletionInfo(JsDoc.getJSDocTagCompletions()); + return jsdocCompletionInfo(getJSDocTagCompletions()); case CompletionDataKind.JsDocParameterName: - return jsdocCompletionInfo(JsDoc.getJSDocParameterNameCompletions(completionData.tag)); + return jsdocCompletionInfo(getJSDocParameterNameCompletions(completionData.tag)); default: return Debug.assertNever(completionData); } @@ -434,8 +448,8 @@ namespace ts.Completions { // entries (like JavaScript identifier entries). return { name, - kind: SymbolDisplay.getSymbolKind(typeChecker, symbol, location!), // TODO: GH#18217 - kindModifiers: SymbolDisplay.getSymbolModifiers(symbol), + kind: getSymbolKind(typeChecker, symbol, location!), // TODO: GH#18217 + kindModifiers: getSymbolModifiers(symbol), sortText, source: getSourceFromOrigin(origin), hasAction: origin && originIsExport(origin) || undefined, @@ -640,7 +654,7 @@ namespace ts.Completions { const contextToken = findPrecedingToken(position, sourceFile); if (isInString(sourceFile, position, contextToken)) { - return StringCompletions.getStringLiteralCompletionDetails(name, sourceFile, position, contextToken, typeChecker, compilerOptions, host, cancellationToken); + return getStringLiteralCompletionDetails(name, sourceFile, position, contextToken, typeChecker, compilerOptions, host, cancellationToken); } // Compute all the completion symbols again. @@ -650,11 +664,11 @@ namespace ts.Completions { const { request } = symbolCompletion; switch (request.kind) { case CompletionDataKind.JsDocTagName: - return JsDoc.getJSDocTagNameCompletionDetails(name); + return getJSDocTagNameCompletionDetails(name); case CompletionDataKind.JsDocTag: - return JsDoc.getJSDocTagCompletionDetails(name); + return getJSDocTagCompletionDetails(name); case CompletionDataKind.JsDocParameterName: - return JsDoc.getJSDocParameterNameCompletionDetails(name); + return getJSDocParameterNameCompletionDetails(name); default: return Debug.assertNever(request); } @@ -683,9 +697,9 @@ namespace ts.Completions { export function createCompletionDetailsForSymbol(symbol: Symbol, checker: TypeChecker, sourceFile: SourceFile, location: Node, cancellationToken: CancellationToken, codeActions?: CodeAction[], sourceDisplay?: SymbolDisplayPart[]): CompletionEntryDetails { const { displayParts, documentation, symbolKind, tags } = checker.runWithCancellationToken(cancellationToken, checker => - SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(checker, symbol, sourceFile, location, location, SemanticMeaning.All) + getSymbolDisplayPartsDocumentationAndSymbolKind(checker, symbol, sourceFile, location, location, SemanticMeaning.All) ); - return createCompletionDetails(symbol.name, SymbolDisplay.getSymbolModifiers(symbol), symbolKind, displayParts, documentation, tags, codeActions, sourceDisplay); + return createCompletionDetails(symbol.name, getSymbolModifiers(symbol), symbolKind, displayParts, documentation, tags, codeActions, sourceDisplay); } export function createCompletionDetails(name: string, kindModifiers: string, kind: ScriptElementKind, displayParts: SymbolDisplayPart[], documentation?: SymbolDisplayPart[], tags?: JSDocTagInfo[], codeActions?: CodeAction[], source?: SymbolDisplayPart[]): CompletionEntryDetails { @@ -811,7 +825,7 @@ namespace ts.Completions { case SyntaxKind.OpenBraceToken: return isJsxExpression(parent) && parent.parent.kind !== SyntaxKind.JsxElement ? checker.getContextualTypeForJsxAttribute(parent.parent) : undefined; default: - const argInfo = SignatureHelp.getArgumentInfoForCompletions(previousToken, position, sourceFile); + const argInfo = getArgumentInfoForCompletions(previousToken, position, sourceFile); return argInfo ? // At `,`, treat this as the next argument after the comma. checker.getContextualTypeForArgumentAtIndex(argInfo.invocation, argInfo.argumentIndex + (previousToken.kind === SyntaxKind.CommaToken ? 1 : 0)) : @@ -2638,7 +2652,7 @@ namespace ts.Completions { /** Get the corresponding JSDocTag node if the position is in a jsDoc comment */ function getJsDocTagAtPosition(node: Node, position: number): JSDocTag | undefined { const jsdoc = findAncestor(node, isJSDoc); - return jsdoc && jsdoc.tags && (rangeContainsPosition(jsdoc, position) ? findLast(jsdoc.tags, tag => tag.pos < position) : undefined); + return jsdoc && jsdoc?.tags && (rangeContainsPosition(jsdoc, position) ? findLast(jsdoc.tags, tag => tag.pos < position) : undefined); } function getPropertiesForObjectExpression(contextualType: Type, completionsType: Type | undefined, obj: ObjectLiteralExpression | JsxAttributes, checker: TypeChecker): Symbol[] { @@ -2794,4 +2808,4 @@ namespace ts.Completions { } return false; } -} + diff --git a/src/services/documentHighlights.ts b/src/services/documentHighlights.ts index 6ed27e2beeed8..49ec7a15f84a2 100644 --- a/src/services/documentHighlights.ts +++ b/src/services/documentHighlights.ts @@ -1,4 +1,14 @@ -namespace ts { +import { HighlightSpan, HighlightSpanKind } from "./types"; +import { Program, CancellationToken, SourceFile, Node, SyntaxKind, IterationStatement, ThrowStatement, BreakOrContinueStatement, Modifier, ModifierFlags, ModuleBlock, Block, CaseClause, DefaultClause, ConstructorDeclaration, MethodDeclaration, FunctionDeclaration, ObjectTypeDeclaration, SwitchStatement, TryStatement, ReturnStatement, FunctionLikeDeclaration, IfStatement, __String } from "../compiler/types"; +import { getTouchingPropertyName, createTextSpanFromNode, findModifier, findChildOfKind } from "./utilities"; +import { isJsxOpeningElement, isJsxClosingElement, isIfStatement, isReturnStatement, isThrowStatement, isTryStatement, isSwitchStatement, isDefaultClause, isCaseClause, isBreakOrContinueStatement, isIterationStatement, isConstructorDeclaration, isAccessor, isAwaitExpression, isModifierKind, isDeclaration, isVariableStatement, isFunctionLike, isClassDeclaration, isClassLike, isBlock, isYieldExpression, isInterfaceDeclaration, isModuleDeclaration, isTypeAliasDeclaration, isTypeNode, createTextSpanFromBounds, isLabeledStatement } from "../../built/local/compiler"; +import { arrayToMultiMap, arrayFrom, find, mapDefined, contains, concatenate, toArray, forEach, cast } from "../compiler/core"; +import { Debug } from "../compiler/debug"; +import { isFunctionBlock, findAncestor, modifierToFlag, forEachReturnStatement, getContainingFunction } from "../compiler/utilities"; +import { Push } from "../compiler/corePublic"; +import { forEachChild } from "../compiler/parser"; +import { isWhiteSpaceSingleLine } from "../compiler/scanner"; + export interface DocumentHighlights { fileName: string; highlightSpans: HighlightSpan[]; @@ -508,4 +518,4 @@ namespace ts { return !!findAncestor(node.parent, owner => !isLabeledStatement(owner) ? "quit" : owner.label.escapedText === labelName); } } -} + diff --git a/src/services/documentRegistry.ts b/src/services/documentRegistry.ts index 2e97689bfbf9a..6ae879127039b 100644 --- a/src/services/documentRegistry.ts +++ b/src/services/documentRegistry.ts @@ -1,4 +1,12 @@ -namespace ts { +import { CompilerOptions, ScriptKind, SourceFile, Path, ScriptTarget } from "../compiler/types"; +import { IScriptSnapshot } from "./types"; +import { createGetCanonicalFileName, arrayFrom, createMap } from "../compiler/core"; +import { toPath } from "../compiler/path"; +import { getOrUpdate, getCompilerOptionValue } from "../compiler/utilities"; +import { Debug } from "../compiler/debug"; +import { createLanguageServiceSourceFile, updateLanguageServiceSourceFile } from "./services"; +import { sourceFileAffectingCompilerOptions } from "../../built/local/compiler"; + /** * The document registry represents a store of SourceFile objects that can be shared between * multiple LanguageService instances. A LanguageService instance holds on the SourceFile (AST) @@ -263,4 +271,4 @@ namespace ts { function getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey { return sourceFileAffectingCompilerOptions.map(option => getCompilerOptionValue(settings, option)).join("|") as DocumentRegistryBucketKey; } -} + diff --git a/src/services/exportAsModule.ts b/src/services/exportAsModule.ts index 6760e9c38c2d0..e98239c87c3c3 100644 --- a/src/services/exportAsModule.ts +++ b/src/services/exportAsModule.ts @@ -4,4 +4,4 @@ /* @internal */ declare const module: { exports: {} }; if (typeof module !== "undefined" && module.exports) { module.exports = ts; -} \ No newline at end of file +} diff --git a/src/services/findAllReferences.ts b/src/services/findAllReferences.ts index b1e98f240bd69..9d5dd6b30a051 100644 --- a/src/services/findAllReferences.ts +++ b/src/services/findAllReferences.ts @@ -1,5 +1,19 @@ /* @internal */ -namespace ts.FindAllReferences { + +import { Identifier, Node, StringLiteral, TextSpan, NamedDeclaration, AssignmentDeclarationKind, Statement, JSDocTag, SyntaxKind, ModifierFlags, BinaryExpression, ForInOrOfStatement, SourceFile, Program, CancellationToken, TypeChecker, Declaration, NodeFlags, PropertyAssignment, FunctionDeclaration, FunctionExpression, ConstructorDeclaration, MethodDeclaration, GetAccessorDeclaration, SetAccessorDeclaration, VariableDeclaration, PropertyDeclaration, InternalSymbolName, SymbolFlags, ModuleReference, ModuleDeclaration, __String, SignatureDeclaration, CallExpression, ScriptTarget, PrivateIdentifier, StringLiteralLike, NumericLiteral, ExportSpecifier, ClassLikeDeclaration, FunctionLikeDeclaration, Block, Expression, InterfaceDeclaration, ParenthesizedExpression, ParameterDeclaration, BindingElement, CheckFlags, PropertyAccessExpression } from "../compiler/types"; +import { isDeclaration, isExportAssignment, isBinaryExpression, isJsxOpeningElement, isJsxClosingElement, isJsxSelfClosingElement, isLabeledStatement, isBreakOrContinueStatement, isStringLiteralLike, isStatement, isJSDocTag, isComputedPropertyName, isConstructorDeclaration, isImportOrExportSpecifier, isBindingElement, isVariableDeclarationList, isVariableStatement, isForInOrOfStatement, isExpressionStatement, getNameOfDeclaration, isIdentifier, isShorthandPropertyAssignment, isObjectLiteralExpression, isImportSpecifier, isExportSpecifier, createTextSpanFromBounds, isCatchClause, isSourceFile, isStringLiteral, isNamespaceExportDeclaration, isLiteralTypeNode, isImportTypeNode, isPropertyAccessExpression, isTypeOperatorNode, isVoidExpression, isClassLike, isTypeLiteralNode, isUnionTypeNode, isModuleDeclaration, symbolName, escapeLeadingUnderscores, isPrivateIdentifierPropertyDeclaration, isParameterPropertyDeclaration, isCallExpression, createTextSpan, isMethodOrAccessor, isFunctionLike, isQualifiedName, isTypeNode, isTypeElement, hasType, hasInitializer, isAssertionExpression, isExpressionWithTypeArguments, isParameter, isInterfaceDeclaration, isTypeAliasDeclaration, isFunctionLikeDeclaration, isModuleOrEnumDeclaration } from "../../built/local/compiler"; +import { isInJSFile, isAccessExpression, getAssignmentDeclarationKind, tryGetImportFromModuleSpecifier, findAncestor, hasSyntacticModifier, addToSeen, isSuperProperty, getTextOfNode, isModuleExportsAccessExpression, getDeclarationFromName, isWriteAccess, isLiteralComputedPropertyDeclarationName, skipAlias, stripQuotes, getLocalSymbolForExportDefault, hasEffectiveModifier, getAncestor, isExternalOrCommonJsModule, isBindableObjectDefinePropertyCall, isDeclarationName, forEachReturnStatement, getAllSuperTypeNodes, getSuperContainer, getSyntacticModifierFlags, getThisContainer, isObjectLiteralMethod, getDeclarationOfKind, getCheckFlags, isVariableLike, tryGetClassExtendingExpressionWithTypeArguments } from "../compiler/utilities"; +import { isArrayLiteralOrObjectLiteralDestructuringPattern, getTouchingPropertyName, displayPart, getContainerNode, textPart, isObjectBindingElementWithoutPropertyName, punctuationPart, getNodeKind, getAdjustedReferenceLocation, getAdjustedRenameLocation, createTextSpanFromRange, findChildOfKind, isTypeKeyword, isJumpStatementTarget, getTargetLabel, isLabelOfLabeledStatement, isThis, SemanticMeaning, nodeSeenTracker, isExternalModuleSymbol, climbPastPropertyAccess, isLiteralNameOfPropertyDeclarationOrIndexAccess, isNameOfModuleDeclaration, isExpressionOfExternalModuleImportEqualsDeclaration, getMeaningFromLocation, isInString, isInNonReferenceComment, isNewExpressionTarget, isCallExpressionTarget, getPropertySymbolFromBindingElement, getPropertySymbolsFromBaseTypes, getMeaningFromDeclaration, isRightSideOfPropertyAccess } from "./utilities"; +import { ReferencedSymbol, ImplementationLocation, ReferencedSymbolDefinitionInfo, ScriptElementKind, SymbolDisplayPartKind, SymbolDisplayPart, RenameLocation, ReferenceEntry, DocumentSpan, emptyOptions, HighlightSpan, HighlightSpanKind } from "./types"; +import { mapDefined, createMap, append, map, flatMap, first, firstOrUndefined, contains, find, findIndex, compareValues, cast, neverArray, firstDefined, tryAddToSet, tryCast } from "../compiler/core"; +import { getNodeId, getSymbolId } from "../compiler/checker"; +import { tokenToString, isIdentifierPart } from "../compiler/scanner"; +import { Debug } from "../compiler/debug"; +import { findModuleReferences, ExportKind, ImportExport, ImportTracker, ExportInfo, ImportsResult, createImportTracker, getExportInfo, getImportOrExportSymbol } from "./importTracker"; +import { Push } from "../compiler/corePublic"; +import { getNameTable, getContainingObjectLiteralElement, getPropertySymbolsFromContextualType } from "./services"; +import { isExternalModule, forEachChild } from "../compiler/parser"; + export interface SymbolAndEntries { readonly definition: Definition | undefined; readonly references: readonly Entry[]; @@ -326,7 +340,7 @@ namespace ts.FindAllReferences { case DefinitionKind.This: { const { node } = def; const symbol = checker.getSymbolAtLocation(node); - const displayParts = symbol && SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind( + const displayParts = symbol && getSymbolDisplayPartsDocumentationAndSymbolKind( checker, symbol, node.getSourceFile(), getContainerNode(node), node).displayParts || [textPart("this")]; return { node, name: "this", kind: ScriptElementKind.variableElement, displayParts }; } @@ -358,7 +372,7 @@ namespace ts.FindAllReferences { const meaning = Core.getIntersectingMeaningFromDeclarations(node, symbol); const enclosingDeclaration = symbol.declarations && firstOrUndefined(symbol.declarations) || node; const { displayParts, symbolKind } = - SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(checker, symbol, enclosingDeclaration.getSourceFile(), enclosingDeclaration, enclosingDeclaration, meaning); + getSymbolDisplayPartsDocumentationAndSymbolKind(checker, symbol, enclosingDeclaration.getSourceFile(), enclosingDeclaration, enclosingDeclaration, meaning); return { displayParts, kind: symbolKind }; } @@ -602,7 +616,7 @@ namespace ts.FindAllReferences { node = getAdjustedRenameLocation(node); } if (isSourceFile(node)) { - const reference = GoToDefinition.getReferenceAtPosition(node, position, program); + const reference = getReferenceAtPositionImpl(node, position, program); const moduleSymbol = reference && program.getTypeChecker().getMergedSymbol(reference.file.symbol); return moduleSymbol && getReferencedSymbolsForModule(program, moduleSymbol, /*excludeImportTypeOfExportEquals*/ false, sourceFiles, sourceFilesSet); } @@ -774,7 +788,7 @@ namespace ts.FindAllReferences { } } - return references.length ? [{ definition: { type: DefinitionKind.Symbol, symbol }, references }] : emptyArray; + return references.length ? [{ definition: { type: DefinitionKind.Symbol, symbol }, references }] : neverArray; } /** As in a `readonly prop: any` or `constructor(readonly prop: any)`, not a `readonly any[]`. */ @@ -2130,4 +2144,4 @@ namespace ts.FindAllReferences { return options.use === FindReferencesUse.Rename && options.providePrefixAndSuffixTextForRename; } } -} + diff --git a/src/services/formatting/formatting.ts b/src/services/formatting/formatting.ts index 951ad5e5bba87..153733ff53bb2 100644 --- a/src/services/formatting/formatting.ts +++ b/src/services/formatting/formatting.ts @@ -1,5 +1,20 @@ /* @internal */ -namespace ts.formatting { + +import { FormatCodeSettings, FormattingHost, TextChange, EditorSettings } from "../types"; +import { RulesMap } from "./rulesMap"; +import { SyntaxKind, TextRange, Node, SourceFile, InterfaceDeclaration, ModuleDeclaration, Block, CatchClause, Diagnostic, SourceFileLike, LanguageVariant, MethodDeclaration, Declaration, NodeArray, LineAndCharacter, CharacterCodes, CommentRange, FunctionDeclaration, CallExpression, TypeReferenceNode } from "../../compiler/types"; +import { TriviaKind, getEndLinePosition, getStartPositionOfLine, getNonDecoratorTokenPosOfNode, findAncestor, getLeadingCommentRangesOfNode } from "../../compiler/utilities"; +import { Debug } from "../../compiler/debug"; +import { isWhiteSpaceSingleLine, isLineBreak, getTrailingCommentRanges } from "../../compiler/scanner"; +import { FormattingRequestKind, FormattingContext } from "./formattingContext"; +import { getLineStartPositionForPosition, findPrecedingToken, rangeContainsRange, startEndContainsRange, rangeOverlapsWithStartEnd, startEndOverlapsWithStartEnd, rangeContainsStartEnd, isComment, isStringOrRegularExpressionOrTemplateLiteral, createTextChangeFromStartLength, getNewLineOrDefaultFromHost, getTokenAtPosition, rangeContainsPositionExclusive, repeatString } from "../utilities"; +import { forEachChild } from "../../compiler/parser"; +import { SmartIndenter } from "./smartIndenter"; +import { getFormattingScanner, FormattingScanner } from "./formattingScanner"; +import { getNameOfDeclaration, isToken, isNodeArray, isCallLikeExpression, isJSDoc } from "../../../built/local/compiler"; +import { findIndex, forEachRight, concatenate, find } from "../../compiler/core"; +import { RuleAction, RuleFlags, Rule } from "./rule"; + export interface FormatContext { readonly options: FormatCodeSettings; readonly getRules: RulesMap; @@ -1388,4 +1403,4 @@ namespace ts.formatting { return remainder ? spacesString + repeatString(" ", remainder) : spacesString; } } -} + diff --git a/src/services/formatting/formattingContext.ts b/src/services/formatting/formattingContext.ts index 5701f0cd0ad0e..0ac6a7a8d45d6 100644 --- a/src/services/formatting/formattingContext.ts +++ b/src/services/formatting/formattingContext.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.formatting { + +import { TextRangeWithKind } from "./formatting"; +import { Node, SourceFileLike, SyntaxKind } from "../../compiler/types"; +import { FormatCodeSettings } from "../types"; +import { Debug } from "../../compiler/debug"; +import { findChildOfKind } from "../utilities"; + export const enum FormattingRequestKind { FormatDocument, FormatSelection, @@ -99,4 +105,4 @@ namespace ts.formatting { return false; } } -} + diff --git a/src/services/formatting/formattingScanner.ts b/src/services/formatting/formattingScanner.ts index 64e257f4a0834..fdacb6fbd0731 100644 --- a/src/services/formatting/formattingScanner.ts +++ b/src/services/formatting/formattingScanner.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.formatting { + +import { createScanner } from "../../compiler/scanner"; +import { ScriptTarget, LanguageVariant, Node, SyntaxKind } from "../../compiler/types"; +import { TokenInfo, TextRangeWithKind, TextRangeWithTriviaKind, createTextRangeWithKind } from "./formatting"; +import { last, append } from "../../compiler/core"; +import { isTrivia, isKeyword, findAncestor } from "../../compiler/utilities"; +import { isJsxText, isJsxElement, isParenthesizedExpression, isJsxAttribute, isToken } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; + const standardScanner = createScanner(ScriptTarget.Latest, /*skipTrivia*/ false, LanguageVariant.Standard); const jsxScanner = createScanner(ScriptTarget.Latest, /*skipTrivia*/ false, LanguageVariant.JSX); @@ -299,4 +307,4 @@ namespace ts.formatting { trailingTrivia = undefined; } } -} + diff --git a/src/services/formatting/rule.ts b/src/services/formatting/rule.ts index ef98461738891..8ad06e7df1a3f 100644 --- a/src/services/formatting/rule.ts +++ b/src/services/formatting/rule.ts @@ -1,5 +1,9 @@ /* @internal */ -namespace ts.formatting { + +import { FormattingContext } from "./formattingContext"; +import { neverArray } from "../../compiler/core"; +import { SyntaxKind } from "../../compiler/types"; + export interface Rule { // Used for debugging to identify each rule based on the property name it's assigned to. readonly debugName: string; @@ -9,7 +13,7 @@ namespace ts.formatting { } export type ContextPredicate = (context: FormattingContext) => boolean; - export const anyContext: readonly ContextPredicate[] = emptyArray; + export const anyContext: readonly ContextPredicate[] = neverArray; export const enum RuleAction { StopProcessingSpaceActions = 1 << 0, @@ -34,4 +38,4 @@ namespace ts.formatting { readonly tokens: readonly SyntaxKind[]; readonly isSpecific: boolean; } -} + diff --git a/src/services/formatting/rules.ts b/src/services/formatting/rules.ts index 1f84b04e531f8..1129ce55074d9 100644 --- a/src/services/formatting/rules.ts +++ b/src/services/formatting/rules.ts @@ -1,5 +1,16 @@ /* @internal */ -namespace ts.formatting { + +import { TokenRange, Rule, anyContext, RuleAction, RuleFlags, ContextPredicate } from "./rule"; +import { SyntaxKind, BinaryExpression, Node, YieldExpression } from "../../compiler/types"; +import { typeKeywords, findNextToken, positionIsASICandidate } from "../utilities"; +import { SemicolonPreference, FormatCodeSettings } from "../types"; +import { isArray } from "util"; +import { contains } from "../../compiler/core"; +import { FormattingContext, FormattingRequestKind } from "./formattingContext"; +import { isFunctionLikeKind, isPropertySignature, isPropertyDeclaration } from "../../../built/local/compiler"; +import { isExpressionNode, isTrivia, findAncestor } from "../../compiler/utilities"; +import { TextRangeWithKind } from "./formatting"; + export interface RuleSpec { readonly leftTokenRange: TokenRange; readonly rightTokenRange: TokenRange; @@ -888,4 +899,4 @@ namespace ts.formatting { function isSemicolonInsertionContext(context: FormattingContext): boolean { return positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile); } -} + diff --git a/src/services/formatting/rulesMap.ts b/src/services/formatting/rulesMap.ts index ccee491040fc6..11d3da3742d31 100644 --- a/src/services/formatting/rulesMap.ts +++ b/src/services/formatting/rulesMap.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.formatting { + +import { FormatCodeSettings, FormattingHost } from "../types"; +import { FormatContext } from "./formatting"; +import { getAllRules, RuleSpec } from "./rules"; +import { RuleAction, Rule, anyContext } from "./rule"; +import { FormattingContext } from "./formattingContext"; +import { every } from "../../compiler/core"; +import { Debug } from "../../compiler/debug"; +import { SyntaxKind } from "../../compiler/types"; + export function getFormatContext(options: FormatCodeSettings, host: FormattingHost): FormatContext { return { options, getRules: getRulesMap(), host }; } @@ -137,4 +146,4 @@ namespace ts.formatting { Debug.assert((value & mask) === value, "Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."); return (indexBitmap & ~(mask << maskPosition)) | (value << maskPosition); } -} + diff --git a/src/services/formatting/smartIndenter.ts b/src/services/formatting/smartIndenter.ts index 23011643811f3..ede095bc6a0c2 100644 --- a/src/services/formatting/smartIndenter.ts +++ b/src/services/formatting/smartIndenter.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.formatting { + +import { SourceFile, SyntaxKind, CommentRange, CharacterCodes, Node, TextRange, LineAndCharacter, SourceFileLike, IfStatement, NodeArray, TypeReferenceNode, ObjectLiteralExpression, ArrayLiteralExpression, TypeLiteralNode, SignatureDeclaration, ClassDeclaration, ClassExpression, InterfaceDeclaration, TypeAliasDeclaration, JSDocTemplateTag, CallExpression, VariableDeclarationList, NamedImportsOrExports, ObjectBindingPattern, ArrayBindingPattern, ImportClause } from "../../compiler/types"; +import { EditorSettings, IndentStyle, FormatCodeSettings } from "../types"; +import { findPrecedingToken, isStringOrRegularExpressionOrTemplateLiteral, rangeContainsRange, getLineStartPositionForPosition, positionBelongsToNode, findListItemInfo, findNextToken, findChildOfKind, rangeContainsStartEnd } from "../utilities"; +import { getRangeOfEnclosingComment, TextRangeWithKind } from "./formatting"; +import { getLineAndCharacterOfPosition, isWhiteSpaceLike, isWhiteSpaceSingleLine, skipTrivia } from "../../compiler/scanner"; +import { Debug } from "../../compiler/debug"; +import { getStartPositionOfLine } from "../../compiler/utilities"; +import { isDeclaration, isStatementButNotDeclaration, isCallExpression, isCallOrNewExpression } from "../../../built/local/compiler"; +import { contains, find } from "../../compiler/core"; + export namespace SmartIndenter { const enum Value { @@ -611,4 +621,4 @@ namespace ts.formatting { return startLine === endLine; } } -} + diff --git a/src/services/getEditsForFileRename.ts b/src/services/getEditsForFileRename.ts index e503826dc8c25..bb64e9c258815 100644 --- a/src/services/getEditsForFileRename.ts +++ b/src/services/getEditsForFileRename.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts { + +import { Program, UserPreferences, PropertyAssignment, Expression, ModuleResolutionHost, Path, StringLiteralLike, SourceFile, ResolvedModuleWithFailedLookupLocations, SourceFileLike, TextRange } from "../compiler/types"; +import { LanguageServiceHost, FileTextChanges } from "./types"; +import { SourceMapper } from "./sourcemaps"; +import { hostUsesCaseSensitiveFileNames, tryRemoveDirectoryPrefix, getTsConfigObjectLiteralExpression, getFileMatcherPatterns, getRegexFromPattern, isAmbientModule, createRange } from "../compiler/utilities"; +import { createGetCanonicalFileName, GetCanonicalFileName, mapDefined, last, find, forEach, endsWith, neverArray } from "../compiler/core"; +import { getRelativePathFromFile, getDirectoryPath, getRelativePathFromDirectory, pathIsRelative, ensurePathIsNonModuleName, normalizePath, combinePaths } from "../compiler/path"; +import { isArrayLiteralExpression, isStringLiteral, factory, getOptionFromName, resolveModuleName, isSourceFile, isObjectLiteralExpression, isPropertyAssignment } from "../../built/local/compiler"; +import { Debug } from "../compiler/debug"; +import { createModuleSpecifierResolutionHost } from "./utilities"; + export function getEditsForFileRename( program: Program, oldFileOrDirPath: string, @@ -234,7 +244,7 @@ namespace ts { } function updateImportsWorker(sourceFile: SourceFile, changeTracker: textChanges.ChangeTracker, updateRef: (refText: string) => string | undefined, updateImport: (importLiteral: StringLiteralLike) => string | undefined) { - for (const ref of sourceFile.referencedFiles || emptyArray) { // TODO: GH#26162 + for (const ref of sourceFile.referencedFiles || neverArray) { // TODO: GH#26162 const updated = updateRef(ref.fileName); if (updated !== undefined && updated !== sourceFile.text.slice(ref.pos, ref.end)) changeTracker.replaceRangeWithText(sourceFile, ref, updated); } @@ -257,4 +267,4 @@ namespace ts { } } } -} + diff --git a/src/services/globalThisShim.ts b/src/services/globalThisShim.ts index 899bb009895c0..3441a1bce7bbb 100644 --- a/src/services/globalThisShim.ts +++ b/src/services/globalThisShim.ts @@ -49,11 +49,11 @@ if (typeof process === "undefined" || process.browser) { //@ts-ignore globalThis.TypeScript.Services = globalThis.TypeScript.Services || {}; //@ts-ignore - globalThis.TypeScript.Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory; + globalThis.TypeScript.Services.TypeScriptServicesFactory = TypeScriptServicesFactory; // 'toolsVersion' gets consumed by the managed side, so it's not unused. // TODO: it should be moved into a namespace though. //@ts-ignore - globalThis.toolsVersion = ts.versionMajorMinor; -} \ No newline at end of file + globalThis.toolsVersion = versionMajorMinor; +} diff --git a/src/services/goToDefinition.ts b/src/services/goToDefinition.ts index 4b39a90c880c7..13a5b8908bca3 100644 --- a/src/services/goToDefinition.ts +++ b/src/services/goToDefinition.ts @@ -1,6 +1,16 @@ /* @internal */ -namespace ts.GoToDefinition { - export function getDefinitionAtPosition(program: Program, sourceFile: SourceFile, position: number): readonly DefinitionInfo[] | undefined { + +import { Program, SourceFile, SyntaxKind, SignatureDeclaration, TypeChecker, Type, Node, TypeFlags, IndexKind, SymbolFlags, Declaration, FunctionLikeDeclaration, FileReference, CallLikeExpression } from "../compiler/types"; +import { DefinitionInfo, ScriptElementKind, DefinitionInfoAndBoundSpan } from "./types"; +import { getTouchingPropertyName, isJumpStatementTarget, getTargetLabel, getNameFromPropertyName, createTextSpanFromRange, isNewExpressionTarget, isCallOrNewExpressionTarget, isNameOfFunctionDeclaration, createTextSpanFromNode, isRightSideOfPropertyAccess } from "./utilities"; +import { isJsxOpeningLikeElement, isVariableDeclaration, isPropertyName, isBindingElement, isObjectBindingPattern, isCallLikeExpression, createTextSpan, isPropertyAccessExpression, isClassLike, isConstructorDeclaration, isFunctionLike, getNameOfDeclaration, textRangeContainsPositionInclusive, createTextSpanFromBounds, isFunctionTypeNode } from "../../built/local/compiler"; +import { isRequireCall, isAssignmentExpression, isInJSFile, isAssignmentDeclaration, findAncestor, getInvokedExpression } from "../compiler/utilities"; +import { neverArray, flatMap, first, mapDefined, forEach, filter, map, find, last, tryCast } from "../compiler/core"; +import { getContainingObjectLiteralElement, getPropertySymbolsFromContextualType } from "./services"; +import { Debug } from "../compiler/debug"; +import { getSymbolKind } from "./symbolDisplay"; + + export function getDefinitionAtPositionImpl(program: Program, sourceFile: SourceFile, position: number): readonly DefinitionInfo[] | undefined { const reference = getReferenceAtPosition(sourceFile, position, program); if (reference) { return [getDefinitionInfoForFileReference(reference.fileName, reference.file.fileName)]; @@ -40,7 +50,7 @@ namespace ts.GoToDefinition { return [sigInfo]; } else { - const defs = getDefinitionFromSymbol(typeChecker, symbol, node, calledDeclaration) || emptyArray; + const defs = getDefinitionFromSymbol(typeChecker, symbol, node, calledDeclaration) || neverArray; // For a 'super()' call, put the signature first, else put the variable first. return node.kind === SyntaxKind.SuperKeyword ? [sigInfo, ...defs] : [...defs, sigInfo]; } @@ -71,7 +81,7 @@ namespace ts.GoToDefinition { (node === (parent.propertyName || parent.name))) { const name = getNameFromPropertyName(node); const type = typeChecker.getTypeAtLocation(parent.parent); - return name === undefined ? emptyArray : flatMap(type.isUnion() ? type.types : [type], t => { + return name === undefined ? neverArray : flatMap(type.isUnion() ? type.types : [type], t => { const prop = t.getProperty(name); return prop && getDefinitionFromSymbol(typeChecker, prop, node); }); @@ -109,7 +119,7 @@ namespace ts.GoToDefinition { || (!isCallLikeExpression(calledDeclaration.parent) && s === calledDeclaration.parent.symbol); } - export function getReferenceAtPosition(sourceFile: SourceFile, position: number, program: Program): { fileName: string, file: SourceFile } | undefined { + export function getReferenceAtPositionImpl(sourceFile: SourceFile, position: number, program: Program): { fileName: string, file: SourceFile } | undefined { const referencePath = findReferenceInPosition(sourceFile.referencedFiles, position); if (referencePath) { const file = program.getSourceFileFromReference(sourceFile, referencePath); @@ -133,7 +143,7 @@ namespace ts.GoToDefinition { } /// Goto type - export function getTypeDefinitionAtPosition(typeChecker: TypeChecker, sourceFile: SourceFile, position: number): readonly DefinitionInfo[] | undefined { + export function getTypeDefinitionAtPositionImpl(typeChecker: TypeChecker, sourceFile: SourceFile, position: number): readonly DefinitionInfo[] | undefined { const node = getTouchingPropertyName(sourceFile, position); if (node === sourceFile) { return undefined; @@ -288,7 +298,7 @@ namespace ts.GoToDefinition { /** Creates a DefinitionInfo from a Declaration, using the declaration's name if possible. */ function createDefinitionInfo(declaration: Declaration, checker: TypeChecker, symbol: Symbol, node: Node): DefinitionInfo { const symbolName = checker.symbolToString(symbol); // Do not get scoped name, just the name of the symbol - const symbolKind = SymbolDisplay.getSymbolKind(checker, symbol, node); + const symbolKind = getSymbolKind(checker, symbol, node); const containerName = symbol.parent ? checker.symbolToString(symbol.parent, node) : ""; return createDefinitionInfoFromName(checker, declaration, symbolKind, symbolName, containerName); } @@ -357,4 +367,4 @@ namespace ts.GoToDefinition { return false; } } -} + diff --git a/src/services/importTracker.ts b/src/services/importTracker.ts index b783532b85976..8f091dd2d0318 100644 --- a/src/services/importTracker.ts +++ b/src/services/importTracker.ts @@ -1,6 +1,14 @@ /* Code for finding imports of an exported symbol. Used only by FindAllReferences. */ /* @internal */ -namespace ts.FindAllReferences { + +import { Identifier, StringLiteral, SourceFile, TypeChecker, CancellationToken, ModuleDeclaration, ModuleBlock, AnyImportOrReExport, ValidImportTypeNode, CallExpression, SyntaxKind, VariableDeclaration, ModifierFlags, ImportEqualsDeclaration, ImportDeclaration, SymbolFlags, NamedImportsOrExports, __String, InternalSymbolName, StringLiteralLike, FileReference, Program, Statement, ExportDeclaration, Node, ExportAssignment, BinaryExpression, AssignmentDeclarationKind, BindingElement, ImportSpecifier, ImportClause, NamespaceImport } from "../compiler/types"; +import { nodeSeenTracker, symbolEscapedNameNoDefault, isExternalModuleSymbol } from "./utilities"; +import { isExternalModuleAugmentation, getSourceFileOfNode, hasSyntacticModifier, isDefaultImport, getFirstIdentifier, importFromModuleSpecifier, getAssignmentDeclarationKind, getNameOfAccessExpression, isAccessExpression } from "../compiler/utilities"; +import { Debug } from "../compiler/debug"; +import { isImportTypeNode, symbolName, isNamedExports, isExportDeclaration, isStringLiteral, isBinaryExpression, isImportEqualsDeclaration, isExportAssignment, isJSDocTypedefTag, isSourceFile, isVariableDeclaration, isBindingElement, walkUpBindingElementsAndPatterns, isCatchClause, isVariableStatement, isExportSpecifier } from "../../built/local/compiler"; +import { getSymbolId } from "../compiler/checker"; +import { createMap, forEach, cast } from "../compiler/core"; + export interface ImportsResult { /** For every import of the symbol, the location and local symbol for the import. */ importSearches: readonly [Identifier, Symbol][]; @@ -650,4 +658,4 @@ namespace ts.FindAllReferences { function isExternalModuleImportEquals(eq: ImportEqualsDeclaration): eq is ImportEqualsDeclaration & { moduleReference: { expression: StringLiteral } } { return eq.moduleReference.kind === SyntaxKind.ExternalModuleReference && eq.moduleReference.expression.kind === SyntaxKind.StringLiteral; } -} + diff --git a/src/services/jsDoc.ts b/src/services/jsDoc.ts index 3115109572a0d..b0a09aae4f8b3 100644 --- a/src/services/jsDoc.ts +++ b/src/services/jsDoc.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.JsDoc { + +import { CompletionEntry, SymbolDisplayPart, JSDocTagInfo, ScriptElementKind, CompletionEntryDetails, TextInsertion } from "./types"; +import { Declaration, JSDoc, JSDocTag, SyntaxKind, JSDocPropertyTag, JSDocTypedefTag, JSDocImplementsTag, JSDocAugmentsTag, JSDocTemplateTag, JSDocTypeTag, JSDocParameterTag, Node, NodeArray, SourceFile, ParameterDeclaration, FunctionDeclaration, MethodDeclaration, ConstructorDeclaration, MethodSignature, PropertyAssignment, VariableStatement, ExpressionStatement, BinaryExpression, AssignmentDeclarationKind, PropertyDeclaration, Expression, ParenthesizedExpression, FunctionExpression, ClassExpression } from "../compiler/types"; +import { forEachUnique, textPart, lineBreakPart, getTokenAtPosition, getLineStartPositionForPosition } from "./utilities"; +import { pushIfUnique, intersperse, map, neverArray, mapDefined, startsWith, find } from "../compiler/core"; +import { getJSDocCommentsAndTags, findAncestor, hasJSFileExtension, forEachAncestor, getAssignmentDeclarationKind } from "../compiler/utilities"; +import { getJSDocTags, isIdentifier, isFunctionLike, isJSDocParameterTag, isJSDoc, isFunctionExpression, isArrowFunction, isConstructorDeclaration } from "../../built/local/compiler"; +import { length } from "module"; +import { isWhiteSpaceSingleLine } from "../compiler/scanner"; + const jsDocTagNames = [ "abstract", "access", @@ -187,7 +196,7 @@ namespace ts.JsDoc { kind: ScriptElementKind.unknown, // TODO: should have its own kind? kindModifiers: "", displayParts: [textPart(name)], - documentation: emptyArray, + documentation: neverArray, tags: undefined, codeActions: undefined, }; @@ -195,7 +204,7 @@ namespace ts.JsDoc { export function getJSDocParameterNameCompletions(tag: JSDocParameterTag): CompletionEntry[] { if (!isIdentifier(tag.name)) { - return emptyArray; + return neverArray; } const nameThusFar = tag.name.text; const jsdoc = tag.parent; @@ -221,7 +230,7 @@ namespace ts.JsDoc { kind: ScriptElementKind.parameterElement, kindModifiers: "", displayParts: [textPart(name)], - documentation: emptyArray, + documentation: neverArray, tags: undefined, codeActions: undefined, }; @@ -367,7 +376,7 @@ namespace ts.JsDoc { if (getAssignmentDeclarationKind(be) === AssignmentDeclarationKind.None) { return "quit"; } - const parameters = isFunctionLike(be.right) ? be.right.parameters : emptyArray; + const parameters = isFunctionLike(be.right) ? be.right.parameters : neverArray; return { commentOwner, parameters }; } case SyntaxKind.PropertyDeclaration: @@ -397,10 +406,10 @@ namespace ts.JsDoc { return (rightHandSide).parameters; case SyntaxKind.ClassExpression: { const ctr = find((rightHandSide as ClassExpression).members, isConstructorDeclaration); - return ctr ? ctr.parameters : emptyArray; + return ctr ? ctr.parameters : neverArray; } } - return emptyArray; + return neverArray; } -} + diff --git a/src/services/navigateTo.ts b/src/services/navigateTo.ts index bcd0fbe273682..2dea0e44f7758 100644 --- a/src/services/navigateTo.ts +++ b/src/services/navigateTo.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.NavigateTo { + +import { PatternMatchKind, createPatternMatcher, PatternMatcher } from "./patternMatcher"; +import { Declaration, SourceFile, TypeChecker, CancellationToken, SyntaxKind, ImportClause, ImportSpecifier, ImportEqualsDeclaration, Expression, Node, Identifier } from "../compiler/types"; +import { NavigateToItem, ScriptElementKind } from "./types"; +import { neverArray, compareValues, compareStringsCaseSensitiveUI } from "../compiler/core"; +import { Push } from "../compiler/corePublic"; +import { getNameOfDeclaration, isPropertyAccessExpression } from "../../built/local/compiler"; +import { isPropertyNameLiteral, getTextOfIdentifierOrLiteral } from "../compiler/utilities"; +import { getContainerNode, getNodeKind, getNodeModifiers, createTextSpanFromNode } from "./utilities"; + interface RawNavigateToItem { readonly name: string; readonly fileName: string; @@ -10,7 +19,7 @@ namespace ts.NavigateTo { export function getNavigateToItems(sourceFiles: readonly SourceFile[], checker: TypeChecker, cancellationToken: CancellationToken, searchValue: string, maxResultCount: number | undefined, excludeDtsFiles: boolean): NavigateToItem[] { const patternMatcher = createPatternMatcher(searchValue); - if (!patternMatcher) return emptyArray; + if (!patternMatcher) return neverArray; const rawItems: RawNavigateToItem[] = []; // Search the declarations in all files and output matched NavigateToItem into array of NavigateToItem[] @@ -91,7 +100,7 @@ namespace ts.NavigateTo { // portion into the container array. const name = getNameOfDeclaration(declaration); if (name && name.kind === SyntaxKind.ComputedPropertyName && !tryAddComputedPropertyName(name.expression, containers)) { - return emptyArray; + return neverArray; } // Don't include the last portion. containers.shift(); @@ -101,7 +110,7 @@ namespace ts.NavigateTo { while (container) { if (!tryAddSingleDeclarationName(container, containers)) { - return emptyArray; + return neverArray; } container = getContainerNode(container); @@ -133,4 +142,4 @@ namespace ts.NavigateTo { containerKind: containerName ? getNodeKind(container!) : ScriptElementKind.unknown, // TODO: GH#18217 Just use `container ? ...` }; } -} + diff --git a/src/services/navigationBar.ts b/src/services/navigationBar.ts index 9e8cc060d42dd..4031748319a51 100644 --- a/src/services/navigationBar.ts +++ b/src/services/navigationBar.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.NavigationBar { + +import { CancellationToken, SourceFile, Node, DeclarationName, SyntaxKind, BindableStaticNameExpression, PropertyNameLiteral, WellKnownSymbolExpression, ConstructorDeclaration, ClassElement, TypeElement, FunctionLikeDeclaration, ImportClause, ShorthandPropertyAssignment, SpreadAssignment, VariableDeclaration, PropertyAssignment, BindingElement, EnumDeclaration, InterfaceDeclaration, ModuleDeclaration, ExportAssignment, BinaryExpression, AssignmentDeclarationKind, PropertyAccessExpression, EntityNameExpression, BindableObjectDefinePropertyCall, CallExpression, BindableElementAccessExpression, Declaration, Identifier, ModifierFlags, FunctionExpression, ArrowFunction, ClassExpression, InternalSymbolName, FunctionDeclaration, TextSpan, EnumMember, ClassLikeDeclaration, Expression } from "../compiler/types"; +import { NavigationBarItem, NavigationTree } from "./types"; +import { map, createMap, forEach, filterMutate, lastOrUndefined, concatenate, contains, compareStringsCaseSensitiveUI, compareValues, mapDefined } from "../compiler/core"; +import { Debug } from "../compiler/debug"; +import { isDeclaration, isExpression, getNameOfDeclaration, isPrivateIdentifier, isToken, isParameterPropertyDeclaration, isIdentifier, isBindingPattern, isObjectLiteralExpression, isArrowFunction, isFunctionExpression, setTextRange, factory, hasJSDocNodes, isFunctionDeclaration, isVariableDeclaration, isBinaryExpression, isCallExpression, isClassDeclaration, isModuleBlock, isPropertyName, unescapeLeadingUnderscores, isElementAccessExpression, isExportAssignment, isModuleDeclaration, isPropertyAssignment, isClassLike, isStringLiteralLike, isPropertyAccessExpression } from "../../built/local/compiler"; +import { isPropertyNameLiteral, getNameOrArgument, getElementOrPropertyAccessName, hasDynamicName, getAssignmentDeclarationKind, isBindableStaticAccessExpression, isJSDocTypeAlias, hasSyntacticModifier, getPropertyNameForPropertyNameNode, escapeString, removeFileExtension, getSyntacticModifierFlags, isAmbientModule, getTextOfNode, getTextOfIdentifierOrLiteral, getFullWidth, declarationNameToString } from "../compiler/utilities"; +import { forEachChild, isExternalModule } from "../compiler/parser"; +import { getBaseFileName, normalizePath } from "../compiler/path"; +import { getNodeKind, getNodeModifiers, createTextSpanFromRange, createTextSpanFromNode } from "./utilities"; + /** * Matches all whitespace characters in a string. Eg: * @@ -52,7 +62,7 @@ namespace ts.NavigationBar { indent: number; // # of parents } - export function getNavigationBarItems(sourceFile: SourceFile, cancellationToken: CancellationToken): NavigationBarItem[] { + export function getNavigationBarItemsImpl(sourceFile: SourceFile, cancellationToken: CancellationToken): NavigationBarItem[] { curCancellationToken = cancellationToken; curSourceFile = sourceFile; try { @@ -63,7 +73,7 @@ namespace ts.NavigationBar { } } - export function getNavigationTree(sourceFile: SourceFile, cancellationToken: CancellationToken): NavigationTree { + export function getNavigationTreeImpl(sourceFile: SourceFile, cancellationToken: CancellationToken): NavigationTree { curCancellationToken = cancellationToken; curSourceFile = sourceFile; try { @@ -956,4 +966,4 @@ namespace ts.NavigationBar { // \u2029 - Paragraph separator return text.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g, ""); } -} + diff --git a/src/services/organizeImports.ts b/src/services/organizeImports.ts index 566b0ebdd7b76..9520360753ffa 100644 --- a/src/services/organizeImports.ts +++ b/src/services/organizeImports.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.OrganizeImports { + +import { SourceFile, Program, UserPreferences, ImportDeclaration, ExportDeclaration, TransformFlags, Identifier, Expression, NamespaceImport, ImportSpecifier, NamedImports, ExportSpecifier, NamedImportBindings, ImportOrExportSpecifier } from "../compiler/types"; +import { LanguageServiceHost } from "./types"; +import { isImportDeclaration, isExportDeclaration, isNamespaceImport, factory, isStringLiteral, isStringLiteralLike, isNamedExports, isExternalModuleNameRelative } from "../../built/local/compiler"; +import { isAmbientModule } from "../compiler/utilities"; +import { suppressLeadingTrivia, getNewLineOrDefaultFromHost } from "./utilities"; +import { stableSort, flatMap, some, neverArray, compareBooleans, compareStringsCaseInsensitive, length, group, isString } from "../compiler/core"; +import { textChanges } from "./textChanges"; +export namespace OrganizeImports { /** * Organize imports by: @@ -232,7 +240,7 @@ namespace ts.OrganizeImports { const newNamedImports = sortedImportSpecifiers.length === 0 ? newDefaultImport ? undefined - : factory.createNamedImports(emptyArray) + : factory.createNamedImports(neverArray) : namedImports.length === 0 ? factory.createNamedImports(sortedImportSpecifiers) : factory.updateNamedImports(namedImports[0].importClause!.namedBindings as NamedImports, sortedImportSpecifiers); // TODO: GH#18217 @@ -328,7 +336,7 @@ namespace ts.OrganizeImports { continue; } const newExportSpecifiers: ExportSpecifier[] = []; - newExportSpecifiers.push(...flatMap(exportGroup, i => i.exportClause && isNamedExports(i.exportClause) ? i.exportClause.elements : emptyArray)); + newExportSpecifiers.push(...flatMap(exportGroup, i => i.exportClause && isNamedExports(i.exportClause) ? i.exportClause.elements : neverArray)); const sortedExportSpecifiers = sortSpecifiers(newExportSpecifiers); diff --git a/src/services/outliningElementsCollector.ts b/src/services/outliningElementsCollector.ts index 6830a6e0b407e..c7cccb3d10ba3 100644 --- a/src/services/outliningElementsCollector.ts +++ b/src/services/outliningElementsCollector.ts @@ -1,5 +1,13 @@ /* @internal */ -namespace ts.OutliningElementsCollector { + +import { SourceFile, CancellationToken, SyntaxKind, Node, Block, TryStatement, CaseClause, DefaultClause, JsxElement, JsxFragment, JsxOpeningLikeElement, TemplateExpression, NoSubstitutionTemplateLiteral, JsxAttributes, NodeArray, FunctionLike, TextSpan } from "../compiler/types"; +import { OutliningSpan, OutliningSpanKind } from "./types"; +import { Push } from "../compiler/corePublic"; +import { isAnyImportSyntax, findAncestor, getSingleInitializerOfVariableStatementOrPropertyDeclaration, getLeadingCommentRangesOfNode, isNodeArrayMultiLine } from "../compiler/utilities"; +import { findChildOfKind, isInComment, createTextSpanFromNode, createTextSpanFromRange } from "./utilities"; +import { isDeclaration, isFunctionLike, isBinaryExpression, isPropertyAccessExpression, isCallExpression, isIfStatement, isFunctionExpression, isArrowFunction, isVariableStatement, createTextSpanFromBounds, isTupleTypeNode, isBindingElement, isArrayLiteralExpression } from "../../built/local/compiler"; +import { Debug } from "../compiler/debug"; + export function collectElements(sourceFile: SourceFile, cancellationToken: CancellationToken): OutliningSpan[] { const res: OutliningSpan[] = []; addNodeOutliningSpans(sourceFile, cancellationToken, res); @@ -299,4 +307,4 @@ namespace ts.OutliningElementsCollector { } return findChildOfKind(body, SyntaxKind.OpenBraceToken, sourceFile); } -} + diff --git a/src/services/patternMatcher.ts b/src/services/patternMatcher.ts index e6fda18ab3c9c..279eb2ca4d16d 100644 --- a/src/services/patternMatcher.ts +++ b/src/services/patternMatcher.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts { + +import { TextSpan, CharacterCodes, ScriptTarget } from "../compiler/types"; +import { createMap, last, startsWith, min, compareValues, compareBooleans } from "../compiler/core"; +import { Comparison } from "../compiler/corePublic"; +import { createTextSpan } from "../../built/local/compiler"; +import { isUnicodeIdentifierStart } from "../compiler/scanner"; + // Note(cyrusn): this enum is ordered from strongest match type to weakest match type. export enum PatternMatchKind { exact, @@ -29,10 +35,10 @@ namespace ts { // is useful as a quick check to prevent having to compute a container before calling // "getMatches". // - // For example, if the search pattern is "ts.c.SK" and the candidate is "SyntaxKind", then + // For example, if the search pattern is "c.SK" and the candidate is "SyntaxKind", then // this will return a successful match, having only tested "SK" against "SyntaxKind". At - // that point a call can be made to 'getMatches("SyntaxKind", "ts.compiler")', with the - // work to create 'ts.compiler' only being done once the first match succeeded. + // that point a call can be made to 'getMatches("SyntaxKind", "compiler")', with the + // work to create 'compiler' only being done once the first match succeeded. getMatchForLastSegmentOfPattern(candidate: string): PatternMatch | undefined; // Fully checks a candidate, with an dotted container, against the search pattern. @@ -590,4 +596,4 @@ namespace ts { function every(s: string, pred: (ch: number, index: number) => boolean, start = 0, end = s.length): boolean { return everyInRange(start, end, i => pred(s.charCodeAt(i), i)); } -} + diff --git a/src/services/preProcess.ts b/src/services/preProcess.ts index 41845616bbe4b..40f8786c99158 100644 --- a/src/services/preProcess.ts +++ b/src/services/preProcess.ts @@ -1,4 +1,10 @@ -namespace ts { +import { PreProcessedFileInfo } from "./types"; +import { PragmaContext, processCommentPragmas, processPragmasIntoFields } from "../compiler/parser"; +import { ScriptTarget, FileReference, SyntaxKind } from "../compiler/types"; +import { scanner } from "./utilities"; +import { isKeyword } from "../compiler/utilities"; +import { noop } from "../compiler/core"; + export function preProcessFile(sourceText: string, readImportFiles = true, detectJavaScriptImports = false): PreProcessedFileInfo { const pragmaContext: PragmaContext = { languageVersion: ScriptTarget.ES5, // controls whether the token scanner considers unicode identifiers or not - shouldn't matter, since we're only using it for trivia @@ -397,4 +403,4 @@ namespace ts { return { referencedFiles: pragmaContext.referencedFiles, typeReferenceDirectives: pragmaContext.typeReferenceDirectives, libReferenceDirectives: pragmaContext.libReferenceDirectives, importedFiles, isLibFile: !!pragmaContext.hasNoDefaultLib, ambientExternalModules: ambientModuleNames }; } } -} + diff --git a/src/services/refactorProvider.ts b/src/services/refactorProvider.ts index f88613ecea7f6..9b9a54ee739a2 100644 --- a/src/services/refactorProvider.ts +++ b/src/services/refactorProvider.ts @@ -1,5 +1,8 @@ /* @internal */ -namespace ts.refactor { + +import { Refactor, RefactorContext, ApplicableRefactorInfo, RefactorEditInfo } from "./types"; +import { createMap, arrayFrom, flatMapIterator } from "../compiler/core"; + // A map with the refactor code as key, the refactor itself as value // e.g. nonSuggestableRefactors[refactorCode] -> the refactor you want const refactors: Map = createMap(); @@ -18,4 +21,4 @@ namespace ts.refactor { const refactor = refactors.get(refactorName); return refactor && refactor.getEditsForAction(context, actionName); } -} + diff --git a/src/services/refactors/addOrRemoveBracesToArrowFunction.ts b/src/services/refactors/addOrRemoveBracesToArrowFunction.ts index a2a14152da738..7d63b52962360 100644 --- a/src/services/refactors/addOrRemoveBracesToArrowFunction.ts +++ b/src/services/refactors/addOrRemoveBracesToArrowFunction.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.refactor.addOrRemoveBracesToArrowFunction { + +import { registerRefactor } from "../refactorProvider"; +import { ArrowFunction, Expression, ReturnStatement, ConciseBody, SyntaxKind, SourceFile } from "../../compiler/types"; +import { RefactorContext, ApplicableRefactorInfo, RefactorEditInfo } from "../types"; +import { neverArray, first } from "../../compiler/core"; +import { factory, isArrowFunction, isExpression, isReturnStatement } from "../../../built/local/compiler"; +import { suppressLeadingAndTrailingTrivia, copyLeadingComments, needsParentheses, copyTrailingAsLeadingComments, copyTrailingComments, getTokenAtPosition, rangeContainsRange } from "../utilities"; +import { Debug } from "../../compiler/debug"; +import { getContainingFunction, getLocaleSpecificMessage } from "../../compiler/utilities"; + const refactorName = "Add or remove braces in an arrow function"; const refactorDescription = Diagnostics.Add_or_remove_braces_in_an_arrow_function.message; const addBracesActionName = "Add braces to arrow function"; @@ -26,7 +35,7 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction { function getAvailableActions(context: RefactorContext): readonly ApplicableRefactorInfo[] { const { file, startPosition, triggerReason } = context; const info = getConvertibleArrowFunctionAtPosition(file, startPosition, triggerReason === "invoked"); - if (!info) return emptyArray; + if (!info) return neverArray; if (info.error === undefined) { return [{ @@ -61,7 +70,7 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction { }]; } - return emptyArray; + return neverArray; } function getEditsForAction(context: RefactorContext, actionName: string): RefactorEditInfo | undefined { @@ -142,4 +151,4 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction { } return undefined; } -} + diff --git a/src/services/refactors/convertArrowFunctionOrFunctionExpression.ts b/src/services/refactors/convertArrowFunctionOrFunctionExpression.ts index 6982d67f0d452..6af34e3dcdddb 100644 --- a/src/services/refactors/convertArrowFunctionOrFunctionExpression.ts +++ b/src/services/refactors/convertArrowFunctionOrFunctionExpression.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.refactor.convertArrowFunctionOrFunctionExpression { + +import { getLocaleSpecificMessage, getContainingFunction, isVariableDeclarationInVariableStatement } from "../../compiler/utilities"; +import { registerRefactor } from "../refactorProvider"; +import { FunctionExpression, ArrowFunction, VariableDeclaration, VariableDeclarationList, VariableStatement, Identifier, Node, SourceFile, Program, ConciseBody, Block, SyntaxKind, Statement, ReturnStatement } from "../../compiler/types"; +import { RefactorContext, ApplicableRefactorInfo, RefactorActionInfo, RefactorEditInfo, FileTextChanges } from "../types"; +import { neverArray } from "../../compiler/core"; +import { isArrowFunction, isVariableDeclaration, isFunctionExpression, isClassLike, isFunctionDeclaration, isVariableDeclarationList, isExpression, factory, isVariableStatement, isIdentifier, isReturnStatement } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; +import { isThis, getTokenAtPosition, rangeContainsRange, suppressLeadingTrivia, suppressLeadingAndTrailingTrivia, copyComments } from "../utilities"; +import { forEachChild } from "../../compiler/parser"; + const refactorName = "Convert arrow function or function expression"; const refactorDescription = getLocaleSpecificMessage(Diagnostics.Convert_arrow_function_or_function_expression); @@ -29,7 +39,7 @@ namespace ts.refactor.convertArrowFunctionOrFunctionExpression { const { file, startPosition, program } = context; const info = getFunctionInfo(file, startPosition, program); - if (!info) return emptyArray; + if (!info) return neverArray; const { selectedVariableDeclaration, func } = info; const possibleActions: RefactorActionInfo[] = []; @@ -213,4 +223,4 @@ namespace ts.refactor.convertArrowFunctionOrFunctionExpression { function canBeConvertedToExpression(body: Block, head: Statement): head is ReturnStatement { return body.statements.length === 1 && ((isReturnStatement(head) && !!head.expression)); } -} + diff --git a/src/services/refactors/convertExport.ts b/src/services/refactors/convertExport.ts index 1ab52fadc9bd4..3b57b2a46da44 100644 --- a/src/services/refactors/convertExport.ts +++ b/src/services/refactors/convertExport.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.refactor { + +import { registerRefactor } from "../refactorProvider"; +import { ApplicableRefactorInfo, RefactorEditInfo, RefactorContext } from "../types"; +import { neverArray, first } from "../../compiler/core"; +import { Debug } from "../../compiler/debug"; +import { FunctionDeclaration, ClassDeclaration, InterfaceDeclaration, EnumDeclaration, NamespaceDeclaration, TypeAliasDeclaration, VariableStatement, Identifier, ModifierFlags, InternalSymbolName, SyntaxKind, NodeFlags, SourceFile, Program, CancellationToken, TypeChecker, ImportSpecifier, ExportSpecifier, ImportClause, PropertyAccessExpression, Node } from "../../compiler/types"; +import { getRefactorContextSpan, getTokenAtPosition, getParentNodeInSpan, findModifier, quotePreferenceFromString, QuotePreference, makeImport } from "../utilities"; +import { getSyntacticModifierFlags, isAmbientModule, getLocaleSpecificMessage } from "../../compiler/utilities"; +import { isSourceFile, isModuleBlock, isIdentifier, factory, isStringLiteral } from "../../../built/local/compiler"; + const refactorName = "Convert export"; const actionNameDefaultToNamed = "Convert default export to named export"; const actionNameNamedToDefault = "Convert named export to default export"; @@ -7,7 +16,7 @@ namespace ts.refactor { registerRefactor(refactorName, { getAvailableActions(context): readonly ApplicableRefactorInfo[] { const info = getInfo(context, context.triggerReason === "invoked"); - if (!info) return emptyArray; + if (!info) return neverArray; if (info.error === undefined) { const description = info.info.wasDefault ? Diagnostics.Convert_default_export_to_named_export.message : Diagnostics.Convert_named_export_to_default_export.message; @@ -22,7 +31,7 @@ namespace ts.refactor { ]; } - return emptyArray; + return neverArray; }, getEditsForAction(context, actionName): RefactorEditInfo { Debug.assert(actionName === actionNameDefaultToNamed || actionName === actionNameNamedToDefault, "Unexpected action name"); @@ -227,4 +236,4 @@ namespace ts.refactor { function makeExportSpecifier(propertyName: string, name: string): ExportSpecifier { return factory.createExportSpecifier(propertyName === name ? undefined : factory.createIdentifier(propertyName), factory.createIdentifier(name)); } -} + diff --git a/src/services/refactors/convertImport.ts b/src/services/refactors/convertImport.ts index 5ab2b316d5cc8..647e1a3e898c9 100644 --- a/src/services/refactors/convertImport.ts +++ b/src/services/refactors/convertImport.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.refactor { + +import { NamedImportBindings, SyntaxKind, SourceFile, Program, TypeChecker, NamespaceImport, PropertyAccessExpression, SymbolFlags, ImportSpecifier, NamedImports, ScriptTarget, ImportDeclaration, Identifier } from "../../compiler/types"; +import { registerRefactor } from "../refactorProvider"; +import { ApplicableRefactorInfo, RefactorEditInfo, RefactorContext } from "../types"; +import { neverArray, createMap, cast } from "../../compiler/core"; +import { Debug } from "../../compiler/debug"; +import { getRefactorContextSpan, getTokenAtPosition, getParentNodeInSpan, getUniqueName } from "../utilities"; +import { findAncestor, getLocaleSpecificMessage, getAllowSyntheticDefaultImports } from "../../compiler/utilities"; +import { isImportDeclaration, isPropertyAccessExpression, factory, isStringLiteral, isShorthandPropertyAssignment, isExportSpecifier } from "../../../built/local/compiler"; + const refactorName = "Convert import"; const actionNameNamespaceToNamed = "Convert namespace import to named imports"; const actionNameNamedToNamespace = "Convert named imports to namespace import"; @@ -15,7 +24,7 @@ namespace ts.refactor { registerRefactor(refactorName, { getAvailableActions(context): readonly ApplicableRefactorInfo[] { const i = getImportToConvert(context, context.triggerReason === "invoked"); - if (!i) return emptyArray; + if (!i) return neverArray; if (i.error === undefined) { const description = i.info.kind === SyntaxKind.NamespaceImport ? Diagnostics.Convert_namespace_import_to_named_imports.message : Diagnostics.Convert_named_imports_to_namespace_import.message; @@ -30,7 +39,7 @@ namespace ts.refactor { ]; } - return emptyArray; + return neverArray; }, getEditsForAction(context, actionName): RefactorEditInfo { Debug.assert(actionName === actionNameNamespaceToNamed || actionName === actionNameNamedToNamespace, "Unexpected action name"); @@ -158,4 +167,4 @@ namespace ts.refactor { return factory.createImportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, factory.createImportClause(/*isTypeOnly*/ false, defaultImportName, elements && elements.length ? factory.createNamedImports(elements) : undefined), old.moduleSpecifier); } -} + diff --git a/src/services/refactors/convertOverloadListToSingleSignature.ts b/src/services/refactors/convertOverloadListToSingleSignature.ts index fbcb6fece0cb4..c37c1eceea158 100644 --- a/src/services/refactors/convertOverloadListToSingleSignature.ts +++ b/src/services/refactors/convertOverloadListToSingleSignature.ts @@ -1,5 +1,16 @@ /* @internal */ -namespace ts.refactor.addOrRemoveBracesToArrowFunction { + +import { registerRefactor } from "../refactorProvider"; +import { RefactorContext, ApplicableRefactorInfo, RefactorEditInfo } from "../types"; +import { neverArray, map, some, every, mapDefined } from "../../compiler/core"; +import { SyntaxKind, MethodSignature, MethodDeclaration, CallSignatureDeclaration, ConstructorDeclaration, ConstructSignatureDeclaration, FunctionDeclaration, NodeArray, ParameterDeclaration, TupleTypeNode, EmitFlags, NamedTupleMember, Node, SourceFile, Program } from "../../compiler/types"; +import { factory, isFunctionLikeDeclaration, setEmitFlags, getSyntheticLeadingComments, isIdentifier, setTextRange, setSyntheticLeadingComments } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; +import { length } from "module"; +import { displayPartsToString } from "../services"; +import { getTokenAtPosition } from "../utilities"; +import { findAncestor, getSourceFileOfNode } from "../../compiler/utilities"; + const refactorName = "Convert overload list to single signature"; const refactorDescription = Diagnostics.Convert_overload_list_to_single_signature.message; registerRefactor(refactorName, { getEditsForAction, getAvailableActions }); @@ -8,7 +19,7 @@ namespace ts.refactor.addOrRemoveBracesToArrowFunction { function getAvailableActions(context: RefactorContext): readonly ApplicableRefactorInfo[] { const { file, startPosition, program } = context; const info = getConvertableOverloadListAtPosition(file, startPosition, program); - if (!info) return emptyArray; + if (!info) return neverArray; return [{ name: refactorName, @@ -217,4 +228,4 @@ ${newComment.split("\n").map(c => ` * ${c}`).join("\n")} return signatureDecls; } -} + diff --git a/src/services/refactors/convertParamsToDestructuredObject.ts b/src/services/refactors/convertParamsToDestructuredObject.ts index ec2277b5da8a7..d4dce6c8c293c 100644 --- a/src/services/refactors/convertParamsToDestructuredObject.ts +++ b/src/services/refactors/convertParamsToDestructuredObject.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.refactor.convertParamsToDestructuredObject { + +import { registerRefactor } from "../refactorProvider"; +import { RefactorContext, ApplicableRefactorInfo, RefactorEditInfo, LanguageServiceHost } from "../types"; +import { isSourceFileJS, getLocaleSpecificMessage, getSourceFileOfNode, isExpressionWithTypeArgumentsInClassExtendsClause, getContainingFunctionDeclaration, findAncestor, isRestParameter, isVarConst, getTextOfIdentifierOrLiteral } from "../../compiler/utilities"; +import { neverArray, map, first, last, sortAndDeduplicate, compareValues, deduplicate, equateValues, flatMap, every, contains, tryCast } from "../../compiler/core"; +import { Debug } from "../../compiler/debug"; +import { SourceFile, Program, CancellationToken, Node, CallExpression, NewExpression, SyntaxKind, ElementAccessExpression, PropertyAccessExpression, TypeChecker, FunctionLikeDeclaration, FunctionDeclaration, ClassDeclaration, NodeArray, ParameterDeclaration, Expression, PropertyAssignment, ShorthandPropertyAssignment, ObjectLiteralExpression, BindingElement, TypeLiteralNode, EmitFlags, PropertySignature, TypeNode, Identifier, Modifier, VariableDeclaration, ConstructorDeclaration, ClassExpression, FunctionBody, MethodDeclaration, FunctionExpression, ArrowFunction } from "../../compiler/types"; +import { getSynthesizedDeepClone, isNewExpressionTarget, getSymbolTarget, getMeaningFromLocation, SemanticMeaning, getTouchingToken, rangeContainsRange, findModifier, isThis, suppressLeadingAndTrailingTrivia, copyComments, getTypeNodeIfAccessible, findChildOfKind } from "../utilities"; +import { isConstructorDeclaration, isClassDeclaration, isImportSpecifier, isImportClause, isImportEqualsDeclaration, isNamespaceImport, isExportSpecifier, isExportAssignment, isDeclaration, isCallOrNewExpression, isPropertyAccessExpression, isElementAccessExpression, isJSDocNode, isFunctionLikeDeclaration, isIdentifier, isVariableDeclaration, factory, isPropertyAssignment, addEmitFlags } from "../../../built/local/compiler"; + const refactorName = "Convert parameters to destructured object"; const minimumParameterLength = 2; registerRefactor(refactorName, { getEditsForAction, getAvailableActions }); @@ -8,9 +17,9 @@ namespace ts.refactor.convertParamsToDestructuredObject { function getAvailableActions(context: RefactorContext): readonly ApplicableRefactorInfo[] { const { file, startPosition } = context; const isJSFile = isSourceFileJS(file); - if (isJSFile) return emptyArray; // TODO: GH#30113 + if (isJSFile) return neverArray; // TODO: GH#30113 const functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, context.program.getTypeChecker()); - if (!functionDeclaration) return emptyArray; + if (!functionDeclaration) return neverArray; const description = getLocaleSpecificMessage(Diagnostics.Convert_parameters_to_destructured_object); return [{ @@ -596,4 +605,4 @@ namespace ts.refactor.convertParamsToDestructuredObject { accessExpressions: Node[]; typeUsages: Node[]; } -} + diff --git a/src/services/refactors/convertStringOrTemplateLiteral.ts b/src/services/refactors/convertStringOrTemplateLiteral.ts index ebcd13229ef7a..635b7e72a5f29 100644 --- a/src/services/refactors/convertStringOrTemplateLiteral.ts +++ b/src/services/refactors/convertStringOrTemplateLiteral.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.refactor.convertStringOrTemplateLiteral { + +import { getLocaleSpecificMessage } from "../../compiler/utilities"; +import { registerRefactor } from "../refactorProvider"; +import { RefactorContext, ApplicableRefactorInfo, RefactorEditInfo } from "../types"; +import { isBinaryExpression, isParenthesizedExpression, isStringLiteral, factory } from "../../../built/local/compiler"; +import { neverArray } from "../../compiler/core"; +import { SourceFile, Node, BinaryExpression, SyntaxKind, Expression, Token, BinaryOperator, StringLiteral, TemplateSpan, ParenthesizedExpression } from "../../compiler/types"; +import { getTokenAtPosition, copyTrailingComments, copyTrailingAsLeadingComments } from "../utilities"; +import { Debug } from "../../compiler/debug"; +import { getTrailingCommentRanges } from "../../compiler/scanner"; + const refactorName = "Convert to template string"; const refactorDescription = getLocaleSpecificMessage(Diagnostics.Convert_to_template_string); @@ -15,7 +25,7 @@ namespace ts.refactor.convertStringOrTemplateLiteral { refactorInfo.actions.push({ name: refactorName, description: refactorDescription }); return [refactorInfo]; } - return emptyArray; + return neverArray; } function getNodeOrParentOfParentheses(file: SourceFile, startPosition: number) { @@ -182,4 +192,4 @@ namespace ts.refactor.convertStringOrTemplateLiteral { } return node; } -} + diff --git a/src/services/refactors/extractSymbol.ts b/src/services/refactors/extractSymbol.ts index 451ac6359b9ab..38cd1611bbe06 100644 --- a/src/services/refactors/extractSymbol.ts +++ b/src/services/refactors/extractSymbol.ts @@ -1,5 +1,19 @@ /* @internal */ -namespace ts.refactor.extractSymbol { + +import { registerRefactor } from "../refactorProvider"; +import { RefactorContext, ApplicableRefactorInfo, RefactorActionInfo, RefactorEditInfo } from "../types"; +import { getRefactorContextSpan, getTokenAtPosition, getParentNodeInSpan, findTokenOnLeftOfPosition, isThis, ANONYMOUS, getUniqueName, suppressLeadingAndTrailingTrivia, getSynthesizedDeepClone, getRenameLocation, rangeContainsStartEnd } from "../utilities"; +import { neverArray, createMap, contains, first, arrayFrom, last, find, singleOrUndefined, firstOrUndefined, compareProperties, compareValues, compareStringsCaseSensitive, assertType, map } from "../../compiler/core"; +import { getLocaleSpecificMessage, createFileDiagnostic, createDiagnosticForNode, hasSyntacticModifier, getContainingFunction, positionIsSynthesized, isExpressionNode, getContainingClass, findAncestor, formatStringFromArgs, getEmitScriptTarget, isInJSFile, isDeclarationWithTypeParameters, isBlockScope, getEnclosingBlockScopeContainer, hasEffectiveModifier, isAssignmentExpression, isPartOfTypeNode } from "../../compiler/utilities"; +import { Diagnostic, DiagnosticMessage, DiagnosticCategory, Expression, Statement, FunctionLikeDeclaration, SourceFile, ModuleBlock, ClassLikeDeclaration, TextSpan, BlockLike, Node, SyntaxKind, ModifierFlags, NodeFlags, __String, TryStatement, LabeledStatement, BreakStatement, ContinueStatement, ExpressionStatement, Block, VariableDeclaration, TypeNode, ParameterDeclaration, Identifier, NodeBuilderFlags, TypeParameterDeclaration, MethodDeclaration, FunctionDeclaration, Modifier, BindingElement, TypeElement, TypeLiteralNode, EmitFlags, SignatureKind, Type, Declaration, VisitResult, ObjectLiteralElementLike, ClassElement, ShorthandPropertyAssignment, TextRange, TypeParameter, TypeChecker, CancellationToken, NamedDeclaration, TypeFlags, SymbolFlags, PropertyAccessExpression, EntityName } from "../../compiler/types"; +import { Debug } from "../../compiler/debug"; +import { textSpanEnd, isJSDoc, isReturnStatement, isVariableStatement, isVariableDeclaration, isIdentifier, isExpressionStatement, isStatement, isDeclaration, isClassLike, isFunctionLike, isArrowFunction, isSourceFile, isIterationStatement, isFunctionLikeDeclaration, isModuleBlock, isExpression, factory, setEmitFlags, isParenthesizedTypeNode, isUnionTypeNode, isJsxElement, isFunctionExpression, isVariableDeclarationList, isBlock, isConstructorDeclaration, isPropertyDeclaration, isCaseClause, isSwitchStatement, getEffectiveTypeParameterDeclarations, isUnaryExpressionWithWrite, isPropertyAccessExpression, isElementAccessExpression, isQualifiedName, isShorthandPropertyAssignment, isBinaryExpression } from "../../../built/local/compiler"; +import { forEachChild } from "../../compiler/parser"; +import { visitNodes, visitNode, visitEachChild } from "../../compiler/visitorPublic"; +import { getNodeId, getSymbolId } from "../../compiler/checker"; +import { nullTransformationContext } from "../../compiler/transformer"; +import { isArray } from "util"; + const refactorName = "Extract Symbol"; registerRefactor(refactorName, { getAvailableActions, getEditsForAction }); @@ -13,7 +27,7 @@ namespace ts.refactor.extractSymbol { const targetRange = rangeToExtract.targetRange; if (targetRange === undefined) { if (!rangeToExtract.errors || rangeToExtract.errors.length === 0 || !context.preferences.provideRefactorNotApplicableReason) { - return emptyArray; + return neverArray; } return [{ @@ -39,7 +53,7 @@ namespace ts.refactor.extractSymbol { const extractions = getPossibleExtractions(targetRange, context); if (extractions === undefined) { // No extractions possible - return emptyArray; + return neverArray; } const functionActions: RefactorActionInfo[] = []; @@ -132,7 +146,7 @@ namespace ts.refactor.extractSymbol { }); } - return infos.length ? infos : emptyArray; + return infos.length ? infos : neverArray; function getStringError(errors: readonly Diagnostic[]) { let error = errors[0].messageText; @@ -1405,7 +1419,7 @@ namespace ts.refactor.extractSymbol { assertType(scope); } - return emptyArray; + return neverArray; } /** @@ -1953,4 +1967,4 @@ namespace ts.refactor.extractSymbol { return false; } } -} + diff --git a/src/services/refactors/extractType.ts b/src/services/refactors/extractType.ts index ef922bce633b8..58b2cef12abfc 100644 --- a/src/services/refactors/extractType.ts +++ b/src/services/refactors/extractType.ts @@ -1,5 +1,16 @@ /* @internal */ -namespace ts.refactor { + +import { registerRefactor } from "../refactorProvider"; +import { ApplicableRefactorInfo, RefactorEditInfo, RefactorContext } from "../types"; +import { neverArray, append, createMap, addRange, cast, first, forEach, concatenate } from "../../compiler/core"; +import { getLocaleSpecificMessage, isSourceFileJS, findAncestor, addToSeen, isThisIdentifier } from "../../compiler/utilities"; +import { Debug } from "../../compiler/debug"; +import { getUniqueName, getRenameLocation, getTokenAtPosition, createTextRangeFromSpan, getRefactorContextSpan, nodeOverlapsWithStartEnd, getNameFromPropertyName, rangeContainsStartEnd } from "../utilities"; +import { TypeNode, Statement, TypeParameterDeclaration, TypeElement, TypeChecker, TextRange, Node, SourceFile, SymbolFlags, EmitFlags, JSDocTemplateTag, JSDocTag } from "../../compiler/types"; +import { isTypeNode, isStatement, isIntersectionTypeNode, isParenthesizedTypeNode, isTypeLiteralNode, isTypeReferenceNode, isIdentifier, isTypeParameterDeclaration, isInferTypeNode, isConditionalTypeNode, isTypePredicateNode, isThisTypeNode, isFunctionLike, isTypeQueryNode, isTupleTypeNode, setEmitFlags, factory, ignoreSourceNewlines, getEffectiveConstraintOfTypeParameter, isJSDocTypeExpression } from "../../../built/local/compiler"; +import { skipTrivia, getLineAndCharacterOfPosition } from "../../compiler/scanner"; +import { forEachChild } from "../../compiler/parser"; + const refactorName = "Extract type"; const extractToTypeAlias = "Extract to type alias"; const extractToInterface = "Extract to interface"; @@ -7,7 +18,7 @@ namespace ts.refactor { registerRefactor(refactorName, { getAvailableActions(context): readonly ApplicableRefactorInfo[] { const info = getRangeToExtract(context, context.triggerReason === "invoked"); - if (!info) return emptyArray; + if (!info) return neverArray; if (info.error === undefined) { return [{ @@ -35,7 +46,7 @@ namespace ts.refactor { }]; } - return emptyArray; + return neverArray; }, getEditsForAction(context, actionName): RefactorEditInfo { const { file, } = context; @@ -231,4 +242,4 @@ namespace ts.refactor { changes.insertNodeBefore(file, firstStatement, factory.createJSDocComment(/* comment */ undefined, factory.createNodeArray(concatenate(templates, [node]))), /* blankLineBetween */ true); changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map(id => factory.createTypeReferenceNode(id.name, /* typeArguments */ undefined)))); } -} + diff --git a/src/services/refactors/generateGetAccessorAndSetAccessor.ts b/src/services/refactors/generateGetAccessorAndSetAccessor.ts index 7ac211ed76515..3cdc089b70adc 100644 --- a/src/services/refactors/generateGetAccessorAndSetAccessor.ts +++ b/src/services/refactors/generateGetAccessorAndSetAccessor.ts @@ -1,5 +1,11 @@ /* @internal */ -namespace ts.refactor.generateGetAccessorAndSetAccessor { + +import { registerRefactor } from "../refactorProvider"; +import { isIdentifier, isParameter } from "../../../built/local/compiler"; +import { getRenameLocation } from "../utilities"; +import { RefactorContext, ApplicableRefactorInfo } from "../types"; +import { neverArray } from "../../compiler/core"; + const actionName = "Generate 'get' and 'set' accessors"; const actionDescription = Diagnostics.Generate_get_and_set_accessors.message; registerRefactor(actionName, { @@ -18,9 +24,9 @@ namespace ts.refactor.generateGetAccessorAndSetAccessor { return { renameFilename, renameLocation, edits }; }, getAvailableActions(context: RefactorContext): readonly ApplicableRefactorInfo[] { - if (!context.endPosition) return emptyArray; + if (!context.endPosition) return neverArray; const info = codefix.getAccessorConvertiblePropertyAtPosition(context.file, context.startPosition, context.endPosition, context.triggerReason === "invoked"); - if (!info) return emptyArray; + if (!info) return neverArray; if (!info.error) { return [{ @@ -47,7 +53,7 @@ namespace ts.refactor.generateGetAccessorAndSetAccessor { }]; } - return emptyArray; + return neverArray; } }); -} + diff --git a/src/services/refactors/moveToNewFile.ts b/src/services/refactors/moveToNewFile.ts index f4984fe18bde9..4e3562823d8b3 100644 --- a/src/services/refactors/moveToNewFile.ts +++ b/src/services/refactors/moveToNewFile.ts @@ -1,9 +1,20 @@ /* @internal */ -namespace ts.refactor { + +import { registerRefactor } from "../refactorProvider"; +import { ApplicableRefactorInfo, RefactorEditInfo, RefactorContext, LanguageServiceHost } from "../types"; +import { neverArray, findIndex, getRangesWhere, GetCanonicalFileName, tryCast, find, last, contains, flatMap, append, some, createMap, firstDefined, cast, concatenate, mapDefined } from "../../compiler/core"; +import { getLocaleSpecificMessage, extensionFromPath, hostGetCanonicalFileName, hasSyntacticModifier, isRequireCall, skipAlias, removeFileExtension, isDeclarationName, forEachEntry, copyEntries, getAssignmentDeclarationKind } from "../../compiler/utilities"; +import { Debug } from "../../compiler/debug"; +import { Statement, SourceFile, Program, UserPreferences, Node, SyntaxKind, ModifierFlags, VariableStatement, PropertyAssignment, TypeChecker, Identifier, ScriptTarget, SymbolFlags, StringLiteralLike, ImportDeclaration, ImportEqualsDeclaration, ExternalModuleReference, VariableDeclaration, RequireOrImportCall, InternalSymbolName, BindingName, TypeNode, Expression, NodeFlags, CallExpression, TransformFlags, Declaration, NamedImportBindings, ExpressionStatement, BinaryExpression, PropertyAccessExpression, FunctionDeclaration, ClassDeclaration, EnumDeclaration, TypeAliasDeclaration, InterfaceDeclaration, ModuleDeclaration, VariableDeclarationList, BindingElement, AssignmentDeclarationKind, DeclarationStatement } from "../../compiler/types"; +import { createTextRangeFromSpan, getRefactorContextSpan, rangeContainsRange, getQuotePreference, insertImports, getPropertySymbolFromBindingElement, ObjectBindingElementWithoutPropertyName, getUniqueName, QuotePreference, symbolNameNoDefault, makeImportIfNecessary, nodeSeenTracker } from "../utilities"; +import { isNamedDeclaration, isObjectLiteralExpression, isPropertyAssignment, isStringLiteral, isArrayLiteralExpression, factory, isBindingElement, isIdentifier, isPropertyAccessExpression, isImportDeclaration, isImportEqualsDeclaration, isExternalModuleReference, isStringLiteralLike, isVariableStatement, isVariableDeclarationList, isExpressionStatement, isVariableDeclaration, isSourceFile, isBinaryExpression, isOmittedExpression, escapeLeadingUnderscores } from "../../../built/local/compiler"; +import { getDirectoryPath, combinePaths, normalizePath, getRelativePathFromFile, ensurePathIsNonModuleName, getBaseFileName } from "../../compiler/path"; +import { getSymbolId } from "../../compiler/checker"; + const refactorName = "Move to a new file"; registerRefactor(refactorName, { getAvailableActions(context): readonly ApplicableRefactorInfo[] { - if (!context.preferences.allowTextChangesInNewFiles || getStatementsToMove(context) === undefined) return emptyArray; + if (!context.preferences.allowTextChangesInNewFiles || getStatementsToMove(context) === undefined) return neverArray; const description = getLocaleSpecificMessage(Diagnostics.Move_to_a_new_file); return [{ name: refactorName, description, actions: [{ name: refactorName, description }] }]; }, @@ -787,7 +798,7 @@ namespace ts.refactor { case SyntaxKind.TypeAliasDeclaration: case SyntaxKind.InterfaceDeclaration: case SyntaxKind.ImportEqualsDeclaration: - return emptyArray; + return neverArray; case SyntaxKind.ExpressionStatement: return Debug.fail("Can't export an ExpressionStatement"); // Shouldn't try to add 'export' keyword to `exports.x = ...` default: @@ -803,4 +814,4 @@ namespace ts.refactor { SyntaxKind.EqualsToken, factory.createIdentifier(name))); } -} + diff --git a/src/services/rename.ts b/src/services/rename.ts index 4cdb4f14dc857..740d6fdc260e7 100644 --- a/src/services/rename.ts +++ b/src/services/rename.ts @@ -1,6 +1,13 @@ /* @internal */ -namespace ts.Rename { - export function getRenameInfo(program: Program, sourceFile: SourceFile, position: number, options?: RenameInfoOptions): RenameInfo { + +import { Program, SourceFile, Node, TypeChecker, SyntaxKind, SymbolFlags, StringLiteralLike, DiagnosticMessage, NumericLiteral } from "../compiler/types"; +import { RenameInfoOptions, RenameInfo, ScriptElementKind, ScriptElementKindModifier, RenameInfoSuccess, RenameInfoFailure } from "./types"; +import { getAdjustedRenameLocation, getTouchingPropertyName, isImportOrExportSpecifierName, isLiteralNameOfPropertyDeclarationOrIndexAccess } from "./utilities"; +import { isIdentifier, isStringLiteralLike, isExternalModuleNameRelative, isSourceFile, createTextSpan } from "../../built/local/compiler"; +import { tryGetImportFromModuleSpecifier, isStringOrNumericLiteralLike, stripQuotes, getTextOfIdentifierOrLiteral, removeFileExtension, getLocaleSpecificMessage } from "../compiler/utilities"; +import { find, endsWith, tryRemoveSuffix } from "../compiler/core"; + + export function getRenameInfoImpl(program: Program, sourceFile: SourceFile, position: number, options?: RenameInfoOptions): RenameInfo { const node = getAdjustedRenameLocation(getTouchingPropertyName(sourceFile, position)); if (nodeIsEligibleForRename(node)) { const renameInfo = getRenameInfoForNode(node, program.getTypeChecker(), sourceFile, declaration => program.isSourceFileDefaultLibrary(declaration.getSourceFile()), options); @@ -32,13 +39,13 @@ namespace ts.Rename { return options && options.allowRenameOfImportPath ? getRenameInfoForModule(node, sourceFile, symbol) : undefined; } - const kind = SymbolDisplay.getSymbolKind(typeChecker, symbol, node); + const kind = getSymbolKind(typeChecker, symbol, node); const specifierName = (isImportOrExportSpecifierName(node) || isStringOrNumericLiteralLike(node) && node.parent.kind === SyntaxKind.ComputedPropertyName) ? stripQuotes(getTextOfIdentifierOrLiteral(node)) : undefined; const displayName = specifierName || typeChecker.symbolToString(symbol); const fullDisplayName = specifierName || typeChecker.getFullyQualifiedName(symbol); - return getRenameInfoSuccess(displayName, fullDisplayName, kind, SymbolDisplay.getSymbolModifiers(symbol), node, sourceFile); + return getRenameInfoSuccess(displayName, fullDisplayName, kind, getSymbolModifiers(symbol), node, sourceFile); } function getRenameInfoForModule(node: StringLiteralLike, sourceFile: SourceFile, moduleSymbol: Symbol): RenameInfo | undefined { @@ -106,4 +113,4 @@ namespace ts.Rename { return false; } } -} + diff --git a/src/services/services.ts b/src/services/services.ts index 75c9bfdba71df..29195d7166b9b 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1,4 +1,27 @@ -namespace ts { +import { SyntaxKind, Node, NodeFlags, ModifierFlags, TransformFlags, JSDoc, SourceFile, SourceFileLike, NodeArray, JSDocContainer, SyntaxList, EndOfFileToken, SymbolFlags, __String, Declaration, TypeChecker, TransientSymbol, Token, Identifier, GeneratedIdentifierFlags, TypeNode, PrivateIdentifier, Type, TypeFlags, ObjectFlags, Signature, SignatureKind, IndexKind, BaseType, UnionType, IntersectionType, UnionOrIntersectionType, LiteralType, StringLiteralType, NumberLiteralType, TypeParameter, InterfaceType, TypeReference, SignatureFlags, SignatureDeclaration, TypePredicate, Path, Statement, FileReference, DiagnosticWithLocation, ScriptKind, ScriptTarget, LanguageVariant, UnderscoreEscapedMap, ResolvedModuleFull, ResolvedTypeReferenceDirective, StringLiteralLike, StringLiteral, CheckJsDirective, TextRange, PragmaMap, EntityName, TextChangeRange, LineAndCharacter, FunctionLikeDeclaration, VariableDeclaration, ExportDeclaration, ImportDeclaration, BinaryExpression, AssignmentDeclarationKind, SourceMapSource, EmitTextWriter, CompilerOptions, JsxEmit, ProjectReference, CancellationToken, OperationCanceledException, Program, HasInvalidatedResolution, CompilerHost, CreateProgramOptions, Diagnostic, UserPreferences, TextSpan, ModuleDeclaration, CharacterCodes, JsxElement, NumericLiteral, ObjectLiteralElement, PropertyName, ObjectLiteralExpression, JsxAttributes, ElementAccessExpression } from "../compiler/types"; +import { isNodeKind, isJSDocCommentContainingNode, symbolName, isGetAccessor, isSetAccessor, idText, getJSDocTags, getNonAssignedNameOfDeclaration, isComputedPropertyName, isPropertyAccessExpression, isPropertyName, isBindingPattern, isNamedExports, textSpanEnd, timestamp, isNewExpression, isIdentifier, isJsxOpeningElement, isJsxClosingElement, createTextSpanFromBounds, isJsxText, isJsxElement, isPrivateIdentifier, hasJSDocNodes, isObjectLiteralExpression, isJsxAttributes, isObjectLiteralElement, getDefaultLibFileName } from "../../built/local/compiler"; +import { Debug } from "../compiler/debug"; +import { positionIsSynthesized, getSourceFileOfNode, getTokenPosOfNode, getObjectFlags, getAllSuperTypeNodes, hasSyntacticModifier, getAssignmentDeclarationKind, ObjectAllocator, localizedDiagnosticMessages, setLocalizedDiagnosticMessages, hostUsesCaseSensitiveFileNames, getNewLineCharacter, directoryProbablyExists, getEmitDeclarations, isIntrinsicJsxName, createUnderscoreEscapedMap, isStringOrNumericLiteralLike, getEscapedTextOfIdentifierOrLiteral, isDeclarationName, isLiteralComputedPropertyDeclarationName, setObjectAllocator } from "../compiler/utilities"; +import { find, lastOrUndefined, neverArray, forEach, filter, singleElementArray, firstDefined, createMultiMap, hasProperty, map, GetCanonicalFileName, createGetCanonicalFileName, maybeBind, returnFalse, noop, identity, flatMap, mapDefined, createMapFromTemplate, deduplicate, equateValues, compareValues, stringContains, first, isString, isArray } from "../compiler/core"; +import { forEachChild, updateSourceFile, createSourceFile, tagNamesAreEquivalent } from "../compiler/parser"; +import { scanner, forEachUnique, lineBreakPart, getNameFromPropertyName, getScriptKind, getSnapshotText, PossibleProgramFileInfo, getNewLineOrDefaultFromHost, getTouchingPropertyName, createTextSpanFromNode, typeToDisplayParts, getContainerNode, isLabelName, isTagName, isInComment, getAdjustedRenameLocation, isRightSideOfPropertyAccess, isRightSideOfQualifiedName, isNameOfModuleDeclaration, getTouchingToken, findChildOfKind, isInString, isInsideJsxElementOrAttribute, isInTemplateString, findPrecedingToken, createTextSpanFromRange, mapOneOrMany, firstOrOnly } from "./utilities"; +import { Push, MapLike } from "../compiler/corePublic"; +import { SymbolDisplayPart, JSDocTagInfo, IScriptSnapshot, FormatCodeOptions, FormatCodeSettings, EditorOptions, EditorSettings, LanguageServiceHost, HostCancellationToken, LanguageService, GetCompletionsAtPositionOptions, emptyOptions, CompletionInfo, CompletionEntryDetails, QuickInfo, ScriptElementKind, ScriptElementKindModifier, DefinitionInfo, DefinitionInfoAndBoundSpan, ImplementationLocation, ReferenceEntry, HighlightSpanKind, RenameLocation, ReferencedSymbol, NavigateToItem, SignatureHelpItemsOptions, SignatureHelpItems, NavigationBarItem, NavigationTree, ClassifiedSpan, Classifications, EndOfLineState, OutliningSpan, TextChange, CodeFixAction, CombinedCodeFixScope, CombinedCodeActions, OrganizeImportsScope, FileTextChanges, CodeActionCommand, ApplyCodeActionCommandResult, TextInsertion, JsxClosingTagInfo, TodoCommentDescriptor, TodoComment, RenameInfoOptions, RenameInfo, RefactorTriggerReason, RefactorContext, SelectionRange, ApplicableRefactorInfo, RefactorEditInfo, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from "./types"; +import { getLineAndCharacterOfPosition, getLineStarts, computePositionOfLineAndCharacter } from "../compiler/scanner"; +import { toPath, normalizePath, directorySeparator } from "../compiler/path"; +import { DocumentRegistry, createDocumentRegistry } from "./documentRegistry"; +import { getSourceMapper } from "./sourcemaps"; +import { isProgramUptoDate, createProgram } from "../compiler/program"; +import { computeSuggestionDiagnostics } from "./suggestionDiagnostics"; +import { DocumentHighlights } from "./documentHighlights"; +import { getFileEmitOutput } from "../compiler/builderState"; +import { getSemanticClassifications, getEncodedSemanticClassifications, getSyntacticClassifications, getEncodedSyntacticClassifications } from "./classifier"; +import { getEditsForFileRename } from "./getEditsForFileRename"; +import { spanInSourceFileAtLocation } from "./breakpoints"; +import { resolveCallHierarchyDeclaration, createCallHierarchyItem, getIncomingCalls, getOutgoingCalls } from "./callHierarchy"; +import { getJsDocTagsFromDeclarations, getJsDocCommentsFromDeclarations } from "./jsDoc"; +import { getSymbolDisplayPartsDocumentationAndSymbolKind, getSymbolModifiers } from "./symbolDisplay"; + /** The version of the language service API */ export const servicesVersion = "0.8"; @@ -132,7 +155,7 @@ namespace ts { function createChildren(node: Node, sourceFile: SourceFileLike | undefined): Node[] { if (!isNodeKind(node.kind)) { - return emptyArray; + return neverArray; } const children: Node[] = []; @@ -267,7 +290,7 @@ namespace ts { } public getChildren(): Node[] { - return this.kind === SyntaxKind.EndOfFileToken ? (this as EndOfFileToken).jsDoc || emptyArray : emptyArray; + return this.kind === SyntaxKind.EndOfFileToken ? (this as EndOfFileToken).jsDoc || neverArray : neverArray; } public getFirstToken(): Node | undefined { @@ -327,7 +350,7 @@ namespace ts { getDocumentationComment(checker: TypeChecker | undefined): SymbolDisplayPart[] { if (!this.documentationComment) { - this.documentationComment = emptyArray; // Set temporarily to avoid an infinite loop finding inherited docs + this.documentationComment = neverArray; // Set temporarily to avoid an infinite loop finding inherited docs if (!this.declarations && (this as Symbol as TransientSymbol).target && ((this as Symbol as TransientSymbol).target as TransientSymbol).tupleLabelDeclaration) { const labelDecl = ((this as Symbol as TransientSymbol).target as TransientSymbol).tupleLabelDeclaration!; @@ -344,13 +367,13 @@ namespace ts { switch (context?.kind) { case SyntaxKind.GetAccessor: if (!this.contextualGetAccessorDocumentationComment) { - this.contextualGetAccessorDocumentationComment = emptyArray; + this.contextualGetAccessorDocumentationComment = neverArray; this.contextualGetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isGetAccessor), checker); } return this.contextualGetAccessorDocumentationComment; case SyntaxKind.SetAccessor: if (!this.contextualSetAccessorDocumentationComment) { - this.contextualSetAccessorDocumentationComment = emptyArray; + this.contextualSetAccessorDocumentationComment = neverArray; this.contextualSetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isSetAccessor), checker); } return this.contextualSetAccessorDocumentationComment; @@ -361,7 +384,7 @@ namespace ts { getJsDocTags(): JSDocTagInfo[] { if (this.tags === undefined) { - this.tags = JsDoc.getJsDocTagsFromDeclarations(this.declarations); + this.tags = getJsDocTagsFromDeclarations(this.declarations); } return this.tags; @@ -550,7 +573,7 @@ namespace ts { getJsDocTags(): JSDocTagInfo[] { if (this.jsDocTags === undefined) { - this.jsDocTags = this.declaration ? JsDoc.getJsDocTagsFromDeclarations([this.declaration]) : []; + this.jsDocTags = this.declaration ? getJsDocTagsFromDeclarations([this.declaration]) : []; } return this.jsDocTags; @@ -567,9 +590,9 @@ namespace ts { } function getDocumentationComment(declarations: readonly Declaration[] | undefined, checker: TypeChecker | undefined): SymbolDisplayPart[] { - if (!declarations) return emptyArray; + if (!declarations) return neverArray; - let doc = JsDoc.getJsDocCommentsFromDeclarations(declarations); + let doc = getJsDocCommentsFromDeclarations(declarations); if (doc.length === 0 || declarations.some(hasJSDocInheritDocTag)) { forEachUnique(declarations, declaration => { const inheritedDocs = findInheritedJSDocComments(declaration, declaration.symbol.name, checker!); // TODO: GH#18217 @@ -589,7 +612,7 @@ namespace ts { * @returns A filled array of documentation comments if any were found, otherwise an empty array. */ function findInheritedJSDocComments(declaration: Declaration, propertyName: string, typeChecker: TypeChecker): readonly SymbolDisplayPart[] | undefined { - return firstDefined(declaration.parent ? getAllSuperTypeNodes(declaration.parent) : emptyArray, superTypeNode => { + return firstDefined(declaration.parent ? getAllSuperTypeNodes(declaration.parent) : neverArray, superTypeNode => { const superType = typeChecker.getTypeAtLocation(superTypeNode); const baseProperty = superType && typeChecker.getPropertyOfType(superType, propertyName); const inheritedDocs = baseProperty && baseProperty.getDocumentationComment(typeChecker); @@ -1564,11 +1587,11 @@ namespace ts { } const { symbolKind, displayParts, documentation, tags } = typeChecker.runWithCancellationToken(cancellationToken, typeChecker => - SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, getContainerNode(nodeForQuickInfo), nodeForQuickInfo) + getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, getContainerNode(nodeForQuickInfo), nodeForQuickInfo) ); return { kind: symbolKind, - kindModifiers: SymbolDisplay.getSymbolModifiers(symbol), + kindModifiers: getSymbolModifiers(symbol), textSpan: createTextSpanFromNode(nodeForQuickInfo, sourceFile), displayParts, documentation, @@ -1603,17 +1626,17 @@ namespace ts { /// Goto definition function getDefinitionAtPosition(fileName: string, position: number): readonly DefinitionInfo[] | undefined { synchronizeHostData(); - return GoToDefinition.getDefinitionAtPosition(program, getValidSourceFile(fileName), position); + return getDefinitionAtPositionImpl(program, getValidSourceFile(fileName), position); } function getDefinitionAndBoundSpan(fileName: string, position: number): DefinitionInfoAndBoundSpan | undefined { synchronizeHostData(); - return GoToDefinition.getDefinitionAndBoundSpan(program, getValidSourceFile(fileName), position); + return getDefinitionAndBoundSpanImpl(program, getValidSourceFile(fileName), position); } function getTypeDefinitionAtPosition(fileName: string, position: number): readonly DefinitionInfo[] | undefined { synchronizeHostData(); - return GoToDefinition.getTypeDefinitionAtPosition(program.getTypeChecker(), getValidSourceFile(fileName), position); + return getTypeDefinitionAtPositionImpl(program.getTypeChecker(), getValidSourceFile(fileName), position); } /// Goto implementation @@ -1712,7 +1735,7 @@ namespace ts { const sourceFile = getValidSourceFile(fileName); - return SignatureHelp.getSignatureHelpItems(program, sourceFile, position, triggerReason, cancellationToken); + return getSignatureHelpItems(program, sourceFile, position, triggerReason, cancellationToken); } /// Syntactic features @@ -1781,15 +1804,15 @@ namespace ts { // doesn't use compiler - no need to synchronize with host const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); - return BreakpointResolver.spanInSourceFileAtLocation(sourceFile, position); + return spanInSourceFileAtLocation(sourceFile, position); } function getNavigationBarItems(fileName: string): NavigationBarItem[] { - return NavigationBar.getNavigationBarItems(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken); + return getNavigationBarItemsImpl(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken); } function getNavigationTree(fileName: string): NavigationTree { - return NavigationBar.getNavigationTree(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken); + return getNavigationTreeImpl(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken); } function isTsOrTsxFile(fileName: string): boolean { @@ -1797,38 +1820,38 @@ namespace ts { return kind === ScriptKind.TS || kind === ScriptKind.TSX; } - function getSemanticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[] { + function getSemanticClassificationsNameSpaceLocal(fileName: string, span: TextSpan): ClassifiedSpan[] { if (!isTsOrTsxFile(fileName)) { // do not run semantic classification on non-ts-or-tsx files return []; } synchronizeHostData(); - return ts.getSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span); + return getSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span); } - function getEncodedSemanticClassifications(fileName: string, span: TextSpan): Classifications { + function getEncodedSemanticClassificationsNameSpaceLocal(fileName: string, span: TextSpan): Classifications { if (!isTsOrTsxFile(fileName)) { // do not run semantic classification on non-ts-or-tsx files return { spans: [], endOfLineState: EndOfLineState.None }; } synchronizeHostData(); - return ts.getEncodedSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span); + return getEncodedSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span); } - function getSyntacticClassifications(fileName: string, span: TextSpan): ClassifiedSpan[] { + function getSyntacticClassificationsNameSpaceLocal(fileName: string, span: TextSpan): ClassifiedSpan[] { // doesn't use compiler - no need to synchronize with host - return ts.getSyntacticClassifications(cancellationToken, syntaxTreeCache.getCurrentSourceFile(fileName), span); + return getSyntacticClassifications(cancellationToken, syntaxTreeCache.getCurrentSourceFile(fileName), span); } - function getEncodedSyntacticClassifications(fileName: string, span: TextSpan): Classifications { + function getEncodedSyntacticClassificationsNameSpaceLocal(fileName: string, span: TextSpan): Classifications { // doesn't use compiler - no need to synchronize with host - return ts.getEncodedSyntacticClassifications(cancellationToken, syntaxTreeCache.getCurrentSourceFile(fileName), span); + return getEncodedSyntacticClassifications(cancellationToken, syntaxTreeCache.getCurrentSourceFile(fileName), span); } function getOutliningSpans(fileName: string): OutliningSpan[] { // doesn't use compiler - no need to synchronize with host const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); - return OutliningElementsCollector.collectElements(sourceFile, cancellationToken); + return collectElements(sourceFile, cancellationToken); } const braceMatching = createMapFromTemplate({ @@ -1845,7 +1868,7 @@ namespace ts { const matchKind = token.getStart(sourceFile) === position ? braceMatching.get(token.kind.toString()) : undefined; const match = matchKind && findChildOfKind(token.parent, matchKind, sourceFile); // We want to order the braces when we return the result. - return match ? [createTextSpanFromNode(token, sourceFile), createTextSpanFromNode(match, sourceFile)].sort((a, b) => a.start - b.start) : emptyArray; + return match ? [createTextSpanFromNode(token, sourceFile), createTextSpanFromNode(match, sourceFile)].sort((a, b) => a.start - b.start) : neverArray; } function getIndentationAtPosition(fileName: string, position: number, editorOptions: EditorOptions | EditorSettings) { @@ -1921,8 +1944,8 @@ namespace ts { return OrganizeImports.organizeImports(sourceFile, formatContext, host, program, preferences); } - function getEditsForFileRename(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences = emptyOptions): readonly FileTextChanges[] { - return ts.getEditsForFileRename(getProgram()!, oldFilePath, newFilePath, host, formatting.getFormatContext(formatOptions, host), preferences, sourceMapper); + function getEditsForFileRenameNameSpaceLocal(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences = emptyOptions): readonly FileTextChanges[] { + return getEditsForFileRename(getProgram()!, oldFilePath, newFilePath, host, formatting.getFormatContext(formatOptions, host), preferences, sourceMapper); } function applyCodeActionCommand(action: CodeActionCommand, formatSettings?: FormatCodeSettings): Promise; @@ -1944,7 +1967,7 @@ namespace ts { } function getDocCommentTemplateAtPosition(fileName: string, position: number): TextInsertion | undefined { - return JsDoc.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(host), syntaxTreeCache.getCurrentSourceFile(fileName), position); + return getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(host), syntaxTreeCache.getCurrentSourceFile(fileName), position); } function isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean { @@ -2154,7 +2177,7 @@ namespace ts { function getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo { synchronizeHostData(); - return Rename.getRenameInfo(program, getValidSourceFile(fileName), position, options); + return getRenameInfoImpl(program, getValidSourceFile(fileName), position, options); } function getRefactorContext(file: SourceFile, positionOrRange: number | TextRange, preferences: UserPreferences, formatOptions?: FormatCodeSettings, triggerReason?: RefactorTriggerReason): RefactorContext { @@ -2173,7 +2196,7 @@ namespace ts { } function getSmartSelectionRange(fileName: string, position: number): SelectionRange { - return SmartSelectionRange.getSmartSelectionRange(position, syntaxTreeCache.getCurrentSourceFile(fileName)); + return getSmartSelectionRange(position, syntaxTreeCache.getCurrentSourceFile(fileName)); } function getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences = emptyOptions, triggerReason: RefactorTriggerReason): ApplicableRefactorInfo[] { @@ -2197,22 +2220,22 @@ namespace ts { function prepareCallHierarchy(fileName: string, position: number): CallHierarchyItem | CallHierarchyItem[] | undefined { synchronizeHostData(); - const declarations = CallHierarchy.resolveCallHierarchyDeclaration(program, getTouchingPropertyName(getValidSourceFile(fileName), position)); - return declarations && mapOneOrMany(declarations, declaration => CallHierarchy.createCallHierarchyItem(program, declaration)); + const declarations = resolveCallHierarchyDeclaration(program, getTouchingPropertyName(getValidSourceFile(fileName), position)); + return declarations && mapOneOrMany(declarations, declaration => createCallHierarchyItem(program, declaration)); } function provideCallHierarchyIncomingCalls(fileName: string, position: number): CallHierarchyIncomingCall[] { synchronizeHostData(); const sourceFile = getValidSourceFile(fileName); - const declaration = firstOrOnly(CallHierarchy.resolveCallHierarchyDeclaration(program, position === 0 ? sourceFile : getTouchingPropertyName(sourceFile, position))); - return declaration ? CallHierarchy.getIncomingCalls(program, declaration, cancellationToken) : []; + const declaration = firstOrOnly(resolveCallHierarchyDeclaration(program, position === 0 ? sourceFile : getTouchingPropertyName(sourceFile, position))); + return declaration ? getIncomingCalls(program, declaration, cancellationToken) : []; } function provideCallHierarchyOutgoingCalls(fileName: string, position: number): CallHierarchyOutgoingCall[] { synchronizeHostData(); const sourceFile = getValidSourceFile(fileName); - const declaration = firstOrOnly(CallHierarchy.resolveCallHierarchyDeclaration(program, position === 0 ? sourceFile : getTouchingPropertyName(sourceFile, position))); - return declaration ? CallHierarchy.getOutgoingCalls(program, declaration) : []; + const declaration = firstOrOnly(resolveCallHierarchyDeclaration(program, position === 0 ? sourceFile : getTouchingPropertyName(sourceFile, position))); + return declaration ? getOutgoingCalls(program, declaration) : []; } const ls: LanguageService = { @@ -2222,10 +2245,10 @@ namespace ts { getSemanticDiagnostics, getSuggestionDiagnostics, getCompilerOptionsDiagnostics, - getSyntacticClassifications, - getSemanticClassifications, - getEncodedSyntacticClassifications, - getEncodedSemanticClassifications, + getSyntacticClassifications: getSyntacticClassificationsNameSpaceLocal, + getSemanticClassifications: getSemanticClassificationsNameSpaceLocal, + getEncodedSyntacticClassifications: getEncodedSyntacticClassificationsNameSpaceLocal, + getEncodedSemanticClassifications: getEncodedSemanticClassificationsNameSpaceLocal, getCompletionsAtPosition, getCompletionEntryDetails, getCompletionEntrySymbol, @@ -2262,7 +2285,7 @@ namespace ts { getCombinedCodeFix, applyCodeActionCommand, organizeImports, - getEditsForFileRename, + getEditsForFileRename: getEditsForFileRenameNameSpaceLocal, getEmitOutput, getNonBoundSourceFile, getProgram, @@ -2377,10 +2400,10 @@ namespace ts { /* @internal */ export function getPropertySymbolsFromContextualType(node: ObjectLiteralElementWithName, checker: TypeChecker, contextualType: Type, unionSymbolOk: boolean): readonly Symbol[] { const name = getNameFromPropertyName(node.name); - if (!name) return emptyArray; + if (!name) return neverArray; if (!contextualType.isUnion()) { const symbol = contextualType.getProperty(name); - return symbol ? [symbol] : emptyArray; + return symbol ? [symbol] : neverArray; } const discriminatedPropertySymbols = mapDefined(contextualType.types, t => isObjectLiteralExpression(node.parent) && checker.isTypeInvalidDueToUnionDiscriminant(t, node.parent) ? undefined : t.getProperty(name)); @@ -2420,4 +2443,4 @@ namespace ts { } setObjectAllocator(getServicesObjectAllocator()); -} + diff --git a/src/services/shims.ts b/src/services/shims.ts index 4c60639bdab88..f84af395739ac 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -13,6 +13,23 @@ // limitations under the License. // +import { TypeAcquisition, CompilerOptions, ScriptKind, UserPreferences, TextChangeRange, ResolvedModuleFull, ResolvedTypeReferenceDirective, ParseConfigHost, ModuleResolutionHost, OperationCanceledException, Diagnostic, diagnosticCategoryName, Extension, FileReference } from "../compiler/types"; +import { MapLike } from "../compiler/corePublic"; +import { HostCancellationToken, LanguageService, SignatureHelpItemsOptions, RenameInfoOptions, EndOfLineState, IScriptSnapshot, LanguageServiceHost, EditorOptions, GetCompletionsAtPositionOptions, FormatCodeOptions, Classifications, Classifier } from "./types"; +import { EmitOutput, createTextChangeRange, createTextSpan, timestamp, resolveModuleName, resolveTypeReferenceDirective, getAutomaticTypeDirectiveNames, parseJsonSourceFileConfigFileContent } from "../../built/local/compiler"; +import { map, getProperty, toFileNameLowerCase, filter, createGetCanonicalFileName } from "../compiler/core"; +import { extensionFromPath, getFileMatcherPatterns } from "../compiler/utilities"; +import { ThrottledCancellationToken, getDefaultCompilerOptions, servicesVersion, createLanguageService } from "./services"; +import { isString } from "util"; +import { flattenDiagnosticMessageText } from "../compiler/program"; +import { getNewLineOrDefaultFromHost, getSnapshotText } from "./utilities"; +import { normalizeSlashes, getDirectoryPath, toPath } from "../compiler/path"; +import { createClassifier } from "./classifier"; +import { preProcessFile } from "./preProcess"; +import { parseJsonText } from "../compiler/parser"; +import { DocumentRegistry, createDocumentRegistry } from "./documentRegistry"; +import { clear } from "console"; + /* @internal */ let debugObjectHost: { CollectGarbage(): void } = (function (this: any) { return this; })(); // eslint-disable-line prefer-const @@ -20,7 +37,7 @@ let debugObjectHost: { CollectGarbage(): void } = (function (this: any) { return /* eslint-disable no-in-operator */ /* @internal */ -namespace ts { + interface DiscoverTypingsInfo { fileNames: string[]; // The file names that belong to the same project. projectRootPath: string; // The path to the project root directory @@ -236,7 +253,7 @@ namespace ts { */ getNavigationBarItems(fileName: string): string; - /** Returns a JSON-encoded value of the type ts.NavigationTree. */ + /** Returns a JSON-encoded value of the type NavigationTree. */ getNavigationTree(fileName: string): string; /** @@ -1298,6 +1315,6 @@ namespace ts { throw new Error("Invalid operation"); } } -} + /* eslint-enable no-in-operator */ diff --git a/src/services/signatureHelp.ts b/src/services/signatureHelp.ts index 54447417a2a49..73525e76293d6 100644 --- a/src/services/signatureHelp.ts +++ b/src/services/signatureHelp.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.SignatureHelp { + +import { CallLikeExpression, Identifier, Signature, Node, TextSpan, Program, SourceFile, CancellationToken, TypeChecker, SyntaxKind, TemplateExpression, TaggedTemplateExpression, BinaryExpression, Type, ParenthesizedExpression, FunctionExpression, ArrowFunction, InternalSymbolName, Expression, NodeBuilderFlags, TypeParameter, ListFormat, TransientSymbol, CheckFlags, Printer, EmitHint, ParameterDeclaration } from "../compiler/types"; +import { SignatureHelpTriggerReason, SignatureHelpItems, SignatureHelpItem, SymbolDisplayPart, SignatureHelpParameter } from "./types"; +import { findTokenOnLeftOfPosition, isInString, isInComment, getPossibleGenericSignatures, findContainingList, findPrecedingToken, rangeContainsRange, isInsideTemplateLiteral, getPossibleTypeArgumentsInfo, createTextSpanFromNode, symbolToDisplayParts, punctuationPart, spacePart, mapToDisplayParts } from "./utilities"; +import { isSourceFileJS, getInvokedExpression } from "../compiler/utilities"; +import { isIdentifier, isCallOrNewExpression, isPropertyAccessExpression, isNoSubstitutionTemplateLiteral, isTaggedTemplateExpression, isTemplateHead, isTemplateSpan, isTemplateTail, isJsxOpeningLikeElement, createTextSpan, createTextSpanFromBounds, isBinaryExpression, isMethodDeclaration, isFunctionTypeNode, isTemplateLiteralToken, isSourceFile, isBlock, factory } from "../../built/local/compiler"; +import { first, contains, firstDefined, countWhere, last, neverArray, map, flatMapToMutable, identity } from "../compiler/core"; +import { Debug } from "../compiler/debug"; +import { skipTrivia } from "../compiler/scanner"; +import { createPrinter } from "../compiler/emitter"; + const enum InvocationKind { Call, TypeArgs, Contextual } interface CallInvocation { readonly kind: InvocationKind.Call; readonly node: CallLikeExpression; } interface TypeArgsInvocation { readonly kind: InvocationKind.TypeArgs; readonly called: Identifier; } @@ -499,7 +509,7 @@ namespace ts.SignatureHelp { ): SignatureHelpItems { const enclosingDeclaration = getEnclosingDeclarationFromInvocation(invocation); const callTargetSymbol = invocation.kind === InvocationKind.Contextual ? invocation.symbol : typeChecker.getSymbolAtLocation(getExpressionFromInvocation(invocation)); - const callTargetDisplayParts = callTargetSymbol ? symbolToDisplayParts(typeChecker, callTargetSymbol, /*enclosingDeclaration*/ undefined, /*meaning*/ undefined) : emptyArray; + const callTargetDisplayParts = callTargetSymbol ? symbolToDisplayParts(typeChecker, callTargetSymbol, /*enclosingDeclaration*/ undefined, /*meaning*/ undefined) : neverArray; const items = map(candidates, candidateSignature => getSignatureHelpItem(candidateSignature, callTargetDisplayParts, isTypeParameterList, typeChecker, enclosingDeclaration, sourceFile)); if (argumentIndex !== 0) { @@ -589,7 +599,7 @@ namespace ts.SignatureHelp { function itemInfoForTypeParameters(candidateSignature: Signature, checker: TypeChecker, enclosingDeclaration: Node, sourceFile: SourceFile): SignatureHelpItemInfo[] { const typeParameters = (candidateSignature.target || candidateSignature).typeParameters; const printer = createPrinter({ removeComments: true }); - const parameters = (typeParameters || emptyArray).map(t => createSignatureHelpParameterForTypeParameter(t, checker, enclosingDeclaration, sourceFile, printer)); + const parameters = (typeParameters || neverArray).map(t => createSignatureHelpParameterForTypeParameter(t, checker, enclosingDeclaration, sourceFile, printer)); const thisParameter = candidateSignature.thisParameter ? [checker.symbolToParameterDeclaration(candidateSignature.thisParameter, enclosingDeclaration, signatureHelpNodeBuilderFlags)!] : []; return checker.getExpandedParameters(candidateSignature).map(paramList => { @@ -637,4 +647,4 @@ namespace ts.SignatureHelp { }); return { name: typeParameter.symbol.name, documentation: typeParameter.symbol.getDocumentationComment(checker), displayParts, isOptional: false }; } -} + diff --git a/src/services/smartSelection.ts b/src/services/smartSelection.ts index 3263e7ed4fdb8..c6d82ba20234d 100644 --- a/src/services/smartSelection.ts +++ b/src/services/smartSelection.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts.SmartSelectionRange { + +import { SourceFile, Node, SyntaxKind, SyntaxList } from "../compiler/types"; +import { SelectionRange } from "./types"; +import { createTextSpanFromBounds, isBlock, isTemplateSpan, isTemplateHead, isTemplateTail, isVariableDeclarationList, isVariableStatement, isSyntaxList, isVariableDeclaration, isTemplateMiddleOrTemplateTail, hasJSDocNodes, isStringLiteral, isTemplateLiteral, textSpanIntersectsWithPosition, isImportDeclaration, isImportEqualsDeclaration, isSourceFile, isMappedTypeNode, isPropertySignature, isParameter, isBindingElement } from "../../built/local/compiler"; +import { positionsAreOnSameLine, setTextRangePosEnd } from "../compiler/utilities"; +import { isNumber } from "util"; +import { textSpansEqual, getTouchingPropertyName } from "./utilities"; +import { Debug } from "../compiler/debug"; +import { or, contains, findIndex, last, compact } from "../compiler/core"; +import { parseNodeFactory } from "../compiler/parser"; + export function getSmartSelectionRange(pos: number, sourceFile: SourceFile): SelectionRange { let selectionRange: SelectionRange = { textSpan: createTextSpanFromBounds(sourceFile.getFullStart(), sourceFile.getEnd()) @@ -93,7 +103,7 @@ namespace ts.SmartSelectionRange { } /** - * Like `ts.positionBelongsToNode`, except positions immediately after nodes + * Like `positionBelongsToNode`, except positions immediately after nodes * count too, unless that position belongs to the next node. In effect, makes * selections able to snap to preceding tokens when the cursor is on the tail * end of them with only whitespace ahead. @@ -102,7 +112,7 @@ namespace ts.SmartSelectionRange { * @param node The candidate node to snap to. */ function positionShouldSnapToNode(sourceFile: SourceFile, pos: number, node: Node) { - // Can’t use 'ts.positionBelongsToNode()' here because it cleverly accounts + // Can’t use 'positionBelongsToNode()' here because it cleverly accounts // for missing nodes, which can’t really be considered when deciding what // to select. Debug.assert(node.pos <= pos); @@ -270,4 +280,4 @@ namespace ts.SmartSelectionRange { || kind === SyntaxKind.CloseParenToken || kind === SyntaxKind.JsxClosingElement; } -} + diff --git a/src/services/sourcemaps.ts b/src/services/sourcemaps.ts index e095708ed94d0..680e5fea5a3db 100644 --- a/src/services/sourcemaps.ts +++ b/src/services/sourcemaps.ts @@ -1,5 +1,15 @@ /* @internal */ -namespace ts { + +import { LineAndCharacter, DocumentPosition, Program, SourceFileLike, DocumentPositionMapper, Extension, DocumentPositionMapperHost } from "../compiler/types"; +import { createGetCanonicalFileName, createMap } from "../compiler/core"; +import { toPath, getNormalizedAbsolutePath, getDirectoryPath } from "../compiler/path"; +import { getLineInfo, identitySourceMapConsumer, LineInfo, tryGetSourceMappingURL, tryParseRawSourceMap, createDocumentPositionMapper } from "../compiler/sourcemap"; +import { getLineStarts, computeLineAndCharacterOfPosition } from "../compiler/scanner"; +import { isDeclarationFileName } from "../compiler/parser"; +import { outFile, removeFileExtension, getDeclarationEmitOutputFilePathWorker, base64decode } from "../compiler/utilities"; +import { sys } from "../compiler/sys"; +import { isString } from "util"; + const base64UrlRegExp = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/; export interface SourceMapper { @@ -27,12 +37,12 @@ namespace ts { const documentPositionMappers = createMap(); return { tryGetSourcePosition, tryGetGeneratedPosition, toLineColumnOffset, clearCache }; - function toPath(fileName: string) { - return ts.toPath(fileName, currentDirectory, getCanonicalFileName); + function toPathNameSpaceLocal(fileName: string) { + return toPath(fileName, currentDirectory, getCanonicalFileName); } - function getDocumentPositionMapper(generatedFileName: string, sourceFileName?: string) { - const path = toPath(generatedFileName); + function getDocumentPositionMapperNameSpaceLocal(generatedFileName: string, sourceFileName?: string) { + const path = toPathNameSpaceLocal(generatedFileName); const value = documentPositionMappers.get(path); if (value) return value; @@ -42,7 +52,7 @@ namespace ts { } else if (host.readFile) { const file = getSourceFileLike(generatedFileName); - mapper = file && ts.getDocumentPositionMapper( + mapper = file && getDocumentPositionMapper( { getSourceFileLike, getCanonicalFileName, log: s => host.log(s) }, generatedFileName, getLineInfo(file.text, getLineStarts(file)), @@ -59,7 +69,7 @@ namespace ts { const file = getSourceFile(info.fileName); if (!file) return undefined; - const newLoc = getDocumentPositionMapper(info.fileName).getSourcePosition(info); + const newLoc = getDocumentPositionMapperNameSpaceLocal(info.fileName).getSourcePosition(info); return !newLoc || newLoc === info ? undefined : tryGetSourcePosition(newLoc) || newLoc; } @@ -83,7 +93,7 @@ namespace ts { getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(), currentDirectory, program.getCommonSourceDirectory(), getCanonicalFileName); if (declarationPath === undefined) return undefined; - const newLoc = getDocumentPositionMapper(declarationPath, info.fileName).getGeneratedPosition(info); + const newLoc = getDocumentPositionMapperNameSpaceLocal(declarationPath, info.fileName).getGeneratedPosition(info); return newLoc === info ? undefined : newLoc; } @@ -91,14 +101,14 @@ namespace ts { const program = host.getProgram(); if (!program) return undefined; - const path = toPath(fileName); + const path = toPathNameSpaceLocal(fileName); // file returned here could be .d.ts when asked for .ts file if projectReferences and module resolution created this source file const file = program.getSourceFileByPath(path); return file && file.resolvedPath === path ? file : undefined; } function getOrCreateSourceFileLike(fileName: string): SourceFileLike | undefined { - const path = toPath(fileName); + const path = toPathNameSpaceLocal(fileName); const fileFromCache = sourceFileLike.get(path); if (fileFromCache !== undefined) return fileFromCache ? fileFromCache : undefined; @@ -196,4 +206,4 @@ namespace ts { } }; } -} + diff --git a/src/services/stringCompletions.ts b/src/services/stringCompletions.ts index 27db312c5212f..7a181def0cf79 100644 --- a/src/services/stringCompletions.ts +++ b/src/services/stringCompletions.ts @@ -1,5 +1,18 @@ /* @internal */ -namespace ts.Completions.StringCompletions { + +import { SourceFile, Node, TypeChecker, CompilerOptions, UserPreferences, ScriptTarget, CancellationToken, Extension, StringLiteralType, StringLiteralLike, SyntaxKind, LiteralTypeNode, IndexedAccessTypeNode, UnionTypeNode, PropertyAssignment, ElementAccessExpression, Signature, TypeFlags, Type, TextSpan, LiteralExpression, Path, ModuleResolutionKind, CharacterCodes } from "../compiler/types"; +import { LanguageServiceHost, CompletionInfo, CompletionEntry, ScriptElementKindModifier, ScriptElementKind, CompletionEntryDetails } from "./types"; +import { Log, getCompletionEntriesFromSymbols, CompletionKind, createCompletionDetails, createCompletionDetailsForSymbol, SortText } from "./completions"; +import { isInReferenceComment, isInString, getReplacementSpanForContextToken, textPart, getContextualTypeFromParent, hasIndexSignature, skipConstraint, tryDirectoryExists, tryReadDirectory, tryGetDirectories, findPackageJson, getTokenAtPosition, tryAndIgnoreErrors, findPackageJsons } from "./utilities"; +import { isStringLiteralLike, isTypeReferenceNode, isObjectLiteralExpression, isLiteralTypeNode, isStringLiteral, isPrivateIdentifierPropertyDeclaration, getPackageJsonTypesVersionsPaths, getEffectiveTypeRoots, unmangleScopedPackageName, createTextSpan } from "../../built/local/compiler"; +import { Debug } from "../compiler/debug"; +import { find, contains, mapDefined, createMap, flatMap, filter, neverArray, firstDefined, deduplicate, equateStringsCaseSensitive, compareStringsCaseSensitive, hasProperty, endsWith, stringContains, tryRemovePrefix, startsWith, removePrefix } from "../compiler/core"; +import { isRequireCall, isImportCall, addToSeen, getSupportedExtensions, getEmitModuleResolutionKind, removeFileExtension, tryGetExtensionFromPath, readJson, hasZeroOrOneAsteriskCharacter, tryParsePattern, stripQuotes, tryRemoveDirectoryPrefix, hostGetCanonicalFileName } from "../compiler/utilities"; +import { signatureHasRestParameter } from "../compiler/checker"; +import { normalizeSlashes, getDirectoryPath, isRootedDiskPath, isUrl, normalizePath, combinePaths, containsPath, hasTrailingDirectorySeparator, directorySeparator, ensureTrailingDirectorySeparator, resolvePath, comparePaths, fileExtensionIs, getBaseFileName, forEachAncestorDirectory } from "../compiler/path"; +import { Comparison, MapLike } from "../compiler/corePublic"; +import { getLeadingCommentRanges, isIdentifierText } from "../compiler/scanner"; + export function getStringLiteralCompletions(sourceFile: SourceFile, position: number, contextToken: Node | undefined, checker: TypeChecker, options: CompilerOptions, host: LanguageServiceHost, log: Log, preferences: UserPreferences): CompletionInfo | undefined { if (isInReferenceComment(sourceFile, position)) { const entries = getTripleSlashReferenceCompletion(sourceFile, position, options, host); @@ -169,7 +182,7 @@ namespace ts.Completions.StringCompletions { case SyntaxKind.CallExpression: case SyntaxKind.NewExpression: if (!isRequireCall(parent, /*checkArgumentIsStringLiteralLike*/ false) && !isImportCall(parent)) { - const argumentInfo = SignatureHelp.getArgumentInfoForCompletions(node, position, sourceFile); + const argumentInfo = getArgumentInfoForCompletions(node, position, sourceFile); // Get string literal completions from specialized signatures of the target // i.e. declare function f(a: 'A'); // f("/*completion position*/") @@ -229,10 +242,10 @@ namespace ts.Completions.StringCompletions { } function getStringLiteralTypes(type: Type | undefined, uniques = createMap()): readonly StringLiteralType[] { - if (!type) return emptyArray; + if (!type) return neverArray; type = skipConstraint(type); return type.isUnion() ? flatMap(type.types, t => getStringLiteralTypes(t, uniques)) : - type.isStringLiteral() && !(type.flags & TypeFlags.EnumLiteral) && addToSeen(uniques, type.value) ? [type] : emptyArray; + type.isStringLiteral() && !(type.flags & TypeFlags.EnumLiteral) && addToSeen(uniques, type.value) ? [type] : neverArray; } interface NameAndKind { @@ -487,7 +500,7 @@ namespace ts.Completions.StringCompletions { ): readonly NameAndKind[] { if (!endsWith(path, "*")) { // For a path mapping "foo": ["/x/y/z.ts"], add "foo" itself as a completion. - return !stringContains(path, "*") ? justPathMappingName(path) : emptyArray; + return !stringContains(path, "*") ? justPathMappingName(path) : neverArray; } const pathPrefix = path.slice(0, path.length - 1); @@ -496,7 +509,7 @@ namespace ts.Completions.StringCompletions { getModulesForPathsPattern(remainingFragment, baseUrl, pattern, fileExtensions, host)); function justPathMappingName(name: string): readonly NameAndKind[] { - return startsWith(name, fragment) ? [directoryResult(name)] : emptyArray; + return startsWith(name, fragment) ? [directoryResult(name)] : neverArray; } } @@ -597,7 +610,7 @@ namespace ts.Completions.StringCompletions { // Check for typings specified in compiler options const seen = createMap(); - const typeRoots = tryAndIgnoreErrors(() => getEffectiveTypeRoots(options, host)) || emptyArray; + const typeRoots = tryAndIgnoreErrors(() => getEffectiveTypeRoots(options, host)) || neverArray; for (const root of typeRoots) { getCompletionEntriesFromDirectories(root); @@ -636,7 +649,7 @@ namespace ts.Completions.StringCompletions { } function enumerateNodeModulesVisibleToScript(host: LanguageServiceHost, scriptPath: string): readonly string[] { - if (!host.readFile || !host.fileExists) return emptyArray; + if (!host.readFile || !host.fileExists) return neverArray; const result: string[] = []; for (const packageJson of findPackageJsons(scriptPath, host)) { @@ -693,4 +706,4 @@ namespace ts.Completions.StringCompletions { function containsSlash(fragment: string) { return stringContains(fragment, directorySeparator); } -} + diff --git a/src/services/suggestionDiagnostics.ts b/src/services/suggestionDiagnostics.ts index 09607d8ab8a00..97344b2277f20 100644 --- a/src/services/suggestionDiagnostics.ts +++ b/src/services/suggestionDiagnostics.ts @@ -1,5 +1,12 @@ /* @internal */ -namespace ts { + +import { createMap, addRange, some } from "../compiler/core"; +import { SourceFile, Program, CancellationToken, DiagnosticWithLocation, Node, NodeFlags, SyntaxKind, VariableStatement, ExpressionStatement, AssignmentDeclarationKind, Expression, AnyValidImportOrReExport, Identifier, FunctionLikeDeclaration, TypeChecker, SignatureKind, Block, ReturnStatement, CallExpression } from "../compiler/types"; +import { programContainsEs6Modules, compilerOptionsIndicateEs6Modules, hasPropertyAccessExpressionWithName } from "./utilities"; +import { createDiagnosticForNode, isSourceFileJS, getAllowSyntheticDefaultImports, importFromModuleSpecifier, getResolvedModule, isRequireCall, getAssignmentDeclarationKind, isAsyncFunction, forEachReturnStatement, getDeclarationOfExpando } from "../compiler/utilities"; +import { isExportAssignment, isVariableDeclaration, isVariableStatement, isFunctionLikeDeclaration, isBinaryExpression, isPropertyAccessExpression, isStringLiteral, isIdentifier, isBlock, isReturnStatement, isCallExpression } from "../../built/local/compiler"; +import { Push } from "../compiler/corePublic"; + const visitedNestedConvertibleFunctions = createMap(); export function computeSuggestionDiagnostics(sourceFile: SourceFile, program: Program, cancellationToken: CancellationToken): DiagnosticWithLocation[] { @@ -207,4 +214,4 @@ namespace ts { return false; } -} + diff --git a/src/services/symbolDisplay.ts b/src/services/symbolDisplay.ts index d62be2649031a..e3471b703624a 100644 --- a/src/services/symbolDisplay.ts +++ b/src/services/symbolDisplay.ts @@ -1,5 +1,14 @@ /* @internal */ -namespace ts.SymbolDisplay { + +import { NodeBuilderFlags, TypeChecker, Node, SymbolFlags, SyntaxKind, VariableDeclaration, TransientSymbol, CheckFlags, SourceFile, Type, Printer, Signature, PropertyAccessExpression, CallExpression, NewExpression, JsxOpeningLikeElement, TaggedTemplateExpression, ObjectFlags, SymbolFormatFlags, TypeFormatFlags, FunctionLike, ModuleDeclaration, SignatureDeclaration, EnumMember, ModifierFlags, ExportAssignment, ImportEqualsDeclaration, TypeParameter, EmitHint, BinaryExpression, ListFormat } from "../compiler/types"; +import { ScriptElementKind, ScriptElementKindModifier, SymbolDisplayPart, JSDocTagInfo, SymbolDisplayPartKind } from "./types"; +import { getCombinedLocalAndExportSymbolFlags, getDeclarationOfKind, isVarConst, isLet, isInExpressionContext, getObjectFlags, isEnumConst, getTextOfConstantValue, isModuleWithStringLiteralName, hasSyntacticModifier, getSourceFileOfNode, isExternalModuleImportEqualsDeclaration, getTextOfNode, getExternalModuleImportEqualsDeclarationExpression, isFunctionBlock } from "../compiler/utilities"; +import { first, forEach, contains, addRange, find, some } from "../compiler/core"; +import { isExpression, isCallOrNewExpression, isJsxOpeningLikeElement, isTaggedTemplateExpression, isFunctionLike, isCallExpression, isEnumDeclaration, isFunctionLikeKind, getNameOfDeclaration, getParseTreeNode, isIdentifier, idText, isArrowFunction, isFunctionExpression, isClassExpression } from "../../built/local/compiler"; +import { isFirstDeclarationOfSymbolParameter, getNodeModifiers, getMeaningFromLocation, SemanticMeaning, keywordPart, isCallExpressionTarget, isNewExpressionTarget, spacePart, punctuationPart, symbolToDisplayParts, lineBreakPart, isNameOfFunctionDeclaration, operatorPart, typeToDisplayParts, textPart, signatureToDisplayParts, displayPart, mapToDisplayParts, textOrKeywordPart } from "./utilities"; +import { Debug } from "../compiler/debug"; +import { createPrinter } from "../compiler/emitter"; + const symbolDisplayNodeBuilderFlags = NodeBuilderFlags.OmitParameterModifiers | NodeBuilderFlags.IgnoreErrors | NodeBuilderFlags.UseAliasDefinedOutsideCurrentScope; // TODO(drosen): use contextual SemanticMeaning. @@ -676,4 +685,4 @@ namespace ts.SymbolDisplay { return true; }); } -} + diff --git a/src/services/textChanges.ts b/src/services/textChanges.ts index 1acce25574bfb..f8b7083e2c04e 100644 --- a/src/services/textChanges.ts +++ b/src/services/textChanges.ts @@ -1,5 +1,22 @@ /* @internal */ -namespace ts.textChanges { + +import { TextRange, CharacterCodes, SourceFile, Node, Token, SyntaxKind, UserPreferences, SignatureDeclaration, VariableDeclaration, ParameterDeclaration, PropertyDeclaration, PropertySignature, FunctionDeclaration, FunctionExpression, FunctionLike, Statement, ClassDeclaration, InterfaceDeclaration, ObjectLiteralExpression, NodeArray, TypeParameterDeclaration, Modifier, PropertyAssignment, HasJSDoc, JSDoc, TypeNode, ConstructorDeclaration, ClassLikeDeclaration, ClassElement, ObjectLiteralElementLike, ClassExpression, ArrowFunction, DeclarationStatement, VariableStatement, Expression, ScriptKind, ScriptTarget, SourceFileLike, NewLineKind, EmitHint, Visitor, EmitTextWriter, PrintHandlers, PrologueDirective, CommentRange, BindingElement, ImportSpecifier, NamespaceImport, ImportClause, NamedImportBindings } from "../compiler/types"; +import { Debug } from "../compiler/debug"; +import { skipTrivia, isWhiteSpaceSingleLine, isLineBreak, getLineAndCharacterOfPosition, tokenToString, isWhiteSpaceLike, getShebang, getLeadingCommentRanges } from "../compiler/scanner"; +import { getLineStartPositionForPosition, getNewLineOrDefaultFromHost, createTextRangeFromSpan, findNextToken, getFirstNonSpaceCharacterPosition, getTouchingToken, getPrecedingNonSpaceCharacterPosition, findChildOfKind, getTokenAtPosition, findPrecedingToken, rangeContainsRangeExclusive, createTextSpanFromRange, stringContainsAt, createTextChange, probablyUsesSemicolons, isInComment, isInString, isInTemplateString, isInJSXText } from "./utilities"; +import { getJSDocCommentRanges, getStartPositionOfLine, getLineOfLocalPosition, createRange, rangeStartPositionsAreOnSameLine, addToSeen, isJsonSourceFile, indexOfNode, rangeOfNode, positionsAreOnSameLine, NodeSet, rangeOfTypeParameters, getScriptKindFromFileName, nodeIsSynthesized, setTextRangePosEnd, createTextWriter, isPrologueDirective, isPinnedComment, isRecognizedTripleSlashComment, isAnyImportSyntax, getAncestor } from "../compiler/utilities"; +import { isExpression, isFunctionExpression, isFunctionDeclaration, factory, isFunctionLike, isArrowFunction, isStatement, isClassElement, isVariableDeclaration, isParameter, isStringLiteral, isImportDeclaration, isNamedImports, isObjectLiteralExpression, isClassOrTypeElement, createTextSpan, textSpanEnd, isPropertySignature, isPropertyDeclaration, isStatementButNotDeclaration, hasJSDocNodes, isImportClause, isCallExpression } from "../../built/local/compiler"; +import { LanguageServiceHost, FileTextChanges, FormatCodeSettings, SemicolonPreference, TextChange } from "./types"; +import { createMap, firstOrUndefined, first, lastOrUndefined, last, findLastIndex, mapDefined, stableSort, removeSuffix, endsWith, find, contains } from "../compiler/core"; +import { isArray } from "util"; +import { getNodeId } from "../compiler/checker"; +import { group } from "console"; +import { createSourceFile } from "../compiler/parser"; +import { createPrinter } from "../compiler/emitter"; +import { visitEachChild, visitNodes } from "../compiler/visitorPublic"; +import { nullTransformationContext } from "../compiler/transformer"; + +export namespace textChanges { /** * Currently for simplicity we store recovered positions on the node itself. diff --git a/src/services/transform.ts b/src/services/transform.ts index c0d87f67b6f1e..c8aacc2df265d 100644 --- a/src/services/transform.ts +++ b/src/services/transform.ts @@ -1,4 +1,10 @@ -namespace ts { +import { Node, TransformerFactory, CompilerOptions, DiagnosticWithLocation } from "../compiler/types"; +import { fixupCompilerOptions } from "./transpile"; +import { isArray } from "util"; +import { transformNodes } from "../compiler/transformer"; +import { factory } from "../../built/local/compiler"; +import { concatenate } from "../compiler/core"; + /** * Transform one or more nodes using the supplied transformers. * @param source A single `Node` or an array of `Node` objects. @@ -13,4 +19,4 @@ namespace ts { result.diagnostics = concatenate(result.diagnostics, diagnostics); return result; } -} \ No newline at end of file + diff --git a/src/services/transpile.ts b/src/services/transpile.ts index c739c8394f2c3..9f3d1abbd9b65 100644 --- a/src/services/transpile.ts +++ b/src/services/transpile.ts @@ -1,4 +1,16 @@ -namespace ts { +import { CompilerOptions, CustomTransformers, Diagnostic, CompilerHost, CommandLineOptionOfCustomType } from "../compiler/types"; +import { MapLike } from "../compiler/corePublic"; +import { getDefaultCompilerOptions } from "./services"; +import { hasProperty, createMapFromTemplate, addRange, filter } from "../compiler/core"; +import { transpileOptionValueCompilerOptions, optionDeclarations, parseCustomTypeOption, createCompilerDiagnosticForInvalidCustomType } from "../../built/local/compiler"; +import { createSourceFile } from "../compiler/parser"; +import { getNewLineCharacter, forEachEntry } from "../compiler/utilities"; +import { normalizePath, fileExtensionIs } from "../compiler/path"; +import { Debug } from "../compiler/debug"; +import { createProgram } from "../compiler/program"; +import { cloneCompilerOptions } from "./utilities"; +import { isString } from "util"; + export interface TranspileOptions { compilerOptions?: CompilerOptions; fileName?: string; @@ -143,4 +155,4 @@ namespace ts { return options; } -} + diff --git a/src/services/types.ts b/src/services/types.ts index bc1223272faf8..19ca097bf7cf0 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -1,4 +1,8 @@ -namespace ts { +import { NodeArray, SymbolFlags, __String, Declaration, TypeChecker, TypeFlags, BaseType, UnionType, IntersectionType, UnionOrIntersectionType, LiteralType, StringLiteralType, NumberLiteralType, TypeParameter, InterfaceType, SignatureDeclaration, UnderscoreEscapedMap, LineAndCharacter, TextChangeRange, DocumentPositionMapper, FileReference, Path, GetEffectiveTypeRootsHost, CompilerOptions, ScriptKind, ProjectReference, ResolvedProjectReference, ResolvedModule, ResolvedModuleWithFailedLookupLocations, ResolvedTypeReferenceDirective, HasInvalidatedResolution, HasChangedAutomaticTypeDirectiveNames, CustomTransformers, CompilerHost, Program, DiagnosticWithLocation, Diagnostic, TextSpan, UserPreferences, TextRange, CancellationToken } from "../compiler/types"; +import { DocumentHighlights } from "./documentHighlights"; +import { SourceMapper } from "./sourcemaps"; +import { EmitOutput } from "../../built/local/compiler"; + export interface Node { getSourceFile(): SourceFile; getChildCount(sourceFile?: SourceFile): number; @@ -22,7 +26,7 @@ namespace ts { getLastToken(sourceFile?: SourceFile): Node | undefined; /* @internal */ getLastToken(sourceFile?: SourceFileLike): Node | undefined; // eslint-disable-line @typescript-eslint/unified-signatures - // See ts.forEachChild for documentation. + // See forEachChild for documentation. forEachChild(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: NodeArray) => T | undefined): T | undefined; } @@ -782,7 +786,7 @@ namespace ts { fileName: string; /** - * If the span represents a location that was remapped (e.g. via a .d.ts.map file), + * If the span represents a location that was remapped (e.g. via a .d.map file), * then the original filename and span will be specified here */ originalTextSpan?: TextSpan; @@ -1439,4 +1443,4 @@ namespace ts { preferences: UserPreferences; triggerReason?: RefactorTriggerReason; } -} + diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 4e56757abee19..3fc1bae56eccb 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -1,4 +1,22 @@ /* @internal */ // Don't expose that we use this + +import { Scanner, createScanner, getLineStarts, isWhiteSpaceLike, tokenToString, stringToToken, isWhiteSpaceSingleLine, forEachLeadingCommentRange, forEachTrailingCommentRange } from "../compiler/scanner"; +import { ScriptTarget, Node, SyntaxKind, JSDocTypedefTag, ModuleDeclaration, Identifier, QualifiedName, PropertyAccessExpression, HeritageClause, ImportTypeNode, ExpressionWithTypeArguments, CallExpression, NewExpression, Decorator, TaggedTemplateExpression, JsxOpeningLikeElement, Expression, LabeledStatement, BreakOrContinueStatement, StringLiteral, NumericLiteral, NoSubstitutionTemplateLiteral, Declaration, ElementAccessExpression, SourceFile, VariableDeclaration, PropertyAssignment, ModifierFlags, BinaryExpression, AssignmentDeclarationKind, ExportAssignment, SourceFileLike, TextRange, CatchClause, SignatureDeclaration, FunctionLikeDeclaration, IfStatement, ExpressionStatement, IndexSignatureDeclaration, IterationStatement, DoStatement, TypeQueryNode, TypeOfExpression, DeleteExpression, VoidExpression, YieldExpression, SpreadElement, TemplateExpression, TemplateSpan, ExportDeclaration, ImportDeclaration, PrefixUnaryExpression, ConditionalExpression, SyntaxList, ClassDeclaration, ClassExpression, FunctionDeclaration, FunctionExpression, LiteralExpression, Type, TypeChecker, Signature, CommentRange, EndOfFileToken, NodeFlags, NodeArray, TemplateLiteralToken, CompilerOptions, ForOfStatement, StringLiteralLike, TextSpan, Token, SymbolFlags, CharacterCodes, PropertyName, Program, ModuleSpecifierResolutionHost, SymbolTracker, ImportSpecifier, UserPreferences, __String, InternalSymbolName, BindingElement, Modifier, Statement, ImportClause, TypeFormatFlags, SymbolFormatFlags, ScriptKind, TransientSymbol, EmitFlags, CommentKind, CaseClause, EqualityOperator, TypeNode, SymbolAccessibility, Diagnostic, DiagnosticWithLocation } from "../compiler/types"; +import { isInJSFile, isAmbientModule, isDeclarationName, isInternalModuleImportEqualsDeclaration, isRightSideOfQualifiedNameOrPropertyAccess, isExpressionNode, isExpressionWithTypeArgumentsInClassExtendsClause, isExternalModuleImportEqualsDeclaration, getExternalModuleImportEqualsDeclarationExpression, isJSDocTypeAlias, getRootDeclaration, hasSyntacticModifier, getAssignmentDeclarationKind, isVarConst, isLet, identifierIsThisKeyword, nodeIsMissing, nodeIsPresent, indexOfNode, isPropertyNameLiteral, isKeyword, isPartOfTypeNode, findAncestor, createRange, isStringOrNumericLiteralLike, getTextOfIdentifierOrLiteral, isStringDoubleQuoted, addToSeen, getAllSuperTypeNodes, isRequireVariableDeclarationStatement, isAnyImportSyntax, defaultMaximumTruncationLength, getIndentString, ensureScriptKind, skipAlias, Mutable, getLastChild, isFileLevelUniqueName, stripQuotes, isFunctionBlock, directoryProbablyExists, isGlobalScopeAugmentation } from "../compiler/utilities"; +import { getJSDocEnumTag, isImportEqualsDeclaration, isTypeParameterDeclaration, isJSDocTemplateTag, isLiteralTypeNode, isQualifiedName, isCallExpression, isNewExpression, isCallOrNewExpression, isTaggedTemplateExpression, isDecorator, isJsxOpeningLikeElement, skipOuterExpressions, isPropertyAccessExpression, isIdentifier, isBreakOrContinueStatement, isLabeledStatement, isJSDocTag, isElementAccessExpression, isModuleDeclaration, isFunctionLike, getNameOfDeclaration, isFunctionExpression, isImportClause, isSyntaxList, isNamedDeclaration, isClassDeclaration, isClassExpression, isFunctionDeclaration, isNamedImports, isNamespaceImport, isNamedExports, isNamespaceExport, isModifier, isInterfaceDeclaration, isEnumDeclaration, isTypeAliasDeclaration, isGetAccessorDeclaration, isSetAccessorDeclaration, isVariableDeclarationList, isExportDeclaration, isImportSpecifier, isExportSpecifier, isImportDeclaration, isExportAssignment, isExternalModuleReference, isHeritageClause, isTypeReferenceNode, isConditionalTypeNode, isInferTypeNode, isMappedTypeNode, isTypeOperatorNode, isArrayTypeNode, isVoidExpression, isTypeOfExpression, isAwaitExpression, isYieldExpression, isDeleteExpression, isBinaryExpression, isAsExpression, isForInStatement, isForOfStatement, isPrivateIdentifier, isToken, isJSDocCommentContainingNode, isStringTextContainingNode, isJsxText, isTemplateLiteralKind, isJsxExpression, isJsxElement, isOptionalChain, isOptionalChainRoot, isTypeNode, isJSDoc, isDeclaration, getCombinedNodeFlagsAlwaysIncludeJSDoc, setConfigFileInOptions, createTextSpanFromBounds, createTextSpan, idText, factory, isStringLiteral, unescapeLeadingUnderscores, isBindingElement, isObjectBindingPattern, isSourceFile, textSpanContainsPosition, textSpanEnd, isImportOrExportSpecifier, setOriginalNode, isNumericLiteral, setTextRange, addEmitFlags, addSyntheticLeadingComment, addSyntheticTrailingComment, isObjectLiteralExpression, isModuleBlock, textSpanContainsTextSpan } from "../../built/local/compiler"; +import { getModuleInstanceState, ModuleInstanceState } from "../compiler/binder"; +import { Debug } from "../compiler/debug"; +import { tryCast, assertType, lastOrUndefined, last, find, contains, singleOrUndefined, firstDefined, clone, maybeBind, createMap, findLast, cast, notImplemented, noop, startsWith, or, neverArray, some, binarySearchKey, identity, compareTextSpans, compareValues, map, first } from "../compiler/core"; +import { ScriptElementKind, ScriptElementKindModifier, TextChange, IScriptSnapshot, LanguageServiceHost, DocumentSpan, SymbolDisplayPart, SymbolDisplayPartKind, FormattingHost, FormatCodeSettings, FileTextChanges, PackageJsonInfo, PackageJsonDependencyGroup, RefactorContext } from "./types"; +import { isExternalModule, forEachChild } from "../compiler/parser"; +import { getNodeId, getSymbolId } from "../compiler/checker"; +import { isArray } from "util"; +import { DisplayPartsSymbolWriter } from "./services"; +import { visitEachChild } from "../compiler/visitorPublic"; +import { nullTransformationContext } from "../compiler/transformer"; +import { forEachAncestorDirectory, combinePaths, getDirectoryPath, getPathComponents } from "../compiler/path"; +import { findConfigFile } from "../compiler/program"; + // Based on lib.es6.d.ts interface PromiseConstructor { new (executor: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void) => void): Promise; @@ -9,7 +27,7 @@ interface PromiseConstructor { declare var Promise: PromiseConstructor; // eslint-disable-line no-var /* @internal */ -namespace ts { + // These utilities are common to multiple language service features. //#region export const scanner: Scanner = createScanner(ScriptTarget.Latest, /*skipTrivia*/ true); @@ -2613,7 +2631,7 @@ namespace ts { } export function tryReadDirectory(host: Pick, path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[]): readonly string[] { - return tryIOAndConsumeErrors(host, host.readDirectory, path, extensions, exclude, include) || emptyArray; + return tryIOAndConsumeErrors(host, host.readDirectory, path, extensions, exclude, include) || neverArray; } export function tryFileExists(host: Pick, path: string): boolean { @@ -2870,4 +2888,4 @@ namespace ts { } // #endregion -} + diff --git a/src/shims/collectionShims.ts b/src/shims/collectionShims.ts index 65845e9dc73c7..fb59ad37c9a24 100644 --- a/src/shims/collectionShims.ts +++ b/src/shims/collectionShims.ts @@ -1,5 +1,5 @@ /* @internal */ -namespace ts { + type GetIteratorCallback = | ReadonlyMapShim | undefined>(iterable: I) => IteratorShim< I extends ReadonlyMapShim ? [K, V] : I extends ReadonlySetShim ? T : @@ -264,4 +264,4 @@ namespace ts { }; } } -} + diff --git a/src/testRunner/compilerRef.ts b/src/testRunner/compilerRef.ts index b76e4e72fbb88..245705db5ddac 100644 --- a/src/testRunner/compilerRef.ts +++ b/src/testRunner/compilerRef.ts @@ -1,2 +1,2 @@ // empty ref to compiler so it can be referenced by unittests -namespace compiler {} \ No newline at end of file +namespace compiler {} diff --git a/src/testRunner/compilerRunner.ts b/src/testRunner/compilerRunner.ts index ef0abb1c45699..dc4c068b42e4b 100644 --- a/src/testRunner/compilerRunner.ts +++ b/src/testRunner/compilerRunner.ts @@ -1,4 +1,11 @@ -namespace Harness { +import { FileBasedTest, IO, getFileBasedTestConfigurationDescription, FileBasedTestConfiguration, TestCaseParser, Compiler, getFileBasedTestConfigurations, Baseline } from "../harness/harnessIO"; +import { RunnerBase, TestRunnerKind } from "../harness/runnerbase"; +import { some, identity, length } from "../compiler/core"; +import { getDirectoryPath, combinePaths, isRootedDiskPath, getNormalizedAbsolutePath, fileExtensionIs, toPath } from "../compiler/path"; +import { CompilerOptions, Extension } from "../compiler/types"; +import { cloneCompilerOptions } from "../services/utilities"; +import { assert } from "console"; + export const enum CompilerTestType { Conformance, Regressions, @@ -59,7 +66,7 @@ namespace Harness { } public checkTestCodeOutput(fileName: string, test?: CompilerFileBasedTest) { - if (test && ts.some(test.configurations)) { + if (test && some(test.configurations)) { test.configurations.forEach(configuration => { describe(`${this.testSuiteName} tests for ${fileName}${configuration ? ` (${getFileBasedTestConfigurationDescription(configuration)})` : ``}`, () => { this.runSuite(fileName, test, configuration); @@ -80,7 +87,7 @@ namespace Harness { before(() => { let payload; if (test && test.content) { - const rootDir = test.file.indexOf("conformance") === -1 ? "tests/cases/compiler/" : ts.getDirectoryPath(test.file) + "/"; + const rootDir = test.file.indexOf("conformance") === -1 ? "tests/cases/compiler/" : getDirectoryPath(test.file) + "/"; payload = TestCaseParser.makeUnitsFromTest(test.content, test.file, rootDir); } compilerTest = new CompilerTest(fileName, payload, configuration); @@ -144,7 +151,7 @@ namespace Harness { private harnessSettings: TestCaseParser.CompilerSettings; private hasNonDtsFiles: boolean; private result: compiler.CompilationResult; - private options: ts.CompilerOptions; + private options: CompilerOptions; private tsConfigFiles: Compiler.TestFile[]; // equivalent to the files that will be passed on the command line private toBeCompiled: Compiler.TestFile[]; @@ -174,7 +181,7 @@ namespace Harness { } } - const rootDir = fileName.indexOf("conformance") === -1 ? "tests/cases/compiler/" : ts.getDirectoryPath(fileName) + "/"; + const rootDir = fileName.indexOf("conformance") === -1 ? "tests/cases/compiler/" : getDirectoryPath(fileName) + "/"; if (testCaseContent === undefined) { testCaseContent = TestCaseParser.makeUnitsFromTest(IO.readFile(fileName)!, fileName, rootDir); @@ -186,24 +193,24 @@ namespace Harness { const units = testCaseContent.testUnitData; this.harnessSettings = testCaseContent.settings; - let tsConfigOptions: ts.CompilerOptions | undefined; + let tsConfigOptions: CompilerOptions | undefined; this.tsConfigFiles = []; if (testCaseContent.tsConfig) { assert.equal(testCaseContent.tsConfig.fileNames.length, 0, `list of files in tsconfig is not currently supported`); assert.equal(testCaseContent.tsConfig.raw.exclude, undefined, `exclude in tsconfig is not currently supported`); - tsConfigOptions = ts.cloneCompilerOptions(testCaseContent.tsConfig.options); - this.tsConfigFiles.push(this.createHarnessTestFile(testCaseContent.tsConfigFileUnitData!, rootDir, ts.combinePaths(rootDir, tsConfigOptions.configFilePath))); + tsConfigOptions = cloneCompilerOptions(testCaseContent.tsConfig.options); + this.tsConfigFiles.push(this.createHarnessTestFile(testCaseContent.tsConfigFileUnitData!, rootDir, combinePaths(rootDir, tsConfigOptions.configFilePath))); } else { const baseUrl = this.harnessSettings.baseUrl; - if (baseUrl !== undefined && !ts.isRootedDiskPath(baseUrl)) { - this.harnessSettings.baseUrl = ts.getNormalizedAbsolutePath(baseUrl, rootDir); + if (baseUrl !== undefined && !isRootedDiskPath(baseUrl)) { + this.harnessSettings.baseUrl = getNormalizedAbsolutePath(baseUrl, rootDir); } } this.lastUnit = units[units.length - 1]; - this.hasNonDtsFiles = units.some(unit => !ts.fileExtensionIs(unit.name, ts.Extension.Dts)); + this.hasNonDtsFiles = units.some(unit => !fileExtensionIs(unit.name, Extension.Dts)); // We need to assemble the list of input files for the compiler and other related files on the 'filesystem' (ie in a multi-file test) // If the last file in a test uses require or a triple slash reference we'll assume all other files will be brought in via references, // otherwise, assume all files are just meant to be in the same compilation session without explicit references to one another. @@ -225,7 +232,7 @@ namespace Harness { } if (tsConfigOptions && tsConfigOptions.configFilePath !== undefined) { - tsConfigOptions.configFilePath = ts.combinePaths(rootDir, tsConfigOptions.configFilePath); + tsConfigOptions.configFilePath = combinePaths(rootDir, tsConfigOptions.configFilePath); tsConfigOptions.configFile!.fileName = tsConfigOptions.configFilePath; } @@ -318,13 +325,13 @@ namespace Harness { /*multifile*/ undefined, /*skipTypeBaselines*/ undefined, /*skipSymbolBaselines*/ undefined, - !!ts.length(this.result.diagnostics) + !!length(this.result.diagnostics) ); } private makeUnitName(name: string, root: string) { - const path = ts.toPath(name, root, ts.identity); - const pathStart = ts.toPath(IO.getCurrentDirectory(), "", ts.identity); + const path = toPath(name, root, identity); + const pathStart = toPath(IO.getCurrentDirectory(), "", identity); return pathStart ? path.replace(pathStart, "/") : path; } @@ -332,4 +339,4 @@ namespace Harness { return { unitName: unitName || this.makeUnitName(lastUnit.name, rootDir), content: lastUnit.content, fileOptions: lastUnit.fileOptions }; } } -} \ No newline at end of file + diff --git a/src/testRunner/documentsRef.ts b/src/testRunner/documentsRef.ts index d3d92746b4ed7..8220002bc0fc6 100644 --- a/src/testRunner/documentsRef.ts +++ b/src/testRunner/documentsRef.ts @@ -1,2 +1,2 @@ // empty ref to documents so it can be referenced by unittests -namespace documents {} \ No newline at end of file +// namespace documents {} diff --git a/src/testRunner/evaluatorRef.ts b/src/testRunner/evaluatorRef.ts index cc81ec2402db5..3f69bd8e7eaf3 100644 --- a/src/testRunner/evaluatorRef.ts +++ b/src/testRunner/evaluatorRef.ts @@ -1,2 +1,2 @@ // empty ref to evaluator so it can be referenced by unittests -namespace evaluator {} \ No newline at end of file +// namespace evaluator {} diff --git a/src/testRunner/externalCompileRunner.ts b/src/testRunner/externalCompileRunner.ts index b720ba61f2c0f..0450ab5afc421 100644 --- a/src/testRunner/externalCompileRunner.ts +++ b/src/testRunner/externalCompileRunner.ts @@ -1,4 +1,10 @@ -namespace Harness { +import { RunnerBase, TestRunnerKind } from "../harness/runnerbase"; +import { IO, Baseline } from "../harness/harnessIO"; +import { isWorker } from "cluster"; +import { Debug } from "../compiler/debug"; +import { flatten, compareValues, compareStringsCaseSensitive, stringContains } from "../compiler/core"; +import { comparePathsCaseSensitive } from "../compiler/path"; + const fs: typeof import("fs") = require("fs"); const path: typeof import("path") = require("path"); const del: typeof import("del") = require("del"); @@ -52,8 +58,8 @@ namespace Harness { let types: string[] | undefined; if (fs.existsSync(path.join(cwd, "test.json"))) { 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."); + Debug.assert(!!config.types, "Bad format from test.json: Types field must be present."); + 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", ["--work-tree", submoduleDir, "clone", config.cloneUrl, path.join(submoduleDir, ".git")], { cwd }); @@ -245,13 +251,13 @@ ${sanitizeDockerfileOutput(result.stderr.toString())}`; } function sortErrors(result: string) { - return ts.flatten(splitBy(result.split("\n"), s => /^\S+/.test(s)).sort(compareErrorStrings)).join("\n"); + return flatten(splitBy(result.split("\n"), s => /^\S+/.test(s)).sort(compareErrorStrings)).join("\n"); } const errorRegexp = /^(.+\.[tj]sx?)\((\d+),(\d+)\)(: error TS.*)/; function compareErrorStrings(a: string[], b: string[]) { - ts.Debug.assertGreaterThanOrEqual(a.length, 1); - ts.Debug.assertGreaterThanOrEqual(b.length, 1); + Debug.assertGreaterThanOrEqual(a.length, 1); + Debug.assertGreaterThanOrEqual(b.length, 1); const matchA = a[0].match(errorRegexp); if (!matchA) { return -1; @@ -262,11 +268,11 @@ ${sanitizeDockerfileOutput(result.stderr.toString())}`; } const [, errorFileA, lineNumberStringA, columnNumberStringA, remainderA] = matchA; const [, errorFileB, lineNumberStringB, columnNumberStringB, remainderB] = matchB; - return ts.comparePathsCaseSensitive(errorFileA, errorFileB) || - ts.compareValues(parseInt(lineNumberStringA), parseInt(lineNumberStringB)) || - ts.compareValues(parseInt(columnNumberStringA), parseInt(columnNumberStringB)) || - ts.compareStringsCaseSensitive(remainderA, remainderB) || - ts.compareStringsCaseSensitive(a.slice(1).join("\n"), b.slice(1).join("\n")); + return comparePathsCaseSensitive(errorFileA, errorFileB) || + compareValues(parseInt(lineNumberStringA), parseInt(lineNumberStringB)) || + compareValues(parseInt(columnNumberStringA), parseInt(columnNumberStringB)) || + compareStringsCaseSensitive(remainderA, remainderB) || + compareStringsCaseSensitive(a.slice(1).join("\n"), b.slice(1).join("\n")); } export class DefinitelyTypedRunner extends ExternalCompileRunnerBase { @@ -291,7 +297,7 @@ ${stderr.replace(/\r\n/g, "\n")}`; } function removeExpectedErrors(errors: string, cwd: string): string { - return ts.flatten(splitBy(errors.split("\n"), s => /^\S+/.test(s)).filter(isUnexpectedError(cwd))).join("\n"); + return flatten(splitBy(errors.split("\n"), s => /^\S+/.test(s)).filter(isUnexpectedError(cwd))).join("\n"); } /** * Returns true if the line that caused the error contains '$ExpectError', @@ -301,7 +307,7 @@ ${stderr.replace(/\r\n/g, "\n")}`; */ function isUnexpectedError(cwd: string) { return (error: string[]) => { - ts.Debug.assertGreaterThanOrEqual(error.length, 1); + Debug.assertGreaterThanOrEqual(error.length, 1); const match = error[0].match(/(.+\.tsx?)\((\d+),\d+\): error TS/); if (!match) { return true; @@ -309,10 +315,10 @@ ${stderr.replace(/\r\n/g, "\n")}`; const [, errorFile, lineNumberString] = match; const lines = fs.readFileSync(path.join(cwd, errorFile), { encoding: "utf8" }).split("\n"); const lineNumber = parseInt(lineNumberString) - 1; - ts.Debug.assertGreaterThanOrEqual(lineNumber, 0); - ts.Debug.assertLessThan(lineNumber, lines.length); + Debug.assertGreaterThanOrEqual(lineNumber, 0); + Debug.assertLessThan(lineNumber, lines.length); const previousLine = lineNumber - 1 > 0 ? lines[lineNumber - 1] : ""; - return !ts.stringContains(lines[lineNumber], "$ExpectError") && !ts.stringContains(previousLine, "$ExpectError"); + return !stringContains(lines[lineNumber], "$ExpectError") && !stringContains(previousLine, "$ExpectError"); }; } /** @@ -342,4 +348,4 @@ ${stderr.replace(/\r\n/g, "\n")}`; } return result; } -} + diff --git a/src/testRunner/fakesRef.ts b/src/testRunner/fakesRef.ts index b19d4cc8c80ed..831c27d4dd335 100644 --- a/src/testRunner/fakesRef.ts +++ b/src/testRunner/fakesRef.ts @@ -1,2 +1,2 @@ // empty ref to fakes so it can be referenced by unittests -namespace fakes {} \ No newline at end of file +// namespace fakes {} diff --git a/src/testRunner/fourslashRef.ts b/src/testRunner/fourslashRef.ts index 23a50810a46af..6a28040930c25 100644 --- a/src/testRunner/fourslashRef.ts +++ b/src/testRunner/fourslashRef.ts @@ -1,2 +1,2 @@ // empty ref to FourSlash so it can be referenced by unittests -namespace FourSlash {} \ No newline at end of file +// namespace FourSlash {} diff --git a/src/testRunner/fourslashRunner.ts b/src/testRunner/fourslashRunner.ts index 4916ec6693f6e..207acbdaecb1e 100644 --- a/src/testRunner/fourslashRunner.ts +++ b/src/testRunner/fourslashRunner.ts @@ -1,4 +1,9 @@ -namespace Harness { +import { RunnerBase, TestRunnerKind } from "../harness/runnerbase"; +import { Debug } from "../compiler/debug"; +import { IO } from "../harness/harnessIO"; +import { normalizeSlashes } from "../compiler/path"; +import { FourSlash } from "../harness/fourslashImpl"; + export class FourSlashRunner extends RunnerBase { protected basePath: string; protected testSuiteName: TestRunnerKind; @@ -23,7 +28,7 @@ namespace Harness { this.testSuiteName = "fourslash-server"; break; default: - throw ts.Debug.assertNever(testType); + throw Debug.assertNever(testType); } } @@ -45,7 +50,7 @@ namespace Harness { this.tests.forEach(test => { const file = typeof test === "string" ? test : test.file; describe(file, () => { - let fn = ts.normalizeSlashes(file); + let fn = normalizeSlashes(file); const justName = fn.replace(/^.*[\\\/]/, ""); // Convert to relative path @@ -69,4 +74,4 @@ namespace Harness { this.basePath += "/generated/"; } } -} + diff --git a/src/testRunner/parallel/host.ts b/src/testRunner/parallel/host.ts index bb4b31b9f058d..3fc52d61be154 100644 --- a/src/testRunner/parallel/host.ts +++ b/src/testRunner/parallel/host.ts @@ -1,4 +1,11 @@ -namespace Harness.Parallel.Host { +import { configOption, runners, workerCount, TestConfig, globalTimeout, taskConfigsFolder, noColors, runUnitTests } from "../runner"; +import { Task, ErrorInfo, TestInfo, TaskTimeout, ParallelClientMessage, ParallelHostMessage, shimNoopTestInterface } from "./shared"; +import { createMap } from "../../compiler/core"; +import { IO, lightMode } from "../../harness/harnessIO"; +import { TestRunnerKind } from "../../harness/runnerbase"; +import { combinePaths } from "../../compiler/path"; +import { Debug } from "../../compiler/debug"; + export function start() { const Mocha = require("mocha") as typeof import("mocha"); const Base = Mocha.reporters.Base; @@ -24,7 +31,7 @@ namespace Harness.Parallel.Host { let totalCost = 0; class RemoteSuite extends Mocha.Suite { - suiteMap = ts.createMap(); + suiteMap = createMap(); constructor(title: string) { super(title); this.pending = false; @@ -251,7 +258,7 @@ namespace Harness.Parallel.Host { for (let i = 0; i < workerCount; i++) { // TODO: Just send the config over the IPC channel or in the command line arguments const config: TestConfig = { light: lightMode, listenForWork: true, runUnitTests: Harness.runUnitTests, stackTraceLimit: Harness.stackTraceLimit, timeout: globalTimeout }; // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier - const configPath = ts.combinePaths(taskConfigsFolder, `task-config${i}.json`); + const configPath = combinePaths(taskConfigsFolder, `task-config${i}.json`); IO.writeFile(configPath, JSON.stringify(config)); const worker: Worker = { process: fork(__filename, [`--config="${configPath}"`], { stdio: ["pipe", "pipe", "pipe", "ipc"] }), @@ -407,7 +414,7 @@ namespace Harness.Parallel.Host { } else { // Out of batches, send off just one test const payload = tasks.pop()!; - ts.Debug.assert(!!payload); // The reserve kept above should ensure there is always an initial task available, even in suboptimal scenarios + Debug.assert(!!payload); // The reserve kept above should ensure there is always an initial task available, even in suboptimal scenarios worker.currentTasks = [payload]; worker.process.send({ type: "test", payload }); } @@ -626,4 +633,4 @@ namespace Harness.Parallel.Host { // eslint-disable-next-line no-restricted-globals setTimeout(() => startDelayed(perfData, totalCost), 0); // Do real startup on next tick, so all unit tests have been collected } -} + diff --git a/src/testRunner/parallel/shared.ts b/src/testRunner/parallel/shared.ts index bfcef09b4de3f..deb64f9047be8 100644 --- a/src/testRunner/parallel/shared.ts +++ b/src/testRunner/parallel/shared.ts @@ -1,4 +1,6 @@ -namespace Harness.Parallel { +import { TestRunnerKind } from "../../harness/runnerbase"; +import { noop } from "../../compiler/core"; + export interface RunnerTask { runner: TestRunnerKind; file: string; @@ -74,15 +76,15 @@ namespace Harness.Parallel { export type ParallelClientMessage = ParallelErrorMessage | ParallelResultMessage | ParallelBatchProgressMessage | ParallelTimeoutChangeMessage; export function shimNoopTestInterface(global: Mocha.MochaGlobals) { - global.before = ts.noop; - global.after = ts.noop; - global.beforeEach = ts.noop; - global.afterEach = ts.noop; + global.before = noop; + global.after = noop; + global.beforeEach = noop; + global.afterEach = noop; global.describe = global.context = ((_: any, __: any) => { /*empty*/ }) as Mocha.SuiteFunction; - global.describe.skip = global.xdescribe = global.xcontext = ts.noop as Mocha.PendingSuiteFunction; - global.describe.only = ts.noop as Mocha.ExclusiveSuiteFunction; + global.describe.skip = global.xdescribe = global.xcontext = noop as Mocha.PendingSuiteFunction; + global.describe.only = noop as Mocha.ExclusiveSuiteFunction; global.it = global.specify = ((_: any, __: any) => { /*empty*/ }) as Mocha.TestFunction; - global.it.skip = global.xit = global.xspecify = ts.noop as Mocha.PendingTestFunction; - global.it.only = ts.noop as Mocha.ExclusiveTestFunction; + global.it.skip = global.xit = global.xspecify = noop as Mocha.PendingTestFunction; + global.it.only = noop as Mocha.ExclusiveTestFunction; } -} + diff --git a/src/testRunner/parallel/worker.ts b/src/testRunner/parallel/worker.ts index 2e985ec8bed5c..b6deb9c8b5ca4 100644 --- a/src/testRunner/parallel/worker.ts +++ b/src/testRunner/parallel/worker.ts @@ -1,4 +1,8 @@ -namespace Harness.Parallel.Worker { +import { Task, TaskResult, UnitTestTask, RunnerTask, ErrorInfo, TestInfo, ParallelHostMessage, ParallelClientMessage, shimNoopTestInterface } from "./shared"; +import { createMap } from "../../compiler/core"; +import { globalTimeout, createRunner, runUnitTests } from "../runner"; +import { RunnerBase } from "../../harness/runnerbase"; + export function start() { function hookUncaughtExceptions() { if (!exceptionsHooked) { @@ -146,13 +150,13 @@ namespace Harness.Parallel.Worker { function executeUnitTests(task: UnitTestTask, fn: (payload: TaskResult) => void) { if (!unitTestSuiteMap && unitTestSuite.suites.length) { - unitTestSuiteMap = ts.createMap(); + unitTestSuiteMap = createMap(); for (const suite of unitTestSuite.suites) { unitTestSuiteMap.set(suite.title, suite); } } if (!unitTestTestMap && unitTestSuite.tests.length) { - unitTestTestMap = ts.createMap(); + unitTestTestMap = createMap(); for (const test of unitTestSuite.tests) { unitTestTestMap.set(test.title, test); } @@ -297,13 +301,13 @@ namespace Harness.Parallel.Worker { } // A cache of test harness Runner instances. - const runners = ts.createMap(); + const runners = createMap(); // The root suite for all unit tests. let unitTestSuite: Suite; - let unitTestSuiteMap: ts.Map; + let unitTestSuiteMap: Map; // (Unit) Tests directly within the root suite - let unitTestTestMap: ts.Map; + let unitTestTestMap: Map; if (runUnitTests) { unitTestSuite = new Suite("", new Mocha.Context()); @@ -317,4 +321,4 @@ namespace Harness.Parallel.Worker { process.on("message", processHostMessage); } -} + diff --git a/src/testRunner/playbackRef.ts b/src/testRunner/playbackRef.ts index 8fcb9965e0923..8645ba45f0995 100644 --- a/src/testRunner/playbackRef.ts +++ b/src/testRunner/playbackRef.ts @@ -1,2 +1,2 @@ // empty ref to Playback so it can be referenced by unittests -namespace Playback {} \ No newline at end of file +// namespace Playback {} diff --git a/src/testRunner/projectsRunner.ts b/src/testRunner/projectsRunner.ts index d90972fe09a76..cb0644ddad973 100644 --- a/src/testRunner/projectsRunner.ts +++ b/src/testRunner/projectsRunner.ts @@ -1,4 +1,12 @@ -namespace project { +import { SourceFile, ModuleKind, Program, CompilerOptions, Diagnostic, SourceMapEmitResult, CharacterCodes, CompilerHost, Extension, ModuleResolutionKind, NewLineKind } from "../compiler/types"; +import { normalizePath, combinePaths, getDirectoryPath, normalizeSlashes, getNormalizedAbsolutePath, isRootedDiskPath } from "../compiler/path"; +import { assert } from "console"; +import { findConfigFile, createProgram, getPreEmitDiagnostics } from "../compiler/program"; +import { readJsonConfigFile, parseJsonSourceFileConfigFileContent, optionDeclarations } from "../../built/local/compiler"; +import { concatenate, forEach, contains, arrayToMap } from "../compiler/core"; +import { removeFileExtension } from "../compiler/utilities"; +import { isString } from "util"; + // Test case is json of below type in tests/cases/project/ interface ProjectRunnerTestCase { scenario: string; @@ -18,12 +26,12 @@ namespace project { } interface CompileProjectFilesResult { - configFileSourceFiles: readonly ts.SourceFile[]; - moduleKind: ts.ModuleKind; - program?: ts.Program; - compilerOptions?: ts.CompilerOptions; - errors: readonly ts.Diagnostic[]; - sourceMapData?: readonly ts.SourceMapEmitResult[]; + configFileSourceFiles: readonly SourceFile[]; + moduleKind: ModuleKind; + program?: Program; + compilerOptions?: CompilerOptions; + errors: readonly Diagnostic[]; + sourceMapData?: readonly SourceMapEmitResult[]; } interface BatchCompileProjectTestCaseResult extends CompileProjectFilesResult { @@ -70,10 +78,10 @@ namespace project { } class ProjectCompilerHost extends fakes.CompilerHost { - private _testCase: ProjectRunnerTestCase & ts.CompilerOptions; + private _testCase: ProjectRunnerTestCase & CompilerOptions; private _projectParseConfigHost: ProjectParseConfigHost | undefined; - constructor(sys: fakes.System | vfs.FileSystem, compilerOptions: ts.CompilerOptions, _testCaseJustName: string, testCase: ProjectRunnerTestCase & ts.CompilerOptions, _moduleKind: ts.ModuleKind) { + constructor(sys: fakes.System | vfs.FileSystem, compilerOptions: CompilerOptions, _testCaseJustName: string, testCase: ProjectRunnerTestCase & CompilerOptions, _moduleKind: ModuleKind) { super(sys, compilerOptions); this._testCase = testCase; } @@ -82,15 +90,15 @@ namespace project { return this._projectParseConfigHost || (this._projectParseConfigHost = new ProjectParseConfigHost(this.sys, this._testCase)); } - public getDefaultLibFileName(_options: ts.CompilerOptions) { + public getDefaultLibFileName(_options: CompilerOptions) { return vpath.resolve(this.getDefaultLibLocation(), "lib.es5.d.ts"); } } class ProjectParseConfigHost extends fakes.ParseConfigHost { - private _testCase: ProjectRunnerTestCase & ts.CompilerOptions; + private _testCase: ProjectRunnerTestCase & CompilerOptions; - constructor(sys: fakes.System, testCase: ProjectRunnerTestCase & ts.CompilerOptions) { + constructor(sys: fakes.System, testCase: ProjectRunnerTestCase & CompilerOptions) { super(sys); this._testCase = testCase; } @@ -112,16 +120,16 @@ namespace project { } interface ProjectTestPayload { - testCase: ProjectRunnerTestCase & ts.CompilerOptions; - moduleKind: ts.ModuleKind; + testCase: ProjectRunnerTestCase & CompilerOptions; + moduleKind: ModuleKind; vfs: vfs.FileSystem; } class ProjectTestCase { - private testCase: ProjectRunnerTestCase & ts.CompilerOptions; + private testCase: ProjectRunnerTestCase & CompilerOptions; private testCaseJustName: string; private sys: fakes.System; - private compilerOptions: ts.CompilerOptions; + private compilerOptions: CompilerOptions; private compilerResult: BatchCompileProjectTestCaseResult; constructor(testCaseFileName: string, { testCase, moduleKind, vfs }: ProjectTestPayload) { @@ -134,20 +142,20 @@ namespace project { let inputFiles = testCase.inputFiles; if (this.compilerOptions.project) { // Parse project - configFileName = ts.normalizePath(ts.combinePaths(this.compilerOptions.project, "tsconfig.json")); + configFileName = normalizePath(combinePaths(this.compilerOptions.project, "tsconfig.json")); assert(!inputFiles || inputFiles.length === 0, "cannot specify input files and project option together"); } else if (!inputFiles || inputFiles.length === 0) { - configFileName = ts.findConfigFile("", path => this.sys.fileExists(path)); + configFileName = findConfigFile("", path => this.sys.fileExists(path)); } - let errors: ts.Diagnostic[] | undefined; - const configFileSourceFiles: ts.SourceFile[] = []; + let errors: Diagnostic[] | undefined; + const configFileSourceFiles: SourceFile[] = []; if (configFileName) { - const result = ts.readJsonConfigFile(configFileName, path => this.sys.readFile(path)); + const result = readJsonConfigFile(configFileName, path => this.sys.readFile(path)); configFileSourceFiles.push(result); const configParseHost = new ProjectParseConfigHost(this.sys, this.testCase); - const configParseResult = ts.parseJsonSourceFileConfigFileContent(result, configParseHost, ts.getDirectoryPath(configFileName), this.compilerOptions); + const configParseResult = parseJsonSourceFileConfigFileContent(result, configParseHost, getDirectoryPath(configFileName), this.compilerOptions); inputFiles = configParseResult.fileNames; this.compilerOptions = configParseResult.options; errors = [...result.parseDiagnostics, ...configParseResult.errors]; @@ -163,7 +171,7 @@ namespace project { compilerOptions: this.compilerOptions, sourceMapData: projectCompilerResult.sourceMapData, outputFiles: compilerHost.outputs, - errors: errors ? ts.concatenate(errors, projectCompilerResult.errors) : projectCompilerResult.errors, + errors: errors ? concatenate(errors, projectCompilerResult.errors) : projectCompilerResult.errors, }; } @@ -172,7 +180,7 @@ namespace project { } public static getConfigurations(testCaseFileName: string): ProjectTestConfiguration[] { - let testCase: ProjectRunnerTestCase & ts.CompilerOptions; + let testCase: ProjectRunnerTestCase & CompilerOptions; let testFileText: string | undefined; try { @@ -183,7 +191,7 @@ namespace project { } try { - testCase = JSON.parse(testFileText!); + testCase = JSON.parse(testFileText!); } catch (e) { throw assert(false, "Testcase: " + testCaseFileName + " does not contain valid json format: " + e.message); @@ -196,15 +204,15 @@ namespace project { fs.makeReadonly(); return [ - { name: `@module: commonjs`, payload: { testCase, moduleKind: ts.ModuleKind.CommonJS, vfs: fs } }, - { name: `@module: amd`, payload: { testCase, moduleKind: ts.ModuleKind.AMD, vfs: fs } } + { name: `@module: commonjs`, payload: { testCase, moduleKind: ModuleKind.CommonJS, vfs: fs } }, + { name: `@module: amd`, payload: { testCase, moduleKind: ModuleKind.AMD, vfs: fs } } ]; } public verifyResolution() { const cwd = this.vfs.cwd(); const ignoreCase = this.vfs.ignoreCase; - const resolutionInfo: ProjectRunnerTestCaseResolutionInfo & ts.CompilerOptions = JSON.parse(JSON.stringify(this.testCase)); + const resolutionInfo: ProjectRunnerTestCaseResolutionInfo & CompilerOptions = JSON.parse(JSON.stringify(this.testCase)); resolutionInfo.resolvedInputFiles = this.compilerResult.program!.getSourceFiles() .map(({ fileName: input }) => vpath.beneath(vfs.builtFolder, input, this.vfs.ignoreCase) || vpath.beneath(vfs.testLibFolder, input, this.vfs.ignoreCase) ? Utils.removeTestPathPrefixes(input) : @@ -265,7 +273,7 @@ namespace project { // if (compilerResult.sourceMapData) { // Harness.Baseline.runBaseline(getBaselineFolder(compilerResult.moduleKind) + testCaseJustName + ".sourcemap.txt", () => { // return Harness.SourceMapRecorder.getSourceMapRecord(compilerResult.sourceMapData, compilerResult.program, - // ts.filter(compilerResult.outputFiles, outputFile => Harness.Compiler.isJS(outputFile.emittedFileName))); + // filter(compilerResult.outputFiles, outputFile => Harness.Compiler.isJS(outputFile.emittedFileName))); // }); // } } @@ -280,14 +288,14 @@ namespace project { } // Project baselines verified go in project/testCaseName/moduleKind/ - private getBaselineFolder(moduleKind: ts.ModuleKind) { + private getBaselineFolder(moduleKind: ModuleKind) { return "project/" + this.testCaseJustName + "/" + moduleNameToString(moduleKind) + "/"; } private cleanProjectUrl(url: string) { - let diskProjectPath = ts.normalizeSlashes(Harness.IO.resolvePath(this.testCase.projectRoot)!); + let diskProjectPath = normalizeSlashes(Harness.IO.resolvePath(this.testCase.projectRoot)!); let projectRootUrl = "file:///" + diskProjectPath; - const normalizedProjectRoot = ts.normalizeSlashes(this.testCase.projectRoot); + const normalizedProjectRoot = normalizeSlashes(this.testCase.projectRoot); diskProjectPath = diskProjectPath.substr(0, diskProjectPath.lastIndexOf(normalizedProjectRoot)); projectRootUrl = projectRootUrl.substr(0, projectRootUrl.lastIndexOf(normalizedProjectRoot)); if (url && url.length) { @@ -298,7 +306,7 @@ namespace project { else if (url.indexOf(diskProjectPath) === 0) { // Replace the disk specific path into the project root path url = url.substr(diskProjectPath.length); - if (url.charCodeAt(0) !== ts.CharacterCodes.slash) { + if (url.charCodeAt(0) !== CharacterCodes.slash) { url = "/" + url; } } @@ -307,13 +315,13 @@ namespace project { return url; } - private compileProjectFiles(moduleKind: ts.ModuleKind, configFileSourceFiles: readonly ts.SourceFile[], + private compileProjectFiles(moduleKind: ModuleKind, configFileSourceFiles: readonly SourceFile[], getInputFiles: () => readonly string[], - compilerHost: ts.CompilerHost, - compilerOptions: ts.CompilerOptions): CompileProjectFilesResult { + compilerHost: CompilerHost, + compilerOptions: CompilerOptions): CompileProjectFilesResult { - const program = ts.createProgram(getInputFiles(), compilerOptions, compilerHost); - const errors = ts.getPreEmitDiagnostics(program); + const program = createProgram(getInputFiles(), compilerOptions, compilerHost); + const errors = getPreEmitDiagnostics(program); const { sourceMaps: sourceMapData, diagnostics: emitDiagnostics } = program.emit(); @@ -332,7 +340,7 @@ namespace project { configFileSourceFiles, moduleKind, program, - errors: ts.concatenate(errors, emitDiagnostics), + errors: concatenate(errors, emitDiagnostics), sourceMapData }; } @@ -345,7 +353,7 @@ namespace project { const compilerOptions = compilerResult.program.getCompilerOptions(); const allInputFiles: documents.TextDocument[] = []; const rootFiles: string[] = []; - ts.forEach(compilerResult.program.getSourceFiles(), sourceFile => { + forEach(compilerResult.program.getSourceFiles(), sourceFile => { if (sourceFile.isDeclarationFile) { if (!vpath.isDefaultLibrary(sourceFile.fileName)) { allInputFiles.unshift(new documents.TextDocument(sourceFile.fileName, sourceFile.text)); @@ -355,15 +363,15 @@ namespace project { else if (!(compilerOptions.outFile || compilerOptions.out)) { let emitOutputFilePathWithoutExtension: string | undefined; if (compilerOptions.outDir) { - let sourceFilePath = ts.getNormalizedAbsolutePath(sourceFile.fileName, compilerResult.program!.getCurrentDirectory()); + let sourceFilePath = getNormalizedAbsolutePath(sourceFile.fileName, compilerResult.program!.getCurrentDirectory()); sourceFilePath = sourceFilePath.replace(compilerResult.program!.getCommonSourceDirectory(), ""); - emitOutputFilePathWithoutExtension = ts.removeFileExtension(ts.combinePaths(compilerOptions.outDir, sourceFilePath)); + emitOutputFilePathWithoutExtension = removeFileExtension(combinePaths(compilerOptions.outDir, sourceFilePath)); } else { - emitOutputFilePathWithoutExtension = ts.removeFileExtension(sourceFile.fileName); + emitOutputFilePathWithoutExtension = removeFileExtension(sourceFile.fileName); } - const outputDtsFileName = emitOutputFilePathWithoutExtension + ts.Extension.Dts; + const outputDtsFileName = emitOutputFilePathWithoutExtension + Extension.Dts; const file = findOutputDtsFile(outputDtsFileName); if (file) { allInputFiles.unshift(file); @@ -371,9 +379,9 @@ namespace project { } } else { - const outputDtsFileName = ts.removeFileExtension(compilerOptions.outFile || compilerOptions.out!) + ts.Extension.Dts; + const outputDtsFileName = removeFileExtension(compilerOptions.outFile || compilerOptions.out!) + Extension.Dts; const outputDtsFile = findOutputDtsFile(outputDtsFileName)!; - if (!ts.contains(allInputFiles, outputDtsFile)) { + if (!contains(allInputFiles, outputDtsFile)) { allInputFiles.unshift(outputDtsFile); rootFiles.unshift(outputDtsFile.meta.get("fileName") || outputDtsFile.file); } @@ -390,14 +398,14 @@ namespace project { return this.compileProjectFiles(compilerResult.moduleKind, compilerResult.configFileSourceFiles, () => rootFiles, compilerHost, compilerResult.compilerOptions!); function findOutputDtsFile(fileName: string) { - return ts.forEach(compilerResult.outputFiles, outputFile => outputFile.meta.get("fileName") === fileName ? outputFile : undefined); + return forEach(compilerResult.outputFiles, outputFile => outputFile.meta.get("fileName") === fileName ? outputFile : undefined); } } } - function moduleNameToString(moduleKind: ts.ModuleKind) { - return moduleKind === ts.ModuleKind.AMD ? "amd" : - moduleKind === ts.ModuleKind.CommonJS ? "node" : "none"; + function moduleNameToString(moduleKind: ModuleKind) { + return moduleKind === ModuleKind.AMD ? "amd" : + moduleKind === ModuleKind.CommonJS ? "node" : "none"; } function getErrorsBaseline(compilerResult: CompileProjectFilesResult) { @@ -411,7 +419,7 @@ namespace project { } const inputFiles = inputSourceFiles.map(sourceFile => ({ - unitName: ts.isRootedDiskPath(sourceFile.fileName) ? + unitName: isRootedDiskPath(sourceFile.fileName) ? Harness.RunnerBase.removeFullPaths(sourceFile.fileName) : sourceFile.fileName, content: sourceFile.text @@ -420,14 +428,14 @@ namespace project { return Harness.Compiler.getErrorBaseline(inputFiles, compilerResult.errors); } - function createCompilerOptions(testCase: ProjectRunnerTestCase & ts.CompilerOptions, moduleKind: ts.ModuleKind) { + function createCompilerOptions(testCase: ProjectRunnerTestCase & CompilerOptions, moduleKind: ModuleKind) { // Set the special options that depend on other testcase options - const compilerOptions: ts.CompilerOptions = { + const compilerOptions: CompilerOptions = { noErrorTruncation: false, skipDefaultLibCheck: false, - moduleResolution: ts.ModuleResolutionKind.Classic, + moduleResolution: ModuleResolutionKind.Classic, module: moduleKind, - newLine: ts.NewLineKind.CarriageReturnLineFeed, + newLine: NewLineKind.CarriageReturnLineFeed, mapRoot: testCase.resolveMapRoot && testCase.mapRoot ? vpath.resolve(vfs.srcFolder, testCase.mapRoot) : testCase.mapRoot, @@ -438,14 +446,14 @@ namespace project { }; // Set the values specified using json - const optionNameMap = ts.arrayToMap(ts.optionDeclarations, option => option.name); + const optionNameMap = arrayToMap(optionDeclarations, option => option.name); for (const name in testCase) { if (name !== "mapRoot" && name !== "sourceRoot") { const option = optionNameMap.get(name); if (option) { const optType = option.type; let value = testCase[name]; - if (!ts.isString(optType)) { + if (!isString(optType)) { const key = value.toLowerCase(); const optTypeValue = optType.get(key); if (optTypeValue) { @@ -459,4 +467,4 @@ namespace project { return compilerOptions; } -} + diff --git a/src/testRunner/runner.ts b/src/testRunner/runner.ts index c3d7d72c2a9d1..d31142b741ccd 100644 --- a/src/testRunner/runner.ts +++ b/src/testRunner/runner.ts @@ -1,4 +1,13 @@ -namespace Harness { +import { RunnerBase, TestRunnerKind, setShardId, setShards } from "../harness/runnerbase"; +import { forEach, getUILocale, setUILocale, noop } from "../compiler/core"; +import { CompilerBaselineRunner, CompilerTestType } from "./compilerRunner"; +import { FourSlashRunner, GeneratedFourslashRunner } from "./fourslashRunner"; +import { Test262BaselineRunner } from "./test262Runner"; +import { UserCodeRunner, DefinitelyTypedRunner, DockerfileRunner } from "./externalCompileRunner"; +import { Debug } from "../compiler/debug"; +import { IO, setLightMode } from "../harness/harnessIO"; +import { ProjectRunner } from "./projectsRunner"; + /* eslint-disable prefer-const */ export let runners: RunnerBase[] = []; export let iterations = 1; @@ -14,7 +23,7 @@ namespace Harness { function tryGetConfig(args: string[]) { const prefix = "--config="; - const configPath = ts.forEach(args, arg => arg.lastIndexOf(prefix, 0) === 0 && arg.substr(prefix.length)); + const configPath = forEach(args, arg => arg.lastIndexOf(prefix, 0) === 0 && arg.substr(prefix.length)); // strip leading and trailing quotes from the path (necessary on Windows since shell does not do it automatically) return configPath && configPath.replace(/(^[\"'])|([\"']$)/g, ""); } @@ -34,9 +43,9 @@ namespace Harness { case "fourslash-server": return new FourSlashRunner(FourSlash.FourSlashTestType.Server); case "project": - return new project.ProjectRunner(); + return new ProjectRunner(); case "rwc": - return new RWC.RWCRunner(); + return new RWCRunner(); case "test262": return new Test262BaselineRunner(); case "user": @@ -46,7 +55,7 @@ namespace Harness { case "docker": return new DockerfileRunner(); } - return ts.Debug.fail(`Unknown runner kind ${kind}`); + return Debug.fail(`Unknown runner kind ${kind}`); } // users can define tests to run in mytest.config that will override cmd line args, otherwise use cmd line args (test.config), otherwise no options @@ -159,7 +168,7 @@ namespace Harness { runners.push(new CompilerBaselineRunner(CompilerTestType.Conformance)); break; case "project": - runners.push(new project.ProjectRunner()); + runners.push(new ProjectRunner()); break; case "fourslash": runners.push(new FourSlashRunner(FourSlash.FourSlashTestType.Native)); @@ -177,7 +186,7 @@ namespace Harness { runners.push(new GeneratedFourslashRunner(FourSlash.FourSlashTestType.Native)); break; case "rwc": - runners.push(new RWC.RWCRunner()); + runners.push(new RWCRunner()); break; case "test262": runners.push(new Test262BaselineRunner()); @@ -201,7 +210,7 @@ namespace Harness { runners.push(new CompilerBaselineRunner(CompilerTestType.Conformance)); runners.push(new CompilerBaselineRunner(CompilerTestType.Regressions)); - runners.push(new project.ProjectRunner()); + runners.push(new ProjectRunner()); // language services runners.push(new FourSlashRunner(FourSlash.FourSlashTestType.Native)); @@ -223,29 +232,29 @@ namespace Harness { } function beginTests() { - ts.Debug.loggingHost = { + Debug.loggingHost = { log(_level, s) { console.log(s || ""); } }; - if (ts.Debug.isDebugging) { - ts.Debug.enableDebugInfo(); + if (Debug.isDebugging) { + Debug.enableDebugInfo(); } // run tests in en-US by default. let savedUILocale: string | undefined; beforeEach(() => { - savedUILocale = ts.getUILocale(); - ts.setUILocale("en-US"); + savedUILocale = getUILocale(); + setUILocale("en-US"); }); - afterEach(() => ts.setUILocale(savedUILocale)); + afterEach(() => setUILocale(savedUILocale)); runTests(runners); if (!runUnitTests) { // patch `describe` to skip unit tests - (global as any).describe = ts.noop; + (global as any).describe = noop; } } @@ -262,4 +271,4 @@ namespace Harness { } startTestEnvironment(); -} \ No newline at end of file + diff --git a/src/testRunner/rwcRunner.ts b/src/testRunner/rwcRunner.ts index a50447b2d0065..b9bfc3a9630ce 100644 --- a/src/testRunner/rwcRunner.ts +++ b/src/testRunner/rwcRunner.ts @@ -1,5 +1,12 @@ // In harness baselines, null is different than undefined. See `generateActual` in `harness.ts`. -namespace RWC { + +import { CompilerOptions, ParsedCommandLine, ParseConfigHost } from "../compiler/types"; +import { getBaseFileName, getDirectoryPath, normalizeSlashes } from "../compiler/path"; +import { parseCommandLine, parseJsonSourceFileConfigFileContent, setConfigFileInOptions } from "../../built/local/compiler"; +import { forEach, extend, createMap } from "../compiler/core"; +import { parseJsonText } from "../compiler/parser"; +import { assert } from "console"; + function runWithIOLog(ioLog: Playback.IoLog, fn: (oldIO: Harness.IO) => void) { const oldIO = Harness.IO; @@ -22,12 +29,12 @@ namespace RWC { let otherFiles: Harness.Compiler.TestFile[] = []; let tsconfigFiles: Harness.Compiler.TestFile[] = []; let compilerResult: compiler.CompilationResult; - let compilerOptions: ts.CompilerOptions; + let compilerOptions: CompilerOptions; const baselineOpts: Harness.Baseline.BaselineOptions = { Subfolder: "rwc", Baselinefolder: "internal/baselines" }; - const baseName = ts.getBaseFileName(jsonPath); + const baseName = getBaseFileName(jsonPath); let currentDirectory: string; let useCustomLibraryFile: boolean; let caseSensitive: boolean; @@ -49,13 +56,13 @@ namespace RWC { it("can compile", function (this: Mocha.ITestCallbackContext) { this.timeout(800_000); // Allow long timeouts for RWC compilations - let opts!: ts.ParsedCommandLine; + let opts!: ParsedCommandLine; const ioLog: Playback.IoLog = Playback.newStyleLogIntoOldStyleLog(JSON.parse(Harness.IO.readFile(`internal/cases/rwc/${jsonPath}/test.json`)!), Harness.IO, `internal/cases/rwc/${baseName}`); currentDirectory = ioLog.currentDirectory; useCustomLibraryFile = !!ioLog.useCustomLibraryFile; runWithIOLog(ioLog, () => { - opts = ts.parseCommandLine(ioLog.arguments, fileName => Harness.IO.readFile(fileName)); + opts = parseCommandLine(ioLog.arguments, fileName => Harness.IO.readFile(fileName)); assert.equal(opts.errors.length, 0); // To provide test coverage of output javascript file, @@ -65,28 +72,28 @@ namespace RWC { let fileNames = opts.fileNames; runWithIOLog(ioLog, () => { - const tsconfigFile = ts.forEach(ioLog.filesRead, f => vpath.isTsConfigFile(f.path) ? f : undefined); + const tsconfigFile = forEach(ioLog.filesRead, f => vpath.isTsConfigFile(f.path) ? f : undefined); if (tsconfigFile) { const tsconfigFileContents = getHarnessCompilerInputUnit(tsconfigFile.path); tsconfigFiles.push({ unitName: tsconfigFile.path, content: tsconfigFileContents.content }); - const parsedTsconfigFileContents = ts.parseJsonText(tsconfigFile.path, tsconfigFileContents.content); - const configParseHost: ts.ParseConfigHost = { + const parsedTsconfigFileContents = parseJsonText(tsconfigFile.path, tsconfigFileContents.content); + const configParseHost: ParseConfigHost = { useCaseSensitiveFileNames: Harness.IO.useCaseSensitiveFileNames(), fileExists: Harness.IO.fileExists, readDirectory: Harness.IO.readDirectory, readFile: Harness.IO.readFile }; - const configParseResult = ts.parseJsonSourceFileConfigFileContent(parsedTsconfigFileContents, configParseHost, ts.getDirectoryPath(tsconfigFile.path)); + const configParseResult = parseJsonSourceFileConfigFileContent(parsedTsconfigFileContents, configParseHost, getDirectoryPath(tsconfigFile.path)); fileNames = configParseResult.fileNames; - opts.options = ts.extend(opts.options, configParseResult.options); - ts.setConfigFileInOptions(opts.options, configParseResult.options.configFile); + opts.options = extend(opts.options, configParseResult.options); + setConfigFileInOptions(opts.options, configParseResult.options.configFile); } // Deduplicate files so they are only printed once in baselines (they are deduplicated within the compiler already) - const uniqueNames = ts.createMap(); + const uniqueNames = createMap(); for (const fileName of fileNames) { // Must maintain order, build result list while checking map - const normalized = ts.normalizeSlashes(Harness.IO.resolvePath(fileName)!); + const normalized = normalizeSlashes(Harness.IO.resolvePath(fileName)!); if (!uniqueNames.has(normalized)) { uniqueNames.set(normalized, true); // Load the file @@ -96,7 +103,7 @@ namespace RWC { // Add files to compilation for (const fileRead of ioLog.filesRead) { - const unitName = ts.normalizeSlashes(Harness.IO.resolvePath(fileRead.path)!); + const unitName = normalizeSlashes(Harness.IO.resolvePath(fileRead.path)!); if (!uniqueNames.has(unitName) && !Harness.isDefaultLibraryFile(fileRead.path)) { uniqueNames.set(unitName, true); otherFiles.push(getHarnessCompilerInputUnit(fileRead.path)); @@ -132,7 +139,7 @@ namespace RWC { compilerOptions = compilerResult.options; function getHarnessCompilerInputUnit(fileName: string): Harness.Compiler.TestFile { - const unitName = ts.normalizeSlashes(Harness.IO.resolvePath(fileName)!); + const unitName = normalizeSlashes(Harness.IO.resolvePath(fileName)!); let content: string; try { content = Harness.IO.readFile(unitName)!; @@ -232,4 +239,4 @@ namespace RWC { runRWCTest(jsonFileName); } } -} + diff --git a/src/testRunner/test262Runner.ts b/src/testRunner/test262Runner.ts index 728d3fb322790..edcff60338836 100644 --- a/src/testRunner/test262Runner.ts +++ b/src/testRunner/test262Runner.ts @@ -1,4 +1,10 @@ -namespace Harness { +import { RunnerBase, TestRunnerKind } from "../harness/runnerbase"; +import { Compiler, IO, Baseline, TestCaseParser } from "../harness/harnessIO"; +import { CompilerOptions, ScriptTarget, ModuleKind } from "../compiler/types"; +import { removeFileExtension } from "../compiler/utilities"; +import { map } from "../compiler/core"; +import { normalizePath } from "../compiler/path"; + // In harness baselines, null is different than undefined. See `generateActual` in `harness.ts`. export class Test262BaselineRunner extends RunnerBase { private static readonly basePath = "internal/cases/test262"; @@ -8,10 +14,10 @@ namespace Harness { content: IO.readFile(Test262BaselineRunner.helpersFilePath)!, }; private static readonly testFileExtensionRegex = /\.js$/; - private static readonly options: ts.CompilerOptions = { + private static readonly options: CompilerOptions = { allowNonTsExtensions: true, - target: ts.ScriptTarget.Latest, - module: ts.ModuleKind.CommonJS + target: ScriptTarget.Latest, + module: ModuleKind.CommonJS }; private static readonly baselineOptions: Baseline.BaselineOptions = { Subfolder: "test262", @@ -34,7 +40,7 @@ namespace Harness { before(() => { const content = IO.readFile(filePath)!; - const testFilename = ts.removeFileExtension(filePath).replace(/\//g, "_") + ".test"; + const testFilename = removeFileExtension(filePath).replace(/\//g, "_") + ".test"; const testCaseContent = TestCaseParser.makeUnitsFromTest(content, testFilename); const inputFiles: Compiler.TestFile[] = testCaseContent.testUnitData.map(unit => { @@ -91,7 +97,7 @@ namespace Harness { public enumerateTestFiles() { // see also: `enumerateTestFiles` in tests/webTestServer.ts - return ts.map(this.enumerateFiles(Test262BaselineRunner.basePath, Test262BaselineRunner.testFileExtensionRegex, { recursive: true }), ts.normalizePath); + return map(this.enumerateFiles(Test262BaselineRunner.basePath, Test262BaselineRunner.testFileExtensionRegex, { recursive: true }), normalizePath); } public initializeTests() { @@ -107,4 +113,4 @@ namespace Harness { } } } -} \ No newline at end of file + diff --git a/src/testRunner/unittests/asserts.ts b/src/testRunner/unittests/asserts.ts index a0cde51a0f841..24bdc94381af2 100644 --- a/src/testRunner/unittests/asserts.ts +++ b/src/testRunner/unittests/asserts.ts @@ -1,4 +1,7 @@ -namespace ts { +import { assert } from "console"; +import { factory } from "../../../built/local/compiler"; +import { Debug } from "../../compiler/debug"; + describe("unittests:: assert", () => { it("deepEqual", () => { assert.throws(() => assert.deepEqual(factory.createNodeArray([factory.createIdentifier("A")]), factory.createNodeArray([factory.createIdentifier("B")]))); @@ -9,4 +12,4 @@ namespace ts { assert.throws(() => Debug.assertNever("hi" as never), "Debug Failure. Illegal value: \"hi\""); }); }); -} + diff --git a/src/testRunner/unittests/base64.ts b/src/testRunner/unittests/base64.ts index 1dc51a8fbf5ae..54e639e3f06ba 100644 --- a/src/testRunner/unittests/base64.ts +++ b/src/testRunner/unittests/base64.ts @@ -1,4 +1,6 @@ -namespace ts { +import { assert } from "console"; +import { base64decode, convertToBase64 } from "../../compiler/utilities"; + describe("unittests:: base64", () => { describe("base64decode", () => { it("can decode input strings correctly without needing a host implementation", () => { @@ -19,4 +21,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/builder.ts b/src/testRunner/unittests/builder.ts index bf0415f13598c..d3234d8fcae7d 100644 --- a/src/testRunner/unittests/builder.ts +++ b/src/testRunner/unittests/builder.ts @@ -1,4 +1,9 @@ -namespace ts { +import { NamedSourceText, SourceText, newProgram, ProgramWithSourceTexts, updateProgram, updateProgramText } from "./reuseProgramStructure"; +import { Program, CancellationToken, OperationCanceledException } from "../../compiler/types"; +import { BuilderProgramHost, EmitAndSemanticDiagnosticsBuilderProgram, createEmitAndSemanticDiagnosticsBuilderProgram } from "../../compiler/builderPublic"; +import { returnTrue } from "../../compiler/core"; +import { assert } from "console"; + describe("unittests:: builder", () => { it("emits dependent files", () => { const files: NamedSourceText[] = [ @@ -127,4 +132,4 @@ namespace ts { updateProgramText(files, fileName, fileContent); }); } -} + diff --git a/src/testRunner/unittests/comments.ts b/src/testRunner/unittests/comments.ts index 59f3020c112bc..2aec58c772ebd 100644 --- a/src/testRunner/unittests/comments.ts +++ b/src/testRunner/unittests/comments.ts @@ -1,4 +1,7 @@ -namespace ts { +import { getLeadingCommentRanges } from "../../compiler/scanner"; +import { assert } from "console"; +import { SyntaxKind } from "../../compiler/types"; + describe("comment parsing", () => { const withShebang = `#! node /** comment */ @@ -29,4 +32,4 @@ namespace ts { assert.strictEqual(result![0].kind, SyntaxKind.SingleLineCommentTrivia); }); }); -} + diff --git a/src/testRunner/unittests/compilerCore.ts b/src/testRunner/unittests/compilerCore.ts index 4c3918c3149f3..d85b64ecbbf9f 100644 --- a/src/testRunner/unittests/compilerCore.ts +++ b/src/testRunner/unittests/compilerCore.ts @@ -1,4 +1,6 @@ -namespace ts { +import { assert } from "console"; +import { equalOwnProperties } from "../../compiler/core"; + describe("unittests:: compilerCore", () => { describe("equalOwnProperties", () => { it("correctly equates objects", () => { @@ -30,4 +32,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/config/commandLineParsing.ts b/src/testRunner/unittests/config/commandLineParsing.ts index 97de804b5ab91..e0cdbec534388 100644 --- a/src/testRunner/unittests/config/commandLineParsing.ts +++ b/src/testRunner/unittests/config/commandLineParsing.ts @@ -1,4 +1,10 @@ -namespace ts { +import { ParsedCommandLine, ScriptTarget, ModuleKind, DiagnosticMessage, ModuleResolutionKind, WatchFileKind, WatchDirectoryKind, PollingWatchKind } from "../../../compiler/types"; +import { ParseCommandLineWorkerDiagnostics, parseCommandLineWorker, compilerOptionsDidYouMeanDiagnostics, createOptionNameMap, ParsedBuildCommand, parseBuildCommand } from "../../../../built/local/compiler"; +import { formatStringFromArgs } from "../../../compiler/utilities"; +import { createMapFromTemplate } from "../../../compiler/core"; +import { BuildOptions } from "../../../compiler/tsbuildPublic"; +import { assert } from "chai"; + describe("unittests:: config:: commandLineParsing:: parseCommandLine", () => { function assertParseResult(commandLine: string[], expectedParsedCommandLine: ParsedCommandLine, workerDiagnostic?: () => ParseCommandLineWorkerDiagnostics) { @@ -907,4 +913,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/config/configurationExtension.ts b/src/testRunner/unittests/config/configurationExtension.ts index ad906411ffbca..a7d9e1cae60e7 100644 --- a/src/testRunner/unittests/config/configurationExtension.ts +++ b/src/testRunner/unittests/config/configurationExtension.ts @@ -1,4 +1,10 @@ -namespace ts { +import { Diagnostic, DiagnosticCategory, CompilerOptions, ModuleKind } from "../../../compiler/types"; +import { assert } from "console"; +import { flattenDiagnosticMessageText } from "../../../compiler/program"; +import { forEach } from "../../../compiler/core"; +import { readConfigFile, parseJsonConfigFileContent, readJsonConfigFile, parseJsonSourceFileConfigFileContent } from "../../../../built/local/compiler"; +import { combinePaths } from "../../../compiler/path"; + function createFileSystem(ignoreCase: boolean, cwd: string, root: string) { return new vfs.FileSystem(ignoreCase, { cwd, @@ -351,4 +357,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts b/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts index d007ccf5f8482..c97130b1d9be2 100644 --- a/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts +++ b/src/testRunner/unittests/config/convertCompilerOptionsFromJson.ts @@ -1,4 +1,10 @@ -namespace ts { +import { FormatDiagnosticsHost, formatDiagnostic } from "../../../compiler/program"; +import { createGetCanonicalFileName } from "../../../compiler/core"; +import { CompilerOptions, Diagnostic, ParseConfigHost, ModuleKind, ScriptTarget } from "../../../compiler/types"; +import { convertCompilerOptionsFromJson, parseJsonSourceFileConfigFileContent } from "../../../../built/local/compiler"; +import { assert } from "console"; +import { parseJsonText } from "../../../compiler/parser"; + describe("unittests:: config:: convertCompilerOptionsFromJson", () => { const formatDiagnosticHost: FormatDiagnosticsHost = { getCurrentDirectory: () => "/apath/", @@ -591,7 +597,7 @@ namespace ts { <%_ } _%> ] } -} + `, "tsconfig.json", { @@ -604,4 +610,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts b/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts index e8ca5f15d69d9..a09a87b30f18b 100644 --- a/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts +++ b/src/testRunner/unittests/config/convertTypeAcquisitionFromJson.ts @@ -1,4 +1,9 @@ -namespace ts { +import { TypeAcquisition, Diagnostic, ParseConfigHost } from "../../../compiler/types"; +import { assert } from "console"; +import { convertTypeAcquisitionFromJson, parseJsonSourceFileConfigFileContent } from "../../../../built/local/compiler"; +import { parseJsonText } from "../../../compiler/parser"; +import { filter } from "../../../compiler/core"; + interface ExpectedResult { typeAcquisition: TypeAcquisition; errors: Diagnostic[]; } describe("unittests:: config:: convertTypeAcquisitionFromJson", () => { function assertTypeAcquisition(json: any, configFileName: string, expectedResult: ExpectedResult) { @@ -236,4 +241,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/config/initializeTSConfig.ts b/src/testRunner/unittests/config/initializeTSConfig.ts index f7fb7d2a4398b..256fb1735a6ac 100644 --- a/src/testRunner/unittests/config/initializeTSConfig.ts +++ b/src/testRunner/unittests/config/initializeTSConfig.ts @@ -1,4 +1,5 @@ -namespace ts { +import { parseCommandLine, generateTSConfig } from "../../../../built/local/compiler"; + describe("unittests:: config:: initTSConfig", () => { function initTSConfigCorrectly(name: string, commandLinesArgs: string[]) { describe(name, () => { @@ -30,4 +31,4 @@ namespace ts { initTSConfigCorrectly("Initialized TSConfig with advanced options", ["--init", "--declaration", "--declarationDir", "lib", "--skipLibCheck", "--noErrorTruncation"]); }); -} + diff --git a/src/testRunner/unittests/config/matchFiles.ts b/src/testRunner/unittests/config/matchFiles.ts index 915f73e036f33..40e1a9d7876ff 100644 --- a/src/testRunner/unittests/config/matchFiles.ts +++ b/src/testRunner/unittests/config/matchFiles.ts @@ -1,4 +1,9 @@ -namespace ts { +import { ParsedCommandLine, ParseConfigHost, CompilerOptions, Path, Diagnostic, DiagnosticMessage, SourceFile, SyntaxKind, WatchDirectoryFlags, JsxEmit } from "../../../compiler/types"; +import { assert } from "console"; +import { parseJsonText } from "../../../compiler/parser"; +import { parseJsonSourceFileConfigFileContent, parseJsonConfigFileContent } from "../../../../built/local/compiler"; +import { createFileDiagnostic, createCompilerDiagnostic } from "../../../compiler/utilities"; + const caseInsensitiveBasePath = "c:/dev/"; const caseInsensitiveTsconfigPath = "c:/dev/tsconfig.json"; const caseInsensitiveHost = new fakes.ParseConfigHost(new vfs.FileSystem(/*ignoreCase*/ true, { cwd: caseInsensitiveBasePath, files: { @@ -1539,4 +1544,4 @@ namespace ts { validateMatches(expected, json, host, caseInsensitiveBasePath); }); }); -} + diff --git a/src/testRunner/unittests/config/projectReferences.ts b/src/testRunner/unittests/config/projectReferences.ts index 6f9d3b3b24951..d28a4d9305d17 100644 --- a/src/testRunner/unittests/config/projectReferences.ts +++ b/src/testRunner/unittests/config/projectReferences.ts @@ -1,4 +1,10 @@ -namespace ts { +import { ProjectReference, CompilerOptions, Diagnostic, DiagnosticMessage, Program } from "../../../compiler/types"; +import { assert } from "console"; +import { combinePaths, getDirectoryPath } from "../../../compiler/path"; +import { createMap } from "../../../compiler/core"; +import { readConfigFile, parseJsonConfigFileContent } from "../../../../built/local/compiler"; +import { flattenDiagnosticMessageText, parseConfigHostFromCompilerHostLike, createProgram } from "../../../compiler/program"; + interface TestProjectSpecification { configFileName?: string; references?: readonly (string | ProjectReference)[]; @@ -349,4 +355,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/config/showConfig.ts b/src/testRunner/unittests/config/showConfig.ts index f8905e3412677..95070e30a1473 100644 --- a/src/testRunner/unittests/config/showConfig.ts +++ b/src/testRunner/unittests/config/showConfig.ts @@ -1,4 +1,10 @@ -namespace ts { +import { combinePaths, comparePaths, getNormalizedAbsolutePath } from "../../../compiler/path"; +import { ParseConfigFileHost, parseCommandLine, getParsedCommandLineOfConfigFile, convertToTSConfig, optionDeclarations, optionsForWatch } from "../../../../built/local/compiler"; +import { Comparison } from "../../../compiler/corePublic"; +import { flattenDiagnosticMessageText } from "../../../compiler/program"; +import { CommandLineOption } from "../../../compiler/types"; +import { Debug } from "../../../compiler/debug"; + describe("unittests:: config:: showConfig", () => { function showTSConfigCorrectly(name: string, commandLinesArgs: string[], configJson?: object) { describe(name, () => { @@ -190,4 +196,4 @@ namespace ts { showTSConfigCorrectly(`Shows tsconfig for single option/${option.name}`, args, configObject); } }); -} + diff --git a/src/testRunner/unittests/config/tsconfigParsing.ts b/src/testRunner/unittests/config/tsconfigParsing.ts index 5e15bbc6e9f82..769e2e6f23e62 100644 --- a/src/testRunner/unittests/config/tsconfigParsing.ts +++ b/src/testRunner/unittests/config/tsconfigParsing.ts @@ -1,4 +1,11 @@ -namespace ts { +import { Diagnostic, ParseConfigHost } from "../../../compiler/types"; +import { parseConfigFileTextToJson, parseJsonConfigFileContent, parseJsonSourceFileConfigFileContent, convertToObject } from "../../../../built/local/compiler"; +import { assert } from "console"; +import { sys } from "../../../compiler/sys"; +import { parseJsonText } from "../../../compiler/parser"; +import { arrayIsEqualTo } from "../../../compiler/core"; +import { createCompilerDiagnostic } from "../../../compiler/utilities"; + describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", () => { function assertParseResult(jsonText: string, expectedConfigObject: { config?: any; error?: Diagnostic[] }) { const parsed = parseConfigFileTextToJson("/apath/tsconfig.json", jsonText); @@ -382,4 +389,4 @@ namespace ts { assert.isTrue(parsed.errors.length >= 0); }); }); -} + diff --git a/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts b/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts index 83e224e492527..c8df53578c7ed 100644 --- a/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts +++ b/src/testRunner/unittests/config/tsconfigParsingWatchOptions.ts @@ -1,4 +1,8 @@ -namespace ts { +import { WatchOptions, WatchFileKind, WatchDirectoryKind, PollingWatchKind } from "../../../compiler/types"; +import { parseJsonConfigFileContent, parseJsonSourceFileConfigFileContent } from "../../../../built/local/compiler"; +import { parseJsonText } from "../../../compiler/parser"; +import { assert } from "console"; + describe("unittests:: config:: tsconfigParsingWatchOptions:: parseConfigFileTextToJson", () => { function createParseConfigHost(additionalFiles?: vfs.FileSet) { return new fakes.ParseConfigHost( @@ -175,4 +179,4 @@ namespace ts { ]); }); }); -} + diff --git a/src/testRunner/unittests/convertToBase64.ts b/src/testRunner/unittests/convertToBase64.ts index 37e38da8da7dc..95baf9b4b0059 100644 --- a/src/testRunner/unittests/convertToBase64.ts +++ b/src/testRunner/unittests/convertToBase64.ts @@ -1,4 +1,7 @@ -namespace ts { +import { convertToBase64 } from "../../compiler/utilities"; +import { sys } from "../../compiler/sys"; +import { assert } from "console"; + describe("unittests:: convertToBase64", () => { function runTest(input: string): void { const actual = convertToBase64(input); @@ -30,4 +33,4 @@ console.log(x);`); }); } }); -} + diff --git a/src/testRunner/unittests/createMapShim.ts b/src/testRunner/unittests/createMapShim.ts index 039372ab2746c..9e200fdc235a2 100644 --- a/src/testRunner/unittests/createMapShim.ts +++ b/src/testRunner/unittests/createMapShim.ts @@ -1,4 +1,7 @@ -namespace ts { +import { ShimCollections } from "../../../built/local/shims"; +import { createMap, arrayFrom } from "../../compiler/core"; +import { assert } from "console"; + describe("unittests:: createMapShim", () => { const stringKeys = [ @@ -124,9 +127,9 @@ namespace ts { I extends undefined ? undefined : never>; function getIterator(iterable: readonly any[] | ReadonlySet | ReadonlyMap | undefined): Iterator | undefined { - // override `ts.getIterator` with a version that allows us to iterate over a `MapShim` in an environment with a native `Map`. + // override `getIterator` with a version that allows us to iterate over a `MapShim` in an environment with a native `Map`. if (iterable instanceof MapShim) return iterable.entries(); - return ts.getIterator(iterable); + return getIterator(iterable); } MapShim = ShimCollections.createMapShim(getIterator); @@ -323,4 +326,4 @@ namespace ts { assert.deepEqual(actual, [["c", "d"], ["a", "b"]]); }); }); -} + diff --git a/src/testRunner/unittests/createSetShim.ts b/src/testRunner/unittests/createSetShim.ts index 2efdf850efb81..570a634d9ade3 100644 --- a/src/testRunner/unittests/createSetShim.ts +++ b/src/testRunner/unittests/createSetShim.ts @@ -1,4 +1,7 @@ -namespace ts { +import { ShimCollections } from "../../../built/local/shims"; +import { assert } from "console"; +import { arrayFrom } from "../../compiler/core"; + describe("unittests:: createSetShim", () => { const stringKeys = [ "1", @@ -122,9 +125,9 @@ namespace ts { I extends undefined ? undefined : never>; function getIterator(iterable: readonly any[] | ReadonlySet | ReadonlyMap | undefined): Iterator | undefined { - // override `ts.getIterator` with a version that allows us to iterate over a `SetShim` in an environment with a native `Set`. + // override `getIterator` with a version that allows us to iterate over a `SetShim` in an environment with a native `Set`. if (iterable instanceof SetShim) return iterable.values(); - return ts.getIterator(iterable); + return getIterator(iterable); } SetShim = ShimCollections.createSetShim(getIterator); @@ -306,4 +309,4 @@ namespace ts { assert.deepEqual(actual, [["c", "c"], ["a", "a"]]); }); }); -} + diff --git a/src/testRunner/unittests/customTransforms.ts b/src/testRunner/unittests/customTransforms.ts index f346ea47dd658..30cb8133d0c58 100644 --- a/src/testRunner/unittests/customTransforms.ts +++ b/src/testRunner/unittests/customTransforms.ts @@ -1,4 +1,11 @@ -namespace ts { +import { CustomTransformers, CompilerOptions, ScriptTarget, CompilerHost, NewLineKind, TransformerFactory, SourceFile, Node, VisitResult, SyntaxKind, FunctionDeclaration, VariableStatement, ModuleKind, Transformer } from "../../compiler/types"; +import { createSourceFile } from "../../compiler/parser"; +import { arrayToMap, createMap, arrayFrom, map } from "../../compiler/core"; +import { createProgram } from "../../compiler/program"; +import { visitEachChild, visitNode } from "../../compiler/visitorPublic"; +import { addSyntheticLeadingComment, isStringLiteral, factory, setSourceMapRange, isIdentifier, createSourceMapSource } from "../../../built/local/compiler"; +import { computeLineStarts, computeLineAndCharacterOfPosition } from "../../compiler/scanner"; + describe("unittests:: customTransforms", () => { function emitsCorrectly(name: string, sources: { file: string, text: string }[], customTransformers: CustomTransformers, options: CompilerOptions = {}) { it(name, () => { @@ -165,4 +172,4 @@ namespace ts { ); }); -} + diff --git a/src/testRunner/unittests/debugDeprecation.ts b/src/testRunner/unittests/debugDeprecation.ts index 79f2f557ebe83..ac6ddea82e6d5 100644 --- a/src/testRunner/unittests/debugDeprecation.ts +++ b/src/testRunner/unittests/debugDeprecation.ts @@ -1,4 +1,8 @@ -namespace ts { +import { Debug } from "../../compiler/debug"; +import { noop } from "../../compiler/core"; +import { assert } from "console"; +import { expect } from "chai"; + describe("unittests:: debugDeprecation", () => { beforeEach(() => { const loggingHost = Debug.loggingHost; @@ -68,4 +72,4 @@ namespace ts { }); }); }); -} \ No newline at end of file + diff --git a/src/testRunner/unittests/evaluation/asyncGenerator.ts b/src/testRunner/unittests/evaluation/asyncGenerator.ts index 8ca531f0759a1..7d0322899aa70 100644 --- a/src/testRunner/unittests/evaluation/asyncGenerator.ts +++ b/src/testRunner/unittests/evaluation/asyncGenerator.ts @@ -1,3 +1,6 @@ +import { assert } from "console"; +import { ScriptTarget } from "../../../compiler/types"; + describe("unittests:: evaluation:: asyncGeneratorEvaluation", () => { it("return (es5)", async () => { const result = evaluator.evaluateTypeScript(` @@ -21,7 +24,7 @@ describe("unittests:: evaluation:: asyncGeneratorEvaluation", () => { export const output: any[] = []; export async function main() { output.push(await g().next()); - }`, { target: ts.ScriptTarget.ES2015 }); + }`, { target: ScriptTarget.ES2015 }); await result.main(); assert.deepEqual(result.output, [ { value: 0, done: true } diff --git a/src/testRunner/unittests/evaluation/awaiter.ts b/src/testRunner/unittests/evaluation/awaiter.ts index 65cb4e0ead945..bf39c8cd02901 100644 --- a/src/testRunner/unittests/evaluation/awaiter.ts +++ b/src/testRunner/unittests/evaluation/awaiter.ts @@ -1,3 +1,5 @@ +import { assert } from "console"; + describe("unittests:: evaluation:: awaiter", () => { // NOTE: This could break if the ECMAScript spec ever changes the timing behavior for Promises (again) it("await (es5)", async () => { diff --git a/src/testRunner/unittests/evaluation/forAwaitOf.ts b/src/testRunner/unittests/evaluation/forAwaitOf.ts index c7be018cbc9e6..a84a815865e3f 100644 --- a/src/testRunner/unittests/evaluation/forAwaitOf.ts +++ b/src/testRunner/unittests/evaluation/forAwaitOf.ts @@ -1,3 +1,6 @@ +import { assert } from "console"; +import { ScriptTarget } from "../../../compiler/types"; + describe("unittests:: evaluation:: forAwaitOfEvaluation", () => { it("sync (es5)", async () => { const result = evaluator.evaluateTypeScript(` @@ -44,7 +47,7 @@ describe("unittests:: evaluation:: forAwaitOfEvaluation", () => { for await (const item of iterator) { output.push(item); } - }`, { target: ts.ScriptTarget.ES2015 }); + }`, { target: ScriptTarget.ES2015 }); await result.main(); assert.strictEqual(result.output[0], 1); assert.strictEqual(result.output[1], 2); @@ -96,7 +99,7 @@ describe("unittests:: evaluation:: forAwaitOfEvaluation", () => { for await (const item of iterator) { output.push(item); } - }`, { target: ts.ScriptTarget.ES2015 }); + }`, { target: ScriptTarget.ES2015 }); await result.main(); assert.strictEqual(result.output[0], 1); assert.instanceOf(result.output[1], Promise); diff --git a/src/testRunner/unittests/evaluation/forOf.ts b/src/testRunner/unittests/evaluation/forOf.ts index 9efdf16d351cd..aebc3072b89d3 100644 --- a/src/testRunner/unittests/evaluation/forOf.ts +++ b/src/testRunner/unittests/evaluation/forOf.ts @@ -1,3 +1,6 @@ +import { ScriptTarget } from "../../../compiler/types"; +import { assert } from "console"; + describe("unittests:: evaluation:: forOfEvaluation", () => { it("es5 over a array with no Symbol", () => { const result = evaluator.evaluateTypeScript(` @@ -10,7 +13,7 @@ describe("unittests:: evaluation:: forOfEvaluation", () => { output.push(value); } } - `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); + `, { downlevelIteration: true, target: ScriptTarget.ES5 }); result.main(); @@ -31,7 +34,7 @@ describe("unittests:: evaluation:: forOfEvaluation", () => { output.push(value); } } - `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); + `, { downlevelIteration: true, target: ScriptTarget.ES5 }); result.main(); @@ -51,7 +54,7 @@ describe("unittests:: evaluation:: forOfEvaluation", () => { for (let value of x) { } } - `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); + `, { downlevelIteration: true, target: ScriptTarget.ES5 }); assert.throws(() => result.main(), "Symbol.iterator is not defined"); }); @@ -64,7 +67,7 @@ describe("unittests:: evaluation:: forOfEvaluation", () => { for (let value of x) { } } - `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); + `, { downlevelIteration: true, target: ScriptTarget.ES5 }); assert.throws(() => result.main(), /cannot read property.*Symbol\(Symbol\.iterator\).*/i); }); @@ -78,7 +81,7 @@ describe("unittests:: evaluation:: forOfEvaluation", () => { for (let value of x) { } } - `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); + `, { downlevelIteration: true, target: ScriptTarget.ES5 }); assert.throws(() => result.main(), "Symbol.iterator is not defined"); }); @@ -91,7 +94,7 @@ describe("unittests:: evaluation:: forOfEvaluation", () => { for (let value of x) { } } - `, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); + `, { downlevelIteration: true, target: ScriptTarget.ES5 }); assert.throws(() => result.main(), "Object is not iterable"); }); @@ -111,9 +114,9 @@ describe("unittests:: evaluation:: forOfEvaluation", () => { output.push(value) } - }`, { downlevelIteration: true, target: ts.ScriptTarget.ES5 }); + }`, { downlevelIteration: true, target: ScriptTarget.ES5 }); result.main(); }); -}); \ No newline at end of file +}); diff --git a/src/testRunner/unittests/evaluation/objectRest.ts b/src/testRunner/unittests/evaluation/objectRest.ts index 272ba51ffbeb5..cef06fcd55328 100644 --- a/src/testRunner/unittests/evaluation/objectRest.ts +++ b/src/testRunner/unittests/evaluation/objectRest.ts @@ -1,3 +1,5 @@ +import { assert } from "console"; + describe("unittests:: evaluation:: objectRest", () => { // https://github.com/microsoft/TypeScript/issues/31469 it("side effects in property assignment", async () => { diff --git a/src/testRunner/unittests/evaluation/optionalCall.ts b/src/testRunner/unittests/evaluation/optionalCall.ts index d6317ad0a8ca9..11d39270f1ad5 100644 --- a/src/testRunner/unittests/evaluation/optionalCall.ts +++ b/src/testRunner/unittests/evaluation/optionalCall.ts @@ -1,3 +1,5 @@ +import { assert } from "console"; + describe("unittests:: evaluation:: optionalCall", () => { it("f?.()", async () => { const result = evaluator.evaluateTypeScript(` diff --git a/src/testRunner/unittests/factory.ts b/src/testRunner/unittests/factory.ts index a413881c07d3e..89f8ee935d7d9 100644 --- a/src/testRunner/unittests/factory.ts +++ b/src/testRunner/unittests/factory.ts @@ -1,4 +1,8 @@ -namespace ts { +import { Node, SyntaxKind, Expression, ConciseBody, BinaryOperator } from "../../compiler/types"; +import { assert } from "console"; +import { Debug } from "../../compiler/debug"; +import { factory } from "../../../built/local/compiler"; + describe("unittests:: FactoryAPI", () => { function assertSyntaxKind(node: Node, expected: SyntaxKind) { assert.strictEqual(node.kind, expected, `Actual: ${Debug.formatSyntaxKind(node.kind)} Expected: ${Debug.formatSyntaxKind(expected)}`); @@ -83,4 +87,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/incrementalParser.ts b/src/testRunner/unittests/incrementalParser.ts index 07be24b4b5b4a..ed60ec87bb4cf 100644 --- a/src/testRunner/unittests/incrementalParser.ts +++ b/src/testRunner/unittests/incrementalParser.ts @@ -1,4 +1,13 @@ -namespace ts { +import { IScriptSnapshot, ScriptSnapshot } from "../../services/types"; +import { TextChangeRange, ScriptTarget, SourceFile, Node } from "../../compiler/types"; +import { getSnapshotText } from "../../services/utilities"; +import { createTextChangeRange, createTextSpan } from "../../../built/local/compiler"; +import { createLanguageServiceSourceFile, updateLanguageServiceSourceFile } from "../../services/services"; +import { assert } from "console"; +import { filter, contains } from "../../compiler/core"; +import { forEachChild } from "../../compiler/parser"; +import { bindSourceFile } from "../../compiler/binder"; + function withChange(text: IScriptSnapshot, start: number, length: number, newText: string): { text: IScriptSnapshot; textChangeRange: TextChangeRange; } { const contents = getSnapshotText(text); const newContents = contents.substr(0, start) + newText + contents.substring(start + length); @@ -990,4 +999,4 @@ module m3 { }\ }); } }); -} + diff --git a/src/testRunner/unittests/jsDocParsing.ts b/src/testRunner/unittests/jsDocParsing.ts index 0af076df7622b..362c99d63f9b0 100644 --- a/src/testRunner/unittests/jsDocParsing.ts +++ b/src/testRunner/unittests/jsDocParsing.ts @@ -1,4 +1,8 @@ -namespace ts { +import { parseJSDocTypeExpressionForTests, parseIsolatedJSDocComment, createSourceFile } from "../../compiler/parser"; +import { assert } from "console"; +import { Debug } from "../../compiler/debug"; +import { ScriptTarget, SyntaxKind } from "../../compiler/types"; + describe("unittests:: JSDocParsing", () => { describe("TypeExpressions", () => { function parsesCorrectly(name: string, content: string) { @@ -347,4 +351,4 @@ namespace ts { root.statements[0].getStart(root, /*includeJsdocComment*/ true); }); }); -} + diff --git a/src/testRunner/unittests/moduleResolution.ts b/src/testRunner/unittests/moduleResolution.ts index bd4e888c28453..1bf4cd8376df7 100644 --- a/src/testRunner/unittests/moduleResolution.ts +++ b/src/testRunner/unittests/moduleResolution.ts @@ -1,4 +1,12 @@ -namespace ts { +import { ResolvedModuleFull, ResolvedModuleWithFailedLookupLocations, ModuleResolutionHost, Extension, CompilerOptions, ModuleResolutionKind, ModuleKind, CompilerHost, ScriptTarget, SourceFile, Program, Diagnostic, JsxEmit, StructureIsReused } from "../../compiler/types"; +import { assert } from "console"; +import { extensionFromPath, supportedTSExtensions } from "../../compiler/utilities"; +import { createMap, notImplemented, createMapFromTemplate, createGetCanonicalFileName, neverArray, map, arrayToMap } from "../../compiler/core"; +import { getDirectoryPath, normalizePath, getRootLength, combinePaths } from "../../compiler/path"; +import { nodeModuleNameResolver, createModuleResolutionCache, resolveModuleName, sortAndDeduplicateDiagnostics, resolveTypeReferenceDirective } from "../../../built/local/compiler"; +import { createSourceFile } from "../../compiler/parser"; +import { createProgram } from "../../compiler/program"; + export function checkResolvedModule(actual: ResolvedModuleFull | undefined, expected: ResolvedModuleFull | undefined): boolean { if (!expected) { if (actual) { @@ -590,7 +598,7 @@ export = C; "/a/b", /*useCaseSensitiveFileNames*/ false, ["c.ts", "/a/b/d.ts"], - () => emptyArray + () => neverArray ); }); @@ -793,7 +801,7 @@ import b = require("./moduleB"); "/a/B/c", /*useCaseSensitiveFileNames*/ false, ["moduleD.ts"], - () => emptyArray + () => neverArray ); }); @@ -809,7 +817,7 @@ import b = require("./moduleB"); "d:/someFolder", /*useCaseSensitiveFileNames*/ false, ["d:/someFolder/moduleA.ts", "d:/someFolder/moduleB.ts"], - () => emptyArray + () => neverArray ); }); }); @@ -1465,4 +1473,4 @@ import b = require("./moduleB"); }); }); }); -} + diff --git a/src/testRunner/unittests/parsePseudoBigInt.ts b/src/testRunner/unittests/parsePseudoBigInt.ts index db1a841dc2b74..68e6c5b2c35d7 100644 --- a/src/testRunner/unittests/parsePseudoBigInt.ts +++ b/src/testRunner/unittests/parsePseudoBigInt.ts @@ -1,4 +1,6 @@ -namespace ts { +import { assert } from "console"; +import { parsePseudoBigInt } from "../../compiler/utilities"; + describe("unittests:: BigInt literal base conversions", () => { describe("parsePseudoBigInt", () => { const testNumbers: number[] = []; @@ -68,4 +70,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/paths.ts b/src/testRunner/unittests/paths.ts index cf2bde3acbee2..b5d9200bf9c0f 100644 --- a/src/testRunner/unittests/paths.ts +++ b/src/testRunner/unittests/paths.ts @@ -1,309 +1,313 @@ +import { assert } from "console"; +import { normalizeSlashes, getRootLength, isUrl, isRootedDiskPath, getDirectoryPath, getBaseFileName, getAnyExtensionFromPath, getPathComponents, reducePathComponents, combinePaths, resolvePath, getRelativePathFromDirectory } from "../../compiler/path"; +import { toFileNameLowerCase } from "../../compiler/core"; + describe("unittests:: core paths", () => { it("normalizeSlashes", () => { - assert.strictEqual(ts.normalizeSlashes("a"), "a"); - assert.strictEqual(ts.normalizeSlashes("a/b"), "a/b"); - assert.strictEqual(ts.normalizeSlashes("a\\b"), "a/b"); - assert.strictEqual(ts.normalizeSlashes("\\\\server\\path"), "//server/path"); + assert.strictEqual(normalizeSlashes("a"), "a"); + assert.strictEqual(normalizeSlashes("a/b"), "a/b"); + assert.strictEqual(normalizeSlashes("a\\b"), "a/b"); + assert.strictEqual(normalizeSlashes("\\\\server\\path"), "//server/path"); }); it("getRootLength", () => { - assert.strictEqual(ts.getRootLength("a"), 0); - assert.strictEqual(ts.getRootLength("/"), 1); - assert.strictEqual(ts.getRootLength("/path"), 1); - assert.strictEqual(ts.getRootLength("c:"), 2); - assert.strictEqual(ts.getRootLength("c:d"), 0); - assert.strictEqual(ts.getRootLength("c:/"), 3); - assert.strictEqual(ts.getRootLength("c:\\"), 3); - assert.strictEqual(ts.getRootLength("//server"), 8); - assert.strictEqual(ts.getRootLength("//server/share"), 9); - assert.strictEqual(ts.getRootLength("\\\\server"), 8); - assert.strictEqual(ts.getRootLength("\\\\server\\share"), 9); - assert.strictEqual(ts.getRootLength("file:///"), 8); - assert.strictEqual(ts.getRootLength("file:///path"), 8); - assert.strictEqual(ts.getRootLength("file:///c:"), 10); - assert.strictEqual(ts.getRootLength("file:///c:d"), 8); - assert.strictEqual(ts.getRootLength("file:///c:/path"), 11); - assert.strictEqual(ts.getRootLength("file:///c%3a"), 12); - assert.strictEqual(ts.getRootLength("file:///c%3ad"), 8); - assert.strictEqual(ts.getRootLength("file:///c%3a/path"), 13); - assert.strictEqual(ts.getRootLength("file:///c%3A"), 12); - assert.strictEqual(ts.getRootLength("file:///c%3Ad"), 8); - assert.strictEqual(ts.getRootLength("file:///c%3A/path"), 13); - assert.strictEqual(ts.getRootLength("file://localhost"), 16); - assert.strictEqual(ts.getRootLength("file://localhost/"), 17); - assert.strictEqual(ts.getRootLength("file://localhost/path"), 17); - assert.strictEqual(ts.getRootLength("file://localhost/c:"), 19); - assert.strictEqual(ts.getRootLength("file://localhost/c:d"), 17); - assert.strictEqual(ts.getRootLength("file://localhost/c:/path"), 20); - assert.strictEqual(ts.getRootLength("file://localhost/c%3a"), 21); - assert.strictEqual(ts.getRootLength("file://localhost/c%3ad"), 17); - assert.strictEqual(ts.getRootLength("file://localhost/c%3a/path"), 22); - assert.strictEqual(ts.getRootLength("file://localhost/c%3A"), 21); - assert.strictEqual(ts.getRootLength("file://localhost/c%3Ad"), 17); - assert.strictEqual(ts.getRootLength("file://localhost/c%3A/path"), 22); - assert.strictEqual(ts.getRootLength("file://server"), 13); - assert.strictEqual(ts.getRootLength("file://server/"), 14); - assert.strictEqual(ts.getRootLength("file://server/path"), 14); - assert.strictEqual(ts.getRootLength("file://server/c:"), 14); - assert.strictEqual(ts.getRootLength("file://server/c:d"), 14); - assert.strictEqual(ts.getRootLength("file://server/c:/d"), 14); - assert.strictEqual(ts.getRootLength("file://server/c%3a"), 14); - assert.strictEqual(ts.getRootLength("file://server/c%3ad"), 14); - assert.strictEqual(ts.getRootLength("file://server/c%3a/d"), 14); - assert.strictEqual(ts.getRootLength("file://server/c%3A"), 14); - assert.strictEqual(ts.getRootLength("file://server/c%3Ad"), 14); - assert.strictEqual(ts.getRootLength("file://server/c%3A/d"), 14); - assert.strictEqual(ts.getRootLength("http://server"), 13); - assert.strictEqual(ts.getRootLength("http://server/path"), 14); + assert.strictEqual(getRootLength("a"), 0); + assert.strictEqual(getRootLength("/"), 1); + assert.strictEqual(getRootLength("/path"), 1); + assert.strictEqual(getRootLength("c:"), 2); + assert.strictEqual(getRootLength("c:d"), 0); + assert.strictEqual(getRootLength("c:/"), 3); + assert.strictEqual(getRootLength("c:\\"), 3); + assert.strictEqual(getRootLength("//server"), 8); + assert.strictEqual(getRootLength("//server/share"), 9); + assert.strictEqual(getRootLength("\\\\server"), 8); + assert.strictEqual(getRootLength("\\\\server\\share"), 9); + assert.strictEqual(getRootLength("file:///"), 8); + assert.strictEqual(getRootLength("file:///path"), 8); + assert.strictEqual(getRootLength("file:///c:"), 10); + assert.strictEqual(getRootLength("file:///c:d"), 8); + assert.strictEqual(getRootLength("file:///c:/path"), 11); + assert.strictEqual(getRootLength("file:///c%3a"), 12); + assert.strictEqual(getRootLength("file:///c%3ad"), 8); + assert.strictEqual(getRootLength("file:///c%3a/path"), 13); + assert.strictEqual(getRootLength("file:///c%3A"), 12); + assert.strictEqual(getRootLength("file:///c%3Ad"), 8); + assert.strictEqual(getRootLength("file:///c%3A/path"), 13); + assert.strictEqual(getRootLength("file://localhost"), 16); + assert.strictEqual(getRootLength("file://localhost/"), 17); + assert.strictEqual(getRootLength("file://localhost/path"), 17); + assert.strictEqual(getRootLength("file://localhost/c:"), 19); + assert.strictEqual(getRootLength("file://localhost/c:d"), 17); + assert.strictEqual(getRootLength("file://localhost/c:/path"), 20); + assert.strictEqual(getRootLength("file://localhost/c%3a"), 21); + assert.strictEqual(getRootLength("file://localhost/c%3ad"), 17); + assert.strictEqual(getRootLength("file://localhost/c%3a/path"), 22); + assert.strictEqual(getRootLength("file://localhost/c%3A"), 21); + assert.strictEqual(getRootLength("file://localhost/c%3Ad"), 17); + assert.strictEqual(getRootLength("file://localhost/c%3A/path"), 22); + assert.strictEqual(getRootLength("file://server"), 13); + assert.strictEqual(getRootLength("file://server/"), 14); + assert.strictEqual(getRootLength("file://server/path"), 14); + assert.strictEqual(getRootLength("file://server/c:"), 14); + assert.strictEqual(getRootLength("file://server/c:d"), 14); + assert.strictEqual(getRootLength("file://server/c:/d"), 14); + assert.strictEqual(getRootLength("file://server/c%3a"), 14); + assert.strictEqual(getRootLength("file://server/c%3ad"), 14); + assert.strictEqual(getRootLength("file://server/c%3a/d"), 14); + assert.strictEqual(getRootLength("file://server/c%3A"), 14); + assert.strictEqual(getRootLength("file://server/c%3Ad"), 14); + assert.strictEqual(getRootLength("file://server/c%3A/d"), 14); + assert.strictEqual(getRootLength("http://server"), 13); + assert.strictEqual(getRootLength("http://server/path"), 14); }); it("isUrl", () => { - assert.isFalse(ts.isUrl("a")); - assert.isFalse(ts.isUrl("/")); - assert.isFalse(ts.isUrl("c:")); - assert.isFalse(ts.isUrl("c:d")); - assert.isFalse(ts.isUrl("c:/")); - assert.isFalse(ts.isUrl("c:\\")); - assert.isFalse(ts.isUrl("//server")); - assert.isFalse(ts.isUrl("//server/share")); - assert.isFalse(ts.isUrl("\\\\server")); - assert.isFalse(ts.isUrl("\\\\server\\share")); - assert.isTrue(ts.isUrl("file:///path")); - assert.isTrue(ts.isUrl("file:///c:")); - assert.isTrue(ts.isUrl("file:///c:d")); - assert.isTrue(ts.isUrl("file:///c:/path")); - assert.isTrue(ts.isUrl("file://server")); - assert.isTrue(ts.isUrl("file://server/path")); - assert.isTrue(ts.isUrl("http://server")); - assert.isTrue(ts.isUrl("http://server/path")); + assert.isFalse(isUrl("a")); + assert.isFalse(isUrl("/")); + assert.isFalse(isUrl("c:")); + assert.isFalse(isUrl("c:d")); + assert.isFalse(isUrl("c:/")); + assert.isFalse(isUrl("c:\\")); + assert.isFalse(isUrl("//server")); + assert.isFalse(isUrl("//server/share")); + assert.isFalse(isUrl("\\\\server")); + assert.isFalse(isUrl("\\\\server\\share")); + assert.isTrue(isUrl("file:///path")); + assert.isTrue(isUrl("file:///c:")); + assert.isTrue(isUrl("file:///c:d")); + assert.isTrue(isUrl("file:///c:/path")); + assert.isTrue(isUrl("file://server")); + assert.isTrue(isUrl("file://server/path")); + assert.isTrue(isUrl("http://server")); + assert.isTrue(isUrl("http://server/path")); }); it("isRootedDiskPath", () => { - assert.isFalse(ts.isRootedDiskPath("a")); - assert.isTrue(ts.isRootedDiskPath("/")); - assert.isTrue(ts.isRootedDiskPath("c:")); - assert.isFalse(ts.isRootedDiskPath("c:d")); - assert.isTrue(ts.isRootedDiskPath("c:/")); - assert.isTrue(ts.isRootedDiskPath("c:\\")); - assert.isTrue(ts.isRootedDiskPath("//server")); - assert.isTrue(ts.isRootedDiskPath("//server/share")); - assert.isTrue(ts.isRootedDiskPath("\\\\server")); - assert.isTrue(ts.isRootedDiskPath("\\\\server\\share")); - assert.isFalse(ts.isRootedDiskPath("file:///path")); - assert.isFalse(ts.isRootedDiskPath("file:///c:")); - assert.isFalse(ts.isRootedDiskPath("file:///c:d")); - assert.isFalse(ts.isRootedDiskPath("file:///c:/path")); - assert.isFalse(ts.isRootedDiskPath("file://server")); - assert.isFalse(ts.isRootedDiskPath("file://server/path")); - assert.isFalse(ts.isRootedDiskPath("http://server")); - assert.isFalse(ts.isRootedDiskPath("http://server/path")); + assert.isFalse(isRootedDiskPath("a")); + assert.isTrue(isRootedDiskPath("/")); + assert.isTrue(isRootedDiskPath("c:")); + assert.isFalse(isRootedDiskPath("c:d")); + assert.isTrue(isRootedDiskPath("c:/")); + assert.isTrue(isRootedDiskPath("c:\\")); + assert.isTrue(isRootedDiskPath("//server")); + assert.isTrue(isRootedDiskPath("//server/share")); + assert.isTrue(isRootedDiskPath("\\\\server")); + assert.isTrue(isRootedDiskPath("\\\\server\\share")); + assert.isFalse(isRootedDiskPath("file:///path")); + assert.isFalse(isRootedDiskPath("file:///c:")); + assert.isFalse(isRootedDiskPath("file:///c:d")); + assert.isFalse(isRootedDiskPath("file:///c:/path")); + assert.isFalse(isRootedDiskPath("file://server")); + assert.isFalse(isRootedDiskPath("file://server/path")); + assert.isFalse(isRootedDiskPath("http://server")); + assert.isFalse(isRootedDiskPath("http://server/path")); }); it("getDirectoryPath", () => { - assert.strictEqual(ts.getDirectoryPath(""), ""); - assert.strictEqual(ts.getDirectoryPath("a"), ""); - assert.strictEqual(ts.getDirectoryPath("a/b"), "a"); - assert.strictEqual(ts.getDirectoryPath("/"), "/"); - assert.strictEqual(ts.getDirectoryPath("/a"), "/"); - assert.strictEqual(ts.getDirectoryPath("/a/"), "/"); - assert.strictEqual(ts.getDirectoryPath("/a/b"), "/a"); - assert.strictEqual(ts.getDirectoryPath("/a/b/"), "/a"); - assert.strictEqual(ts.getDirectoryPath("c:"), "c:"); - assert.strictEqual(ts.getDirectoryPath("c:d"), ""); - assert.strictEqual(ts.getDirectoryPath("c:/"), "c:/"); - assert.strictEqual(ts.getDirectoryPath("c:/path"), "c:/"); - assert.strictEqual(ts.getDirectoryPath("c:/path/"), "c:/"); - assert.strictEqual(ts.getDirectoryPath("//server"), "//server"); - assert.strictEqual(ts.getDirectoryPath("//server/"), "//server/"); - assert.strictEqual(ts.getDirectoryPath("//server/share"), "//server/"); - assert.strictEqual(ts.getDirectoryPath("//server/share/"), "//server/"); - assert.strictEqual(ts.getDirectoryPath("\\\\server"), "//server"); - assert.strictEqual(ts.getDirectoryPath("\\\\server\\"), "//server/"); - assert.strictEqual(ts.getDirectoryPath("\\\\server\\share"), "//server/"); - assert.strictEqual(ts.getDirectoryPath("\\\\server\\share\\"), "//server/"); - assert.strictEqual(ts.getDirectoryPath("file:///"), "file:///"); - assert.strictEqual(ts.getDirectoryPath("file:///path"), "file:///"); - assert.strictEqual(ts.getDirectoryPath("file:///path/"), "file:///"); - assert.strictEqual(ts.getDirectoryPath("file:///c:"), "file:///c:"); - assert.strictEqual(ts.getDirectoryPath("file:///c:d"), "file:///"); - assert.strictEqual(ts.getDirectoryPath("file:///c:/"), "file:///c:/"); - assert.strictEqual(ts.getDirectoryPath("file:///c:/path"), "file:///c:/"); - assert.strictEqual(ts.getDirectoryPath("file:///c:/path/"), "file:///c:/"); - assert.strictEqual(ts.getDirectoryPath("file://server"), "file://server"); - assert.strictEqual(ts.getDirectoryPath("file://server/"), "file://server/"); - assert.strictEqual(ts.getDirectoryPath("file://server/path"), "file://server/"); - assert.strictEqual(ts.getDirectoryPath("file://server/path/"), "file://server/"); - assert.strictEqual(ts.getDirectoryPath("http://server"), "http://server"); - assert.strictEqual(ts.getDirectoryPath("http://server/"), "http://server/"); - assert.strictEqual(ts.getDirectoryPath("http://server/path"), "http://server/"); - assert.strictEqual(ts.getDirectoryPath("http://server/path/"), "http://server/"); + assert.strictEqual(getDirectoryPath(""), ""); + assert.strictEqual(getDirectoryPath("a"), ""); + assert.strictEqual(getDirectoryPath("a/b"), "a"); + assert.strictEqual(getDirectoryPath("/"), "/"); + assert.strictEqual(getDirectoryPath("/a"), "/"); + assert.strictEqual(getDirectoryPath("/a/"), "/"); + assert.strictEqual(getDirectoryPath("/a/b"), "/a"); + assert.strictEqual(getDirectoryPath("/a/b/"), "/a"); + assert.strictEqual(getDirectoryPath("c:"), "c:"); + assert.strictEqual(getDirectoryPath("c:d"), ""); + assert.strictEqual(getDirectoryPath("c:/"), "c:/"); + assert.strictEqual(getDirectoryPath("c:/path"), "c:/"); + assert.strictEqual(getDirectoryPath("c:/path/"), "c:/"); + assert.strictEqual(getDirectoryPath("//server"), "//server"); + assert.strictEqual(getDirectoryPath("//server/"), "//server/"); + assert.strictEqual(getDirectoryPath("//server/share"), "//server/"); + assert.strictEqual(getDirectoryPath("//server/share/"), "//server/"); + assert.strictEqual(getDirectoryPath("\\\\server"), "//server"); + assert.strictEqual(getDirectoryPath("\\\\server\\"), "//server/"); + assert.strictEqual(getDirectoryPath("\\\\server\\share"), "//server/"); + assert.strictEqual(getDirectoryPath("\\\\server\\share\\"), "//server/"); + assert.strictEqual(getDirectoryPath("file:///"), "file:///"); + assert.strictEqual(getDirectoryPath("file:///path"), "file:///"); + assert.strictEqual(getDirectoryPath("file:///path/"), "file:///"); + assert.strictEqual(getDirectoryPath("file:///c:"), "file:///c:"); + assert.strictEqual(getDirectoryPath("file:///c:d"), "file:///"); + assert.strictEqual(getDirectoryPath("file:///c:/"), "file:///c:/"); + assert.strictEqual(getDirectoryPath("file:///c:/path"), "file:///c:/"); + assert.strictEqual(getDirectoryPath("file:///c:/path/"), "file:///c:/"); + assert.strictEqual(getDirectoryPath("file://server"), "file://server"); + assert.strictEqual(getDirectoryPath("file://server/"), "file://server/"); + assert.strictEqual(getDirectoryPath("file://server/path"), "file://server/"); + assert.strictEqual(getDirectoryPath("file://server/path/"), "file://server/"); + assert.strictEqual(getDirectoryPath("http://server"), "http://server"); + assert.strictEqual(getDirectoryPath("http://server/"), "http://server/"); + assert.strictEqual(getDirectoryPath("http://server/path"), "http://server/"); + assert.strictEqual(getDirectoryPath("http://server/path/"), "http://server/"); }); it("getBaseFileName", () => { - assert.strictEqual(ts.getBaseFileName(""), ""); - assert.strictEqual(ts.getBaseFileName("a"), "a"); - assert.strictEqual(ts.getBaseFileName("a/"), "a"); - assert.strictEqual(ts.getBaseFileName("/"), ""); - assert.strictEqual(ts.getBaseFileName("/a"), "a"); - assert.strictEqual(ts.getBaseFileName("/a/"), "a"); - assert.strictEqual(ts.getBaseFileName("/a/b"), "b"); - assert.strictEqual(ts.getBaseFileName("c:"), ""); - assert.strictEqual(ts.getBaseFileName("c:d"), "c:d"); - assert.strictEqual(ts.getBaseFileName("c:/"), ""); - assert.strictEqual(ts.getBaseFileName("c:\\"), ""); - assert.strictEqual(ts.getBaseFileName("c:/path"), "path"); - assert.strictEqual(ts.getBaseFileName("c:/path/"), "path"); - assert.strictEqual(ts.getBaseFileName("//server"), ""); - assert.strictEqual(ts.getBaseFileName("//server/"), ""); - assert.strictEqual(ts.getBaseFileName("//server/share"), "share"); - assert.strictEqual(ts.getBaseFileName("//server/share/"), "share"); - assert.strictEqual(ts.getBaseFileName("file:///"), ""); - assert.strictEqual(ts.getBaseFileName("file:///path"), "path"); - assert.strictEqual(ts.getBaseFileName("file:///path/"), "path"); - assert.strictEqual(ts.getBaseFileName("file:///c:"), ""); - assert.strictEqual(ts.getBaseFileName("file:///c:/"), ""); - assert.strictEqual(ts.getBaseFileName("file:///c:d"), "c:d"); - assert.strictEqual(ts.getBaseFileName("file:///c:/d"), "d"); - assert.strictEqual(ts.getBaseFileName("file:///c:/d/"), "d"); - assert.strictEqual(ts.getBaseFileName("http://server"), ""); - assert.strictEqual(ts.getBaseFileName("http://server/"), ""); - assert.strictEqual(ts.getBaseFileName("http://server/a"), "a"); - assert.strictEqual(ts.getBaseFileName("http://server/a/"), "a"); - assert.strictEqual(ts.getBaseFileName("/path/a.ext", ".ext", /*ignoreCase*/ false), "a"); - assert.strictEqual(ts.getBaseFileName("/path/a.ext", ".EXT", /*ignoreCase*/ true), "a"); - assert.strictEqual(ts.getBaseFileName("/path/a.ext", "ext", /*ignoreCase*/ false), "a"); - assert.strictEqual(ts.getBaseFileName("/path/a.b", ".ext", /*ignoreCase*/ false), "a.b"); - assert.strictEqual(ts.getBaseFileName("/path/a.b", [".b", ".c"], /*ignoreCase*/ false), "a"); - assert.strictEqual(ts.getBaseFileName("/path/a.c", [".b", ".c"], /*ignoreCase*/ false), "a"); - assert.strictEqual(ts.getBaseFileName("/path/a.d", [".b", ".c"], /*ignoreCase*/ false), "a.d"); + assert.strictEqual(getBaseFileName(""), ""); + assert.strictEqual(getBaseFileName("a"), "a"); + assert.strictEqual(getBaseFileName("a/"), "a"); + assert.strictEqual(getBaseFileName("/"), ""); + assert.strictEqual(getBaseFileName("/a"), "a"); + assert.strictEqual(getBaseFileName("/a/"), "a"); + assert.strictEqual(getBaseFileName("/a/b"), "b"); + assert.strictEqual(getBaseFileName("c:"), ""); + assert.strictEqual(getBaseFileName("c:d"), "c:d"); + assert.strictEqual(getBaseFileName("c:/"), ""); + assert.strictEqual(getBaseFileName("c:\\"), ""); + assert.strictEqual(getBaseFileName("c:/path"), "path"); + assert.strictEqual(getBaseFileName("c:/path/"), "path"); + assert.strictEqual(getBaseFileName("//server"), ""); + assert.strictEqual(getBaseFileName("//server/"), ""); + assert.strictEqual(getBaseFileName("//server/share"), "share"); + assert.strictEqual(getBaseFileName("//server/share/"), "share"); + assert.strictEqual(getBaseFileName("file:///"), ""); + assert.strictEqual(getBaseFileName("file:///path"), "path"); + assert.strictEqual(getBaseFileName("file:///path/"), "path"); + assert.strictEqual(getBaseFileName("file:///c:"), ""); + assert.strictEqual(getBaseFileName("file:///c:/"), ""); + assert.strictEqual(getBaseFileName("file:///c:d"), "c:d"); + assert.strictEqual(getBaseFileName("file:///c:/d"), "d"); + assert.strictEqual(getBaseFileName("file:///c:/d/"), "d"); + assert.strictEqual(getBaseFileName("http://server"), ""); + assert.strictEqual(getBaseFileName("http://server/"), ""); + assert.strictEqual(getBaseFileName("http://server/a"), "a"); + assert.strictEqual(getBaseFileName("http://server/a/"), "a"); + assert.strictEqual(getBaseFileName("/path/a.ext", ".ext", /*ignoreCase*/ false), "a"); + assert.strictEqual(getBaseFileName("/path/a.ext", ".EXT", /*ignoreCase*/ true), "a"); + assert.strictEqual(getBaseFileName("/path/a.ext", "ext", /*ignoreCase*/ false), "a"); + assert.strictEqual(getBaseFileName("/path/a.b", ".ext", /*ignoreCase*/ false), "a.b"); + assert.strictEqual(getBaseFileName("/path/a.b", [".b", ".c"], /*ignoreCase*/ false), "a"); + assert.strictEqual(getBaseFileName("/path/a.c", [".b", ".c"], /*ignoreCase*/ false), "a"); + assert.strictEqual(getBaseFileName("/path/a.d", [".b", ".c"], /*ignoreCase*/ false), "a.d"); }); it("getAnyExtensionFromPath", () => { - assert.strictEqual(ts.getAnyExtensionFromPath(""), ""); - assert.strictEqual(ts.getAnyExtensionFromPath(".ext"), ".ext"); - assert.strictEqual(ts.getAnyExtensionFromPath("a.ext"), ".ext"); - assert.strictEqual(ts.getAnyExtensionFromPath("/a.ext"), ".ext"); - assert.strictEqual(ts.getAnyExtensionFromPath("a.ext/"), ".ext"); - assert.strictEqual(ts.getAnyExtensionFromPath("a.ext", ".ext", /*ignoreCase*/ false), ".ext"); - assert.strictEqual(ts.getAnyExtensionFromPath("a.ext", ".EXT", /*ignoreCase*/ true), ".ext"); - assert.strictEqual(ts.getAnyExtensionFromPath("a.ext", "ext", /*ignoreCase*/ false), ".ext"); - assert.strictEqual(ts.getAnyExtensionFromPath("a.b", ".ext", /*ignoreCase*/ false), ""); - assert.strictEqual(ts.getAnyExtensionFromPath("a.b", [".b", ".c"], /*ignoreCase*/ false), ".b"); - assert.strictEqual(ts.getAnyExtensionFromPath("a.c", [".b", ".c"], /*ignoreCase*/ false), ".c"); - assert.strictEqual(ts.getAnyExtensionFromPath("a.d", [".b", ".c"], /*ignoreCase*/ false), ""); + assert.strictEqual(getAnyExtensionFromPath(""), ""); + assert.strictEqual(getAnyExtensionFromPath(".ext"), ".ext"); + assert.strictEqual(getAnyExtensionFromPath("a.ext"), ".ext"); + assert.strictEqual(getAnyExtensionFromPath("/a.ext"), ".ext"); + assert.strictEqual(getAnyExtensionFromPath("a.ext/"), ".ext"); + assert.strictEqual(getAnyExtensionFromPath("a.ext", ".ext", /*ignoreCase*/ false), ".ext"); + assert.strictEqual(getAnyExtensionFromPath("a.ext", ".EXT", /*ignoreCase*/ true), ".ext"); + assert.strictEqual(getAnyExtensionFromPath("a.ext", "ext", /*ignoreCase*/ false), ".ext"); + assert.strictEqual(getAnyExtensionFromPath("a.b", ".ext", /*ignoreCase*/ false), ""); + assert.strictEqual(getAnyExtensionFromPath("a.b", [".b", ".c"], /*ignoreCase*/ false), ".b"); + assert.strictEqual(getAnyExtensionFromPath("a.c", [".b", ".c"], /*ignoreCase*/ false), ".c"); + assert.strictEqual(getAnyExtensionFromPath("a.d", [".b", ".c"], /*ignoreCase*/ false), ""); }); it("getPathComponents", () => { - assert.deepEqual(ts.getPathComponents(""), [""]); - assert.deepEqual(ts.getPathComponents("a"), ["", "a"]); - assert.deepEqual(ts.getPathComponents("./a"), ["", ".", "a"]); - assert.deepEqual(ts.getPathComponents("/"), ["/"]); - assert.deepEqual(ts.getPathComponents("/a"), ["/", "a"]); - assert.deepEqual(ts.getPathComponents("/a/"), ["/", "a"]); - assert.deepEqual(ts.getPathComponents("c:"), ["c:"]); - assert.deepEqual(ts.getPathComponents("c:d"), ["", "c:d"]); - assert.deepEqual(ts.getPathComponents("c:/"), ["c:/"]); - assert.deepEqual(ts.getPathComponents("c:/path"), ["c:/", "path"]); - assert.deepEqual(ts.getPathComponents("//server"), ["//server"]); - assert.deepEqual(ts.getPathComponents("//server/"), ["//server/"]); - assert.deepEqual(ts.getPathComponents("//server/share"), ["//server/", "share"]); - assert.deepEqual(ts.getPathComponents("file:///"), ["file:///"]); - assert.deepEqual(ts.getPathComponents("file:///path"), ["file:///", "path"]); - assert.deepEqual(ts.getPathComponents("file:///c:"), ["file:///c:"]); - assert.deepEqual(ts.getPathComponents("file:///c:d"), ["file:///", "c:d"]); - assert.deepEqual(ts.getPathComponents("file:///c:/"), ["file:///c:/"]); - assert.deepEqual(ts.getPathComponents("file:///c:/path"), ["file:///c:/", "path"]); - assert.deepEqual(ts.getPathComponents("file://server"), ["file://server"]); - assert.deepEqual(ts.getPathComponents("file://server/"), ["file://server/"]); - assert.deepEqual(ts.getPathComponents("file://server/path"), ["file://server/", "path"]); - assert.deepEqual(ts.getPathComponents("http://server"), ["http://server"]); - assert.deepEqual(ts.getPathComponents("http://server/"), ["http://server/"]); - assert.deepEqual(ts.getPathComponents("http://server/path"), ["http://server/", "path"]); + assert.deepEqual(getPathComponents(""), [""]); + assert.deepEqual(getPathComponents("a"), ["", "a"]); + assert.deepEqual(getPathComponents("./a"), ["", ".", "a"]); + assert.deepEqual(getPathComponents("/"), ["/"]); + assert.deepEqual(getPathComponents("/a"), ["/", "a"]); + assert.deepEqual(getPathComponents("/a/"), ["/", "a"]); + assert.deepEqual(getPathComponents("c:"), ["c:"]); + assert.deepEqual(getPathComponents("c:d"), ["", "c:d"]); + assert.deepEqual(getPathComponents("c:/"), ["c:/"]); + assert.deepEqual(getPathComponents("c:/path"), ["c:/", "path"]); + assert.deepEqual(getPathComponents("//server"), ["//server"]); + assert.deepEqual(getPathComponents("//server/"), ["//server/"]); + assert.deepEqual(getPathComponents("//server/share"), ["//server/", "share"]); + assert.deepEqual(getPathComponents("file:///"), ["file:///"]); + assert.deepEqual(getPathComponents("file:///path"), ["file:///", "path"]); + assert.deepEqual(getPathComponents("file:///c:"), ["file:///c:"]); + assert.deepEqual(getPathComponents("file:///c:d"), ["file:///", "c:d"]); + assert.deepEqual(getPathComponents("file:///c:/"), ["file:///c:/"]); + assert.deepEqual(getPathComponents("file:///c:/path"), ["file:///c:/", "path"]); + assert.deepEqual(getPathComponents("file://server"), ["file://server"]); + assert.deepEqual(getPathComponents("file://server/"), ["file://server/"]); + assert.deepEqual(getPathComponents("file://server/path"), ["file://server/", "path"]); + assert.deepEqual(getPathComponents("http://server"), ["http://server"]); + assert.deepEqual(getPathComponents("http://server/"), ["http://server/"]); + assert.deepEqual(getPathComponents("http://server/path"), ["http://server/", "path"]); }); it("reducePathComponents", () => { - assert.deepEqual(ts.reducePathComponents([]), []); - assert.deepEqual(ts.reducePathComponents([""]), [""]); - assert.deepEqual(ts.reducePathComponents(["", "."]), [""]); - assert.deepEqual(ts.reducePathComponents(["", ".", "a"]), ["", "a"]); - assert.deepEqual(ts.reducePathComponents(["", "a", "."]), ["", "a"]); - assert.deepEqual(ts.reducePathComponents(["", ".."]), ["", ".."]); - assert.deepEqual(ts.reducePathComponents(["", "..", ".."]), ["", "..", ".."]); - assert.deepEqual(ts.reducePathComponents(["", "..", ".", ".."]), ["", "..", ".."]); - assert.deepEqual(ts.reducePathComponents(["", "a", ".."]), [""]); - assert.deepEqual(ts.reducePathComponents(["", "..", "a"]), ["", "..", "a"]); - assert.deepEqual(ts.reducePathComponents(["/"]), ["/"]); - assert.deepEqual(ts.reducePathComponents(["/", "."]), ["/"]); - assert.deepEqual(ts.reducePathComponents(["/", ".."]), ["/"]); - assert.deepEqual(ts.reducePathComponents(["/", "a", ".."]), ["/"]); + assert.deepEqual(reducePathComponents([]), []); + assert.deepEqual(reducePathComponents([""]), [""]); + assert.deepEqual(reducePathComponents(["", "."]), [""]); + assert.deepEqual(reducePathComponents(["", ".", "a"]), ["", "a"]); + assert.deepEqual(reducePathComponents(["", "a", "."]), ["", "a"]); + assert.deepEqual(reducePathComponents(["", ".."]), ["", ".."]); + assert.deepEqual(reducePathComponents(["", "..", ".."]), ["", "..", ".."]); + assert.deepEqual(reducePathComponents(["", "..", ".", ".."]), ["", "..", ".."]); + assert.deepEqual(reducePathComponents(["", "a", ".."]), [""]); + assert.deepEqual(reducePathComponents(["", "..", "a"]), ["", "..", "a"]); + assert.deepEqual(reducePathComponents(["/"]), ["/"]); + assert.deepEqual(reducePathComponents(["/", "."]), ["/"]); + assert.deepEqual(reducePathComponents(["/", ".."]), ["/"]); + assert.deepEqual(reducePathComponents(["/", "a", ".."]), ["/"]); }); it("combinePaths", () => { - assert.strictEqual(ts.combinePaths("/", "/node_modules/@types"), "/node_modules/@types"); - assert.strictEqual(ts.combinePaths("/a/..", ""), "/a/.."); - assert.strictEqual(ts.combinePaths("/a/..", "b"), "/a/../b"); - assert.strictEqual(ts.combinePaths("/a/..", "b/"), "/a/../b/"); - assert.strictEqual(ts.combinePaths("/a/..", "/"), "/"); - assert.strictEqual(ts.combinePaths("/a/..", "/b"), "/b"); + assert.strictEqual(combinePaths("/", "/node_modules/@types"), "/node_modules/@types"); + assert.strictEqual(combinePaths("/a/..", ""), "/a/.."); + assert.strictEqual(combinePaths("/a/..", "b"), "/a/../b"); + assert.strictEqual(combinePaths("/a/..", "b/"), "/a/../b/"); + assert.strictEqual(combinePaths("/a/..", "/"), "/"); + assert.strictEqual(combinePaths("/a/..", "/b"), "/b"); }); it("resolvePath", () => { - assert.strictEqual(ts.resolvePath(""), ""); - assert.strictEqual(ts.resolvePath("."), ""); - assert.strictEqual(ts.resolvePath("./"), ""); - assert.strictEqual(ts.resolvePath(".."), ".."); - assert.strictEqual(ts.resolvePath("../"), "../"); - assert.strictEqual(ts.resolvePath("/"), "/"); - assert.strictEqual(ts.resolvePath("/."), "/"); - assert.strictEqual(ts.resolvePath("/./"), "/"); - assert.strictEqual(ts.resolvePath("/../"), "/"); - assert.strictEqual(ts.resolvePath("/a"), "/a"); - assert.strictEqual(ts.resolvePath("/a/"), "/a/"); - assert.strictEqual(ts.resolvePath("/a/."), "/a"); - assert.strictEqual(ts.resolvePath("/a/./"), "/a/"); - assert.strictEqual(ts.resolvePath("/a/./b"), "/a/b"); - assert.strictEqual(ts.resolvePath("/a/./b/"), "/a/b/"); - assert.strictEqual(ts.resolvePath("/a/.."), "/"); - assert.strictEqual(ts.resolvePath("/a/../"), "/"); - assert.strictEqual(ts.resolvePath("/a/../b"), "/b"); - assert.strictEqual(ts.resolvePath("/a/../b/"), "/b/"); - assert.strictEqual(ts.resolvePath("/a/..", "b"), "/b"); - assert.strictEqual(ts.resolvePath("/a/..", "/"), "/"); - assert.strictEqual(ts.resolvePath("/a/..", "b/"), "/b/"); - assert.strictEqual(ts.resolvePath("/a/..", "/b"), "/b"); - assert.strictEqual(ts.resolvePath("/a/.", "b"), "/a/b"); - assert.strictEqual(ts.resolvePath("/a/.", "."), "/a"); - assert.strictEqual(ts.resolvePath("a", "b", "c"), "a/b/c"); - assert.strictEqual(ts.resolvePath("a", "b", "/c"), "/c"); - assert.strictEqual(ts.resolvePath("a", "b", "../c"), "a/c"); + assert.strictEqual(resolvePath(""), ""); + assert.strictEqual(resolvePath("."), ""); + assert.strictEqual(resolvePath("./"), ""); + assert.strictEqual(resolvePath(".."), ".."); + assert.strictEqual(resolvePath("../"), "../"); + assert.strictEqual(resolvePath("/"), "/"); + assert.strictEqual(resolvePath("/."), "/"); + assert.strictEqual(resolvePath("/./"), "/"); + assert.strictEqual(resolvePath("/../"), "/"); + assert.strictEqual(resolvePath("/a"), "/a"); + assert.strictEqual(resolvePath("/a/"), "/a/"); + assert.strictEqual(resolvePath("/a/."), "/a"); + assert.strictEqual(resolvePath("/a/./"), "/a/"); + assert.strictEqual(resolvePath("/a/./b"), "/a/b"); + assert.strictEqual(resolvePath("/a/./b/"), "/a/b/"); + assert.strictEqual(resolvePath("/a/.."), "/"); + assert.strictEqual(resolvePath("/a/../"), "/"); + assert.strictEqual(resolvePath("/a/../b"), "/b"); + assert.strictEqual(resolvePath("/a/../b/"), "/b/"); + assert.strictEqual(resolvePath("/a/..", "b"), "/b"); + assert.strictEqual(resolvePath("/a/..", "/"), "/"); + assert.strictEqual(resolvePath("/a/..", "b/"), "/b/"); + assert.strictEqual(resolvePath("/a/..", "/b"), "/b"); + assert.strictEqual(resolvePath("/a/.", "b"), "/a/b"); + assert.strictEqual(resolvePath("/a/.", "."), "/a"); + assert.strictEqual(resolvePath("a", "b", "c"), "a/b/c"); + assert.strictEqual(resolvePath("a", "b", "/c"), "/c"); + assert.strictEqual(resolvePath("a", "b", "../c"), "a/c"); }); it("getPathRelativeTo", () => { - assert.strictEqual(ts.getRelativePathFromDirectory("/", "/", /*ignoreCase*/ false), ""); - assert.strictEqual(ts.getRelativePathFromDirectory("/a", "/a", /*ignoreCase*/ false), ""); - assert.strictEqual(ts.getRelativePathFromDirectory("/a/", "/a", /*ignoreCase*/ false), ""); - assert.strictEqual(ts.getRelativePathFromDirectory("/a", "/", /*ignoreCase*/ false), ".."); - assert.strictEqual(ts.getRelativePathFromDirectory("/a", "/b", /*ignoreCase*/ false), "../b"); - assert.strictEqual(ts.getRelativePathFromDirectory("/a/b", "/b", /*ignoreCase*/ false), "../../b"); - assert.strictEqual(ts.getRelativePathFromDirectory("/a/b/c", "/b", /*ignoreCase*/ false), "../../../b"); - assert.strictEqual(ts.getRelativePathFromDirectory("/a/b/c", "/b/c", /*ignoreCase*/ false), "../../../b/c"); - assert.strictEqual(ts.getRelativePathFromDirectory("/a/b/c", "/a/b", /*ignoreCase*/ false), ".."); - assert.strictEqual(ts.getRelativePathFromDirectory("c:", "d:", /*ignoreCase*/ false), "d:/"); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///", "file:///", /*ignoreCase*/ false), ""); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///a", "file:///a", /*ignoreCase*/ false), ""); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///a/", "file:///a", /*ignoreCase*/ false), ""); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///a", "file:///", /*ignoreCase*/ false), ".."); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///a", "file:///b", /*ignoreCase*/ false), "../b"); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///a/b", "file:///b", /*ignoreCase*/ false), "../../b"); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///a/b/c", "file:///b", /*ignoreCase*/ false), "../../../b"); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///a/b/c", "file:///b/c", /*ignoreCase*/ false), "../../../b/c"); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///a/b/c", "file:///a/b", /*ignoreCase*/ false), ".."); - assert.strictEqual(ts.getRelativePathFromDirectory("file:///c:", "file:///d:", /*ignoreCase*/ false), "file:///d:/"); + assert.strictEqual(getRelativePathFromDirectory("/", "/", /*ignoreCase*/ false), ""); + assert.strictEqual(getRelativePathFromDirectory("/a", "/a", /*ignoreCase*/ false), ""); + assert.strictEqual(getRelativePathFromDirectory("/a/", "/a", /*ignoreCase*/ false), ""); + assert.strictEqual(getRelativePathFromDirectory("/a", "/", /*ignoreCase*/ false), ".."); + assert.strictEqual(getRelativePathFromDirectory("/a", "/b", /*ignoreCase*/ false), "../b"); + assert.strictEqual(getRelativePathFromDirectory("/a/b", "/b", /*ignoreCase*/ false), "../../b"); + assert.strictEqual(getRelativePathFromDirectory("/a/b/c", "/b", /*ignoreCase*/ false), "../../../b"); + assert.strictEqual(getRelativePathFromDirectory("/a/b/c", "/b/c", /*ignoreCase*/ false), "../../../b/c"); + assert.strictEqual(getRelativePathFromDirectory("/a/b/c", "/a/b", /*ignoreCase*/ false), ".."); + assert.strictEqual(getRelativePathFromDirectory("c:", "d:", /*ignoreCase*/ false), "d:/"); + assert.strictEqual(getRelativePathFromDirectory("file:///", "file:///", /*ignoreCase*/ false), ""); + assert.strictEqual(getRelativePathFromDirectory("file:///a", "file:///a", /*ignoreCase*/ false), ""); + assert.strictEqual(getRelativePathFromDirectory("file:///a/", "file:///a", /*ignoreCase*/ false), ""); + assert.strictEqual(getRelativePathFromDirectory("file:///a", "file:///", /*ignoreCase*/ false), ".."); + assert.strictEqual(getRelativePathFromDirectory("file:///a", "file:///b", /*ignoreCase*/ false), "../b"); + assert.strictEqual(getRelativePathFromDirectory("file:///a/b", "file:///b", /*ignoreCase*/ false), "../../b"); + assert.strictEqual(getRelativePathFromDirectory("file:///a/b/c", "file:///b", /*ignoreCase*/ false), "../../../b"); + assert.strictEqual(getRelativePathFromDirectory("file:///a/b/c", "file:///b/c", /*ignoreCase*/ false), "../../../b/c"); + assert.strictEqual(getRelativePathFromDirectory("file:///a/b/c", "file:///a/b", /*ignoreCase*/ false), ".."); + assert.strictEqual(getRelativePathFromDirectory("file:///c:", "file:///d:", /*ignoreCase*/ false), "file:///d:/"); }); it("toFileNameLowerCase", () => { assert.strictEqual( - ts.toFileNameLowerCase("/user/UserName/projects/Project/file.ts"), + toFileNameLowerCase("/user/UserName/projects/Project/file.ts"), "/user/username/projects/project/file.ts" ); assert.strictEqual( - ts.toFileNameLowerCase("/user/UserName/projects/projectß/file.ts"), + toFileNameLowerCase("/user/UserName/projects/projectß/file.ts"), "/user/username/projects/projectß/file.ts" ); assert.strictEqual( - ts.toFileNameLowerCase("/user/UserName/projects/İproject/file.ts"), + toFileNameLowerCase("/user/UserName/projects/İproject/file.ts"), "/user/username/projects/İproject/file.ts" ); assert.strictEqual( - ts.toFileNameLowerCase("/user/UserName/projects/ı/file.ts"), + toFileNameLowerCase("/user/UserName/projects/ı/file.ts"), "/user/username/projects/ı/file.ts" ); }); diff --git a/src/testRunner/unittests/printer.ts b/src/testRunner/unittests/printer.ts index 59ffa8f0ed24f..ad9fba257a274 100644 --- a/src/testRunner/unittests/printer.ts +++ b/src/testRunner/unittests/printer.ts @@ -1,4 +1,9 @@ -namespace ts { +import { PrinterOptions, Printer, NewLineKind, SourceFile, ScriptTarget, ScriptKind, Bundle, EmitHint, SyntaxKind, NodeFlags, EmitFlags } from "../../compiler/types"; +import { createPrinter } from "../../compiler/emitter"; +import { createSourceFile } from "../../compiler/parser"; +import { factory, setEmitFlags } from "../../../built/local/compiler"; +import { neverArray } from "../../compiler/core"; + describe("unittests:: PrinterAPI", () => { function makePrintsCorrectly(prefix: string) { return function printsCorrectly(name: string, options: PrinterOptions, printCallback: (printer: Printer) => string) { @@ -175,7 +180,7 @@ namespace ts { /*decorators*/ undefined, /*modifiers*/ [factory.createToken(SyntaxKind.DeclareKeyword)], factory.createIdentifier("global"), - factory.createModuleBlock(emptyArray), + factory.createModuleBlock(neverArray), NodeFlags.GlobalAugmentation), createSourceFile("source.ts", "", ScriptTarget.ES2015) )); @@ -186,7 +191,7 @@ namespace ts { /*decorators*/ undefined, /*modifiers*/ undefined, factory.createIdentifier("global"), - factory.createModuleBlock(emptyArray), + factory.createModuleBlock(neverArray), NodeFlags.GlobalAugmentation), createSourceFile("source.ts", "", ScriptTarget.ES2015) )); @@ -297,4 +302,4 @@ namespace ts { )); }); }); -} + diff --git a/src/testRunner/unittests/programApi.ts b/src/testRunner/unittests/programApi.ts index 170235b8308a1..4a353d14bd8d5 100644 --- a/src/testRunner/unittests/programApi.ts +++ b/src/testRunner/unittests/programApi.ts @@ -1,4 +1,12 @@ -namespace ts { +import { Path, CompilerOptions, NewLineKind, CompilerHost, ScriptTarget, ModuleKind, Program, ScriptKind, ExpressionStatement, AsExpression, ImportDeclaration } from "../../compiler/types"; +import { assert } from "console"; +import { arrayToSet } from "../../compiler/utilities"; +import { arrayFrom, mapDefinedIterator } from "../../compiler/core"; +import { createProgram } from "../../compiler/program"; +import { createSourceFile } from "../../compiler/parser"; +import { sys } from "../../compiler/sys"; +import { emptyOptions } from "../../services/types"; + function verifyMissingFilePaths(missingPaths: readonly Path[], expected: readonly string[]) { assert.isDefined(missingPaths); const map = arrayToSet(expected) as Map; @@ -204,4 +212,4 @@ namespace ts { assert.isEmpty(program.getSemanticDiagnostics()); }); }); -} + diff --git a/src/testRunner/unittests/publicApi.ts b/src/testRunner/unittests/publicApi.ts index 80df40e6d9b4e..d034728b2cbd1 100644 --- a/src/testRunner/unittests/publicApi.ts +++ b/src/testRunner/unittests/publicApi.ts @@ -1,3 +1,9 @@ +import { assert } from "console"; +import { SyntaxKind } from "../../compiler/types"; +import { tokenToString } from "../../compiler/scanner"; +import { Debug } from "../../compiler/debug"; +import { factory, isPropertyName } from "../../../built/local/compiler"; + describe("unittests:: Public APIs", () => { function verifyApi(fileName: string) { const builtFile = `built/local/${fileName}`; @@ -33,29 +39,29 @@ describe("unittests:: Public APIs", () => { }); describe("unittests:: Public APIs:: token to string", () => { - function assertDefinedTokenToString(initial: ts.SyntaxKind, last: ts.SyntaxKind) { + function assertDefinedTokenToString(initial: SyntaxKind, last: SyntaxKind) { for (let t = initial; t <= last; t++) { - assert.isDefined(ts.tokenToString(t), `Expected tokenToString defined for ${ts.Debug.formatSyntaxKind(t)}`); + assert.isDefined(tokenToString(t), `Expected tokenToString defined for ${Debug.formatSyntaxKind(t)}`); } } it("for punctuations", () => { - assertDefinedTokenToString(ts.SyntaxKind.FirstPunctuation, ts.SyntaxKind.LastPunctuation); + assertDefinedTokenToString(SyntaxKind.FirstPunctuation, SyntaxKind.LastPunctuation); }); it("for keywords", () => { - assertDefinedTokenToString(ts.SyntaxKind.FirstKeyword, ts.SyntaxKind.LastKeyword); + assertDefinedTokenToString(SyntaxKind.FirstKeyword, SyntaxKind.LastKeyword); }); }); describe("unittests:: Public APIs:: createPrivateIdentifier", () => { it("throws when name doesn't start with #", () => { - assert.throw(() => ts.factory.createPrivateIdentifier("not"), "Debug Failure. First character of private identifier must be #: not"); + assert.throw(() => factory.createPrivateIdentifier("not"), "Debug Failure. First character of private identifier must be #: not"); }); }); describe("unittests:: Public APIs:: isPropertyName", () => { it("checks if a PrivateIdentifier is a valid property name", () => { - const prop = ts.factory.createPrivateIdentifier("#foo"); - assert.isTrue(ts.isPropertyName(prop), "PrivateIdentifier must be a valid property name."); + const prop = factory.createPrivateIdentifier("#foo"); + assert.isTrue(isPropertyName(prop), "PrivateIdentifier must be a valid property name."); }); }); diff --git a/src/testRunner/unittests/reuseProgramStructure.ts b/src/testRunner/unittests/reuseProgramStructure.ts index 9ae4de199e212..24de5716ab910 100644 --- a/src/testRunner/unittests/reuseProgramStructure.ts +++ b/src/testRunner/unittests/reuseProgramStructure.ts @@ -1,4 +1,4 @@ -namespace ts { + const enum ChangedPart { references = 1 << 0, @@ -313,7 +313,7 @@ namespace ts { const options: CompilerOptions = { target, noLib: true }; const program1 = newProgram(files, ["a.ts"], options); - assert.notDeepEqual(emptyArray, program1.getMissingFilePaths()); + assert.notDeepEqual(neverArray, program1.getMissingFilePaths()); const program2 = updateProgram(program1, ["a.ts"], options, noop); assert.deepEqual(program1.getMissingFilePaths(), program2.getMissingFilePaths()); @@ -325,7 +325,7 @@ namespace ts { const options: CompilerOptions = { target, noLib: true }; const program1 = newProgram(files, ["a.ts"], options); - assert.notDeepEqual(emptyArray, program1.getMissingFilePaths()); + assert.notDeepEqual(neverArray, program1.getMissingFilePaths()); const newTexts: NamedSourceText[] = files.concat([{ name: "non-existing-file.ts", text: SourceText.New("", "", `var x = 1`) }]); const program2 = updateProgram(program1, ["a.ts"], options, noop, newTexts); @@ -904,6 +904,20 @@ namespace ts { type File = TestFSWithWatch.File; import createTestSystem = TestFSWithWatch.createWatchedSystem; import libFile = TestFSWithWatch.libFile; +import { SourceFile, Program, CompilerHost, TextChangeRange, TextSpan, ScriptTarget, CompilerOptions, ResolvedTypeReferenceDirective, ResolvedModule, StructureIsReused, ModuleKind, ModuleResolutionKind } from "../../compiler/types"; +import { IScriptSnapshot } from "../../services/types"; +import { Debug } from "../../compiler/debug"; +import { createTextSpan, createTextChangeRange } from "../../../built/local/compiler"; +import { createSourceFile, updateSourceFile } from "../../compiler/parser"; +import { arrayToMap, createGetCanonicalFileName, notImplemented, mapEntries, find, noop, neverArray, createMapFromTemplate, returnFalse } from "../../compiler/core"; +import { sys, System } from "../../compiler/sys"; +import { toPath } from "../../compiler/path"; +import { createProgram, isProgramUptoDate } from "../../compiler/program"; +import { assert } from "console"; +import { forEachEntry, forEachKey } from "../../compiler/utilities"; +import { checkResolvedModule, createResolvedModule } from "./moduleResolution"; +import { createWatchProgram } from "../../compiler/watchPublic"; +import { createWatchCompilerHostOfFilesAndCompilerOptions, createWatchCompilerHostOfConfigFile, parseConfigFileWithSystem } from "../../compiler/watch"; describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { function getWhetherProgramIsUptoDate( @@ -1160,4 +1174,4 @@ namespace ts { }); }); }); -} + diff --git a/src/testRunner/unittests/semver.ts b/src/testRunner/unittests/semver.ts index b3447ca77b09e..96a684cd66631 100644 --- a/src/testRunner/unittests/semver.ts +++ b/src/testRunner/unittests/semver.ts @@ -1,13 +1,17 @@ -namespace ts { + import theory = Utils.theory; +import { Version, VersionRange } from "../../compiler/semver"; +import { assert } from "console"; +import { neverArray } from "../../compiler/core"; +import { Comparison } from "../../compiler/corePublic"; describe("unittests:: semver", () => { describe("Version", () => { function assertVersion(version: Version, [major, minor, patch, prerelease, build]: [number, number, number, string[]?, string[]?]) { assert.strictEqual(version.major, major); assert.strictEqual(version.minor, minor); assert.strictEqual(version.patch, patch); - assert.deepEqual(version.prerelease, prerelease || emptyArray); - assert.deepEqual(version.build, build || emptyArray); + assert.deepEqual(version.prerelease, prerelease || neverArray); + assert.deepEqual(version.build, build || neverArray); } describe("new", () => { it("text", () => { @@ -225,4 +229,4 @@ namespace ts { ]); }); }); -} + diff --git a/src/testRunner/unittests/services/cancellableLanguageServiceOperations.ts b/src/testRunner/unittests/services/cancellableLanguageServiceOperations.ts index bd8ed2714acd5..8a65e58462234 100644 --- a/src/testRunner/unittests/services/cancellableLanguageServiceOperations.ts +++ b/src/testRunner/unittests/services/cancellableLanguageServiceOperations.ts @@ -1,4 +1,7 @@ -namespace ts { +import { emptyOptions, FormatCodeSettings, IndentStyle, LanguageService, HostCancellationToken } from "../../../services/types"; +import { assert } from "console"; +import { CompilerOptions, OperationCanceledException } from "../../../compiler/types"; + describe("unittests:: services:: cancellableLanguageServiceOperations", () => { const file = ` function foo(): void; @@ -92,4 +95,4 @@ namespace ts { assert.exists(caught, "Expected operation to be cancelled, but was not"); assert.instanceOf(caught, OperationCanceledException); } -} + diff --git a/src/testRunner/unittests/services/colorization.ts b/src/testRunner/unittests/services/colorization.ts index c8052cfc17b0e..3dcf19cdbe631 100644 --- a/src/testRunner/unittests/services/colorization.ts +++ b/src/testRunner/unittests/services/colorization.ts @@ -1,9 +1,13 @@ // lots of tests use quoted code /* eslint-disable no-template-curly-in-string */ +import { TokenClass, ClassificationResult, EndOfLineState } from "../../../services/types"; +import { assert } from "console"; +import { last } from "../../../compiler/core"; + interface ClassificationEntry { value: any; - classification: ts.TokenClass; + classification: TokenClass; position?: number; } @@ -12,7 +16,7 @@ describe("unittests:: services:: Colorization", () => { const languageServiceAdapter = new Harness.LanguageService.ShimLanguageServiceAdapter(/*preprocessToResolve*/ false); const classifier = languageServiceAdapter.getClassifier(); - function getEntryAtPosition(result: ts.ClassificationResult, position: number) { + function getEntryAtPosition(result: ClassificationResult, position: number) { let entryPosition = 0; for (const entry of result.entries) { if (entryPosition === position) { @@ -23,20 +27,20 @@ describe("unittests:: services:: Colorization", () => { return undefined; } - function punctuation(text: string, position?: number) { return createClassification(text, ts.TokenClass.Punctuation, position); } - function keyword(text: string, position?: number) { return createClassification(text, ts.TokenClass.Keyword, position); } - function operator(text: string, position?: number) { return createClassification(text, ts.TokenClass.Operator, position); } - function comment(text: string, position?: number) { return createClassification(text, ts.TokenClass.Comment, position); } - function whitespace(text: string, position?: number) { return createClassification(text, ts.TokenClass.Whitespace, position); } - function identifier(text: string, position?: number) { return createClassification(text, ts.TokenClass.Identifier, position); } - function numberLiteral(text: string, position?: number) { return createClassification(text, ts.TokenClass.NumberLiteral, position); } - function stringLiteral(text: string, position?: number) { return createClassification(text, ts.TokenClass.StringLiteral, position); } + function punctuation(text: string, position?: number) { return createClassification(text, TokenClass.Punctuation, position); } + function keyword(text: string, position?: number) { return createClassification(text, TokenClass.Keyword, position); } + function operator(text: string, position?: number) { return createClassification(text, TokenClass.Operator, position); } + function comment(text: string, position?: number) { return createClassification(text, TokenClass.Comment, position); } + function whitespace(text: string, position?: number) { return createClassification(text, TokenClass.Whitespace, position); } + function identifier(text: string, position?: number) { return createClassification(text, TokenClass.Identifier, position); } + function numberLiteral(text: string, position?: number) { return createClassification(text, TokenClass.NumberLiteral, position); } + function stringLiteral(text: string, position?: number) { return createClassification(text, TokenClass.StringLiteral, position); } function finalEndOfLineState(value: number): ClassificationEntry { return { value, classification: undefined!, position: 0 }; } // TODO: GH#18217 - function createClassification(value: string, classification: ts.TokenClass, position?: number): ClassificationEntry { + function createClassification(value: string, classification: TokenClass, position?: number): ClassificationEntry { return { value, classification, position }; } - function testLexicalClassification(text: string, initialEndOfLineState: ts.EndOfLineState, ...expectedEntries: ClassificationEntry[]): void { + function testLexicalClassification(text: string, initialEndOfLineState: EndOfLineState, ...expectedEntries: ClassificationEntry[]): void { const result = classifier.getClassificationsForLine(text, initialEndOfLineState, /*syntacticClassifierAbsent*/ false); for (const expectedEntry of expectedEntries) { @@ -50,8 +54,8 @@ describe("unittests:: services:: Colorization", () => { const actualEntry = getEntryAtPosition(result, actualEntryPosition)!; assert(actualEntry, "Could not find classification entry for '" + expectedEntry.value + "' at position: " + actualEntryPosition); - assert.equal(actualEntry.classification, expectedEntry.classification, "Classification class does not match expected. Expected: " + ts.TokenClass[expectedEntry.classification] + ", Actual: " + ts.TokenClass[actualEntry.classification]); - assert.equal(actualEntry.length, expectedEntry.value.length, "Classification length does not match expected. Expected: " + ts.TokenClass[expectedEntry.value.length] + ", Actual: " + ts.TokenClass[actualEntry.length]); + assert.equal(actualEntry.classification, expectedEntry.classification, "Classification class does not match expected. Expected: " + TokenClass[expectedEntry.classification] + ", Actual: " + TokenClass[actualEntry.classification]); + assert.equal(actualEntry.length, expectedEntry.value.length, "Classification length does not match expected. Expected: " + TokenClass[expectedEntry.value.length] + ", Actual: " + TokenClass[actualEntry.length]); } } } @@ -59,7 +63,7 @@ describe("unittests:: services:: Colorization", () => { describe("test getClassifications", () => { it("returns correct token classes", () => { testLexicalClassification("var x: string = \"foo\" ?? \"bar\"; //Hello", - ts.EndOfLineState.None, + EndOfLineState.None, keyword("var"), whitespace(" "), identifier("x"), @@ -76,7 +80,7 @@ describe("unittests:: services:: Colorization", () => { it("correctly classifies a comment after a divide operator", () => { testLexicalClassification("1 / 2 // comment", - ts.EndOfLineState.None, + EndOfLineState.None, numberLiteral("1"), whitespace(" "), operator("/"), @@ -86,7 +90,7 @@ describe("unittests:: services:: Colorization", () => { it("correctly classifies a literal after a divide operator", () => { testLexicalClassification("1 / 2, 3 / 4", - ts.EndOfLineState.None, + EndOfLineState.None, numberLiteral("1"), whitespace(" "), operator("/"), @@ -98,131 +102,131 @@ describe("unittests:: services:: Colorization", () => { it("correctly classifies a multiline string with one backslash", () => { testLexicalClassification("'line1\\", - ts.EndOfLineState.None, + EndOfLineState.None, stringLiteral("'line1\\"), - finalEndOfLineState(ts.EndOfLineState.InSingleQuoteStringLiteral)); + finalEndOfLineState(EndOfLineState.InSingleQuoteStringLiteral)); }); it("correctly classifies a multiline string with three backslashes", () => { testLexicalClassification("'line1\\\\\\", - ts.EndOfLineState.None, + EndOfLineState.None, stringLiteral("'line1\\\\\\"), - finalEndOfLineState(ts.EndOfLineState.InSingleQuoteStringLiteral)); + finalEndOfLineState(EndOfLineState.InSingleQuoteStringLiteral)); }); it("correctly classifies an unterminated single-line string with no backslashes", () => { testLexicalClassification("'line1", - ts.EndOfLineState.None, + EndOfLineState.None, stringLiteral("'line1"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("correctly classifies an unterminated single-line string with two backslashes", () => { testLexicalClassification("'line1\\\\", - ts.EndOfLineState.None, + EndOfLineState.None, stringLiteral("'line1\\\\"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("correctly classifies an unterminated single-line string with four backslashes", () => { testLexicalClassification("'line1\\\\\\\\", - ts.EndOfLineState.None, + EndOfLineState.None, stringLiteral("'line1\\\\\\\\"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("correctly classifies the continuing line of a multiline string ending in one backslash", () => { testLexicalClassification("\\", - ts.EndOfLineState.InDoubleQuoteStringLiteral, + EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral("\\"), - finalEndOfLineState(ts.EndOfLineState.InDoubleQuoteStringLiteral)); + finalEndOfLineState(EndOfLineState.InDoubleQuoteStringLiteral)); }); it("correctly classifies the continuing line of a multiline string ending in three backslashes", () => { testLexicalClassification("\\", - ts.EndOfLineState.InDoubleQuoteStringLiteral, + EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral("\\"), - finalEndOfLineState(ts.EndOfLineState.InDoubleQuoteStringLiteral)); + finalEndOfLineState(EndOfLineState.InDoubleQuoteStringLiteral)); }); it("correctly classifies the last line of an unterminated multiline string ending in no backslashes", () => { testLexicalClassification(" ", - ts.EndOfLineState.InDoubleQuoteStringLiteral, + EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral(" "), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("correctly classifies the last line of an unterminated multiline string ending in two backslashes", () => { testLexicalClassification("\\\\", - ts.EndOfLineState.InDoubleQuoteStringLiteral, + EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral("\\\\"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("correctly classifies the last line of an unterminated multiline string ending in four backslashes", () => { testLexicalClassification("\\\\\\\\", - ts.EndOfLineState.InDoubleQuoteStringLiteral, + EndOfLineState.InDoubleQuoteStringLiteral, stringLiteral("\\\\\\\\"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("correctly classifies the last line of a multiline string", () => { testLexicalClassification("'", - ts.EndOfLineState.InSingleQuoteStringLiteral, + EndOfLineState.InSingleQuoteStringLiteral, stringLiteral("'"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("correctly classifies an unterminated multiline comment", () => { testLexicalClassification("/*", - ts.EndOfLineState.None, + EndOfLineState.None, comment("/*"), - finalEndOfLineState(ts.EndOfLineState.InMultiLineCommentTrivia)); + finalEndOfLineState(EndOfLineState.InMultiLineCommentTrivia)); }); it("correctly classifies the termination of a multiline comment", () => { testLexicalClassification(" */ ", - ts.EndOfLineState.InMultiLineCommentTrivia, + EndOfLineState.InMultiLineCommentTrivia, comment(" */"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("correctly classifies the continuation of a multiline comment", () => { testLexicalClassification("LOREM IPSUM DOLOR ", - ts.EndOfLineState.InMultiLineCommentTrivia, + EndOfLineState.InMultiLineCommentTrivia, comment("LOREM IPSUM DOLOR "), - finalEndOfLineState(ts.EndOfLineState.InMultiLineCommentTrivia)); + finalEndOfLineState(EndOfLineState.InMultiLineCommentTrivia)); }); it("correctly classifies an unterminated multiline comment on a line ending in '/*/'", () => { testLexicalClassification(" /*/", - ts.EndOfLineState.None, + EndOfLineState.None, comment("/*/"), - finalEndOfLineState(ts.EndOfLineState.InMultiLineCommentTrivia)); + finalEndOfLineState(EndOfLineState.InMultiLineCommentTrivia)); }); it("correctly classifies an unterminated multiline comment with trailing space", () => { testLexicalClassification("/* ", - ts.EndOfLineState.None, + EndOfLineState.None, comment("/* "), - finalEndOfLineState(ts.EndOfLineState.InMultiLineCommentTrivia)); + finalEndOfLineState(EndOfLineState.InMultiLineCommentTrivia)); }); it("correctly classifies a keyword after a dot", () => { testLexicalClassification("a.var", - ts.EndOfLineState.None, + EndOfLineState.None, identifier("var")); }); it("correctly classifies a string literal after a dot", () => { testLexicalClassification("a.\"var\"", - ts.EndOfLineState.None, + EndOfLineState.None, stringLiteral("\"var\"")); }); it("correctly classifies a keyword after a dot separated by comment trivia", () => { testLexicalClassification("a./*hello world*/ var", - ts.EndOfLineState.None, + EndOfLineState.None, identifier("a"), punctuation("."), comment("/*hello world*/"), @@ -231,41 +235,41 @@ describe("unittests:: services:: Colorization", () => { it("classifies a property access with whitespace around the dot", () => { testLexicalClassification(" x .\tfoo ()", - ts.EndOfLineState.None, + EndOfLineState.None, identifier("x"), identifier("foo")); }); it("classifies a keyword after a dot on previous line", () => { testLexicalClassification("var", - ts.EndOfLineState.None, + EndOfLineState.None, keyword("var"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("classifies multiple keywords properly", () => { testLexicalClassification("public static", - ts.EndOfLineState.None, + EndOfLineState.None, keyword("public"), keyword("static"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); testLexicalClassification("public var", - ts.EndOfLineState.None, + EndOfLineState.None, keyword("public"), identifier("var"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("classifies a single line no substitution template string correctly", () => { testLexicalClassification("`number number public string`", - ts.EndOfLineState.None, + EndOfLineState.None, stringLiteral("`number number public string`"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("classifies substitution parts of a template string correctly", () => { testLexicalClassification("`number '${ 1 + 1 }' string '${ 'hello' }'`", - ts.EndOfLineState.None, + EndOfLineState.None, stringLiteral("`number '${"), numberLiteral("1"), operator("+"), @@ -273,64 +277,64 @@ describe("unittests:: services:: Colorization", () => { stringLiteral("}' string '${"), stringLiteral("'hello'"), stringLiteral("}'`"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("classifies an unterminated no substitution template string correctly", () => { testLexicalClassification("`hello world", - ts.EndOfLineState.None, + EndOfLineState.None, stringLiteral("`hello world"), - finalEndOfLineState(ts.EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate)); + finalEndOfLineState(EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate)); }); it("classifies the entire line of an unterminated multiline no-substitution/head template", () => { testLexicalClassification("...", - ts.EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, + EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, stringLiteral("..."), - finalEndOfLineState(ts.EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate)); + finalEndOfLineState(EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate)); }); it("classifies the entire line of an unterminated multiline template middle/end", () => { testLexicalClassification("...", - ts.EndOfLineState.InTemplateMiddleOrTail, + EndOfLineState.InTemplateMiddleOrTail, stringLiteral("..."), - finalEndOfLineState(ts.EndOfLineState.InTemplateMiddleOrTail)); + finalEndOfLineState(EndOfLineState.InTemplateMiddleOrTail)); }); it("classifies a termination of a multiline template head", () => { testLexicalClassification("...${", - ts.EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, + EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, stringLiteral("...${"), - finalEndOfLineState(ts.EndOfLineState.InTemplateSubstitutionPosition)); + finalEndOfLineState(EndOfLineState.InTemplateSubstitutionPosition)); }); it("classifies the termination of a multiline no substitution template", () => { testLexicalClassification("...`", - ts.EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, + EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, stringLiteral("...`"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("classifies the substitution parts and middle/tail of a multiline template string", () => { testLexicalClassification("${ 1 + 1 }...`", - ts.EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, + EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, stringLiteral("${"), numberLiteral("1"), operator("+"), numberLiteral("1"), stringLiteral("}...`"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("classifies a template middle and propagates the end of line state", () => { testLexicalClassification("${ 1 + 1 }...`", - ts.EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, + EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, stringLiteral("${"), numberLiteral("1"), operator("+"), numberLiteral("1"), stringLiteral("}...`"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("classifies substitution expressions with curly braces appropriately", () => { let pos = 0; let lastLength = 0; testLexicalClassification("...${ () => { } } ${ { x: `1` } }...`", - ts.EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, + EndOfLineState.InTemplateHeadOrNoSubstitutionTemplate, stringLiteral(track("...${"), pos), punctuation(track(" ", "("), pos), punctuation(track(")"), pos), @@ -344,7 +348,7 @@ describe("unittests:: services:: Colorization", () => { stringLiteral(track(" ", "`1`"), pos), punctuation(track(" ", "}"), pos), stringLiteral(track(" ", "}...`"), pos), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); // Adjusts 'pos' by accounting for the length of each portion of the string, // but only return the last given string @@ -353,28 +357,28 @@ describe("unittests:: services:: Colorization", () => { pos += lastLength; lastLength = val.length; } - return ts.last(vals); + return last(vals); } }); it("classifies partially written generics correctly.", () => { testLexicalClassification("Foo { identifier("Foo"), operator("<"), identifier("number"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("LexicallyClassifiesConflictTokens", () => { @@ -395,7 +399,7 @@ describe("unittests:: services:: Colorization", () => { v = 2;\r\n\ >>>>>>> Branch - a\r\n\ }", - ts.EndOfLineState.None, + EndOfLineState.None, keyword("class"), identifier("C"), punctuation("{"), @@ -407,7 +411,7 @@ describe("unittests:: services:: Colorization", () => { comment("=======\r\n v = 2;\r\n"), comment(">>>>>>> Branch - a"), punctuation("}"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); testLexicalClassification( "<<<<<<< HEAD\r\n\ @@ -415,7 +419,7 @@ class C { }\r\n\ =======\r\n\ class D { }\r\n\ >>>>>>> Branch - a\r\n", - ts.EndOfLineState.None, + EndOfLineState.None, comment("<<<<<<< HEAD"), keyword("class"), identifier("C"), @@ -423,7 +427,7 @@ class D { }\r\n\ punctuation("}"), comment("=======\r\nclass D { }\r\n"), comment(">>>>>>> Branch - a"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); testLexicalClassification( "class C {\r\n\ @@ -435,7 +439,7 @@ class D { }\r\n\ v = 2;\r\n\ >>>>>>> Branch - a\r\n\ }", - ts.EndOfLineState.None, + EndOfLineState.None, keyword("class"), identifier("C"), punctuation("{"), @@ -448,7 +452,7 @@ class D { }\r\n\ comment("=======\r\n v = 2;\r\n"), comment(">>>>>>> Branch - a"), punctuation("}"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); testLexicalClassification( "<<<<<<< HEAD\r\n\ @@ -458,7 +462,7 @@ class E { }\r\n\ =======\r\n\ class D { }\r\n\ >>>>>>> Branch - a\r\n", - ts.EndOfLineState.None, + EndOfLineState.None, comment("<<<<<<< HEAD"), keyword("class"), identifier("C"), @@ -467,12 +471,12 @@ class D { }\r\n\ comment("||||||| merged common ancestors\r\nclass E { }\r\n"), comment("=======\r\nclass D { }\r\n"), comment(">>>>>>> Branch - a"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); it("'of' keyword", () => { testLexicalClassification("for (var of of of) { }", - ts.EndOfLineState.None, + EndOfLineState.None, keyword("for"), punctuation("("), keyword("var"), @@ -482,7 +486,7 @@ class D { }\r\n\ punctuation(")"), punctuation("{"), punctuation("}"), - finalEndOfLineState(ts.EndOfLineState.None)); + finalEndOfLineState(EndOfLineState.None)); }); }); }); diff --git a/src/testRunner/unittests/services/convertToAsyncFunction.ts b/src/testRunner/unittests/services/convertToAsyncFunction.ts index 78a2f43f6c3d6..8d8cda76af553 100644 --- a/src/testRunner/unittests/services/convertToAsyncFunction.ts +++ b/src/testRunner/unittests/services/convertToAsyncFunction.ts @@ -1,4 +1,10 @@ -namespace ts { +import { extractTest, notImplementedHost, newLineCharacter } from "./extract/helpers"; +import { Extension, Program } from "../../../compiler/types"; +import { assert } from "console"; +import { CodeFixContext, emptyOptions, testFormatSettings } from "../../../services/types"; +import { noop, returnFalse, find } from "../../../compiler/core"; +import { length } from "ms"; + const libFile: TestFSWithWatch.File = { path: "/a/lib/lib.d.ts", content: `/// @@ -18,7 +24,7 @@ interface Response extends Body { readonly type: ResponseType; readonly url: string; clone(): Response; -} + interface Body { readonly body: ReadableStream | null; readonly bodyUsed: boolean; @@ -27,7 +33,7 @@ interface Body { formData(): Promise; json(): Promise; text(): Promise; -} + declare type PromiseConstructorLike = new (executor: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void) => void) => PromiseLike; interface PromiseLike { /** @@ -37,7 +43,7 @@ interface PromiseLike { * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): PromiseLike; -} + interface Promise { /** * Attaches callbacks for the resolution and/or rejection of the Promise. @@ -53,7 +59,7 @@ interface Promise { * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): Promise; -} + interface PromiseConstructor { /** * A reference to the prototype. @@ -247,7 +253,7 @@ interface PromiseConstructor { * @returns A resolved promise. */ resolve(): Promise; -} + declare var Promise: PromiseConstructor; interface RegExp {} @@ -424,26 +430,26 @@ function [#|f|]():Promise { _testConvertToAsyncFunction("convertToAsyncFunction_CatchAndRejRef", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(res, rej).catch(catch_err) -} + function res(result){ console.log(result); -} + function rej(rejection){ return rejection.ok; -} + function catch_err(err){ console.log(err); }`); _testConvertToAsyncFunction("convertToAsyncFunction_CatchRef", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(res).catch(catch_err) -} + function res(result){ console.log(result); -} + function catch_err(err){ console.log(err); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_CatchNoBrackets", ` function [#|f|]():Promise { @@ -468,7 +474,7 @@ function [#|f|](): Promise { _testConvertToAsyncFunction("convertToAsyncFunction_IgnoreArgs4", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(res); -} + function res(){ console.log("done"); }` @@ -489,10 +495,10 @@ function [#|f|](): Promise { _testConvertToAsyncFunction("convertToAsyncFunction_MultipleThens", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(res).then(res2); -} + function res(result){ return result.ok; -} + function res2(result2){ console.log(result2); }` @@ -500,49 +506,49 @@ function res2(result2){ _testConvertToAsyncFunction("convertToAsyncFunction_MultipleThensSameVarName", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(res).then(res2); -} + function res(result){ return result.ok; -} + function res2(result){ return result.bodyUsed; -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_NoRes", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(null, rejection => console.log("rejected:", rejection)); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_NoRes2", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(undefined).catch(rej => console.log(rej)); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_NoRes3", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').catch(rej => console.log(rej)); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_NoRes4", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(undefined, rejection => console.log("rejected:", rejection)); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_NoCatchHandler", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(x => x.statusText).catch(undefined); -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_NoSuggestion", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org'); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_PromiseDotAll", ` @@ -550,80 +556,80 @@ function [#|f|]():Promise{ return Promise.all([fetch('https://typescriptlang.org'), fetch('https://microsoft.com'), fetch('https://youtube.com')]).then(function(vals){ vals.forEach(console.log); }); -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_NoSuggestionNoPromise", ` function [#|f|]():void{ -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_Rej", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(result => { console.log(result); }, rejection => { console.log("rejected:", rejection); }); -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_RejRef", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(res, rej); -} + function res(result){ console.log(result); -} + function rej(err){ console.log(err); -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_RejNoBrackets", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(result => console.log(result), rejection => console.log("rejected:", rejection)); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_ResRef", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(res); -} + function res(result){ return result.ok; -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_ResRefNoReturnVal", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(res); -} + function res(result){ console.log(result); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_NoBrackets", ` function [#|f|]():Promise { return fetch('https://typescriptlang.org').then(result => console.log(result)); -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_Finally1", ` function [#|finallyTest|](): Promise { return fetch("https://typescriptlang.org").then(res => console.log(res)).catch(rej => console.log("error", rej)).finally(console.log("finally!")); -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_Finally2", ` function [#|finallyTest|](): Promise { return fetch("https://typescriptlang.org").then(res => console.log(res)).finally(console.log("finally!")); -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_Finally3", ` function [#|finallyTest|](): Promise { return fetch("https://typescriptlang.org").finally(console.log("finally!")); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_InnerPromise", ` @@ -634,7 +640,7 @@ function [#|innerPromise|](): Promise { }).then(blob => { return blob.toString(); }); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_InnerPromiseRet", ` @@ -644,7 +650,7 @@ function [#|innerPromise|](): Promise { }).then(blob => { return blob.toString(); }); -} + ` ); @@ -655,7 +661,7 @@ function [#|innerPromise|](): Promise { }).then(blob => { return blob.toString(); }); -} + ` ); @@ -666,7 +672,7 @@ function [#|innerPromise|](): Promise { }).then(({ x }) => { return x.toString(); }); -} + ` ); @@ -677,7 +683,7 @@ function [#|innerPromise|](): Promise { }).then(([x, y]) => { return (x || y).toString(); }); -} + ` ); @@ -688,7 +694,7 @@ function [#|innerPromise|](): Promise { }).then(([x, y]) => { return (x || y).toString(); }); -} + ` ); @@ -696,7 +702,7 @@ function [#|innerPromise|](): Promise { function [#|f|]() { let blob = fetch("https://typescriptlang.org").then(resp => console.log(resp)); return blob; -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_VarReturn02", ` @@ -704,7 +710,7 @@ function [#|f|]() { let blob = fetch("https://typescriptlang.org"); blob.then(resp => console.log(resp)); return blob; -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_VarReturn03", ` @@ -713,21 +719,21 @@ function [#|f|]() { let blob2 = blob.then(resp => console.log(resp)); blob2.catch(err); return blob; -} + function err (rej) { console.log(rej) -} + ` ); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_VarReturn04", ` function [#|f|]() { var blob = fetch("https://typescriptlang.org").then(res => console.log(res)), blob2 = fetch("https://microsoft.com").then(res => res.ok).catch(err); return blob; -} + function err (rej) { console.log(rej) -} + ` ); @@ -736,7 +742,7 @@ function [#|f|]() { var blob = fetch("https://typescriptlang.org").then(res => console.log(res)); blob.then(x => x); return blob; -} + ` ); @@ -744,7 +750,7 @@ function [#|f|]() { function [#|f|]() { var blob = fetch("https://typescriptlang.org"); return blob; -} + ` ); @@ -755,7 +761,7 @@ function [#|f|]() { blob2.then(res => console.log("res:", res)); blob.then(resp => console.log(resp)); return blob; -} + ` ); @@ -767,7 +773,7 @@ function [#|f|]() { } blob.then(resp => console.log(resp)); return blob; -} + ` ); @@ -780,7 +786,7 @@ function [#|f|]() { blob.then(resp => console.log(resp)); blob3 = blob2.catch(rej => rej.ok); return blob; -} + ` ); @@ -795,7 +801,7 @@ function [#|f|]() { blob3 = fetch("test.com"); blob3 = blob2; return blob; -} + ` ); @@ -803,7 +809,7 @@ function [#|f|]() { function [#|f|]() { let blob; return blob; -} + ` ); @@ -812,13 +818,13 @@ function [#|f|]() { _testConvertToAsyncFunctionFailed("convertToAsyncFunction_Param1", ` function [#|f|]() { return my_print(fetch("https://typescriptlang.org").then(res => console.log(res))); -} + function my_print (resp) { if (resp.ok) { console.log(resp.buffer); } return resp; -} + ` ); @@ -826,13 +832,13 @@ function my_print (resp) { _testConvertToAsyncFunction("convertToAsyncFunction_Param2", ` function [#|f|]() { return my_print(fetch("https://typescriptlang.org").then(res => console.log(res))).catch(err => console.log("Error!", err)); -} + function my_print (resp): Promise { if (resp.ok) { console.log(resp.buffer); } return resp; -} + ` @@ -847,7 +853,7 @@ function [#|f|](): Promise { return x.then(resp => { var blob = resp.blob().then(blob => blob.byteOffset).catch(err => 'Error'); }); -} + ` ); @@ -861,7 +867,7 @@ function [#|f|](): Promise { var blob = resp.blob().then(blob => blob.byteOffset).catch(err => 'Error'); return fetch("https://microsoft.com").then(res => console.log("Another one!")); }); -} + ` ); @@ -877,7 +883,7 @@ function [#|f|](): Promise { }); return blob; -} + ` ); @@ -889,7 +895,7 @@ function [#|f|](): Promise { }).then(blob => { return blob.toString(); }); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_InnerPromiseSimple", ` @@ -899,7 +905,7 @@ function [#|f|](): Promise { }).then(blob => { return blob.toString(); }); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_PromiseAllAndThen", ` @@ -909,7 +915,7 @@ function [#|f|]() { return fetch("https://github.com"); }).then(res => res.toString())]); }); -} + ` ); @@ -920,7 +926,7 @@ function [#|f|]() { return fetch("https://github.com"); })]).then(res => res.toString()); }); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_Scope1", ` @@ -955,52 +961,52 @@ function [#|f|](){ } } }); -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_CatchFollowedByThen", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res).catch(rej).then(res); -} + function res(result){ return result; -} + function rej(reject){ return reject; -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_CatchFollowedByThenMatchingTypes01", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res).catch(rej).then(res); -} + function res(result): number { return 5; -} + function rej(reject): number { return 3; -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_CatchFollowedByThenMatchingTypes01NoAnnotations", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res).catch(rej).then(res); -} + function res(result){ return 5; -} + function rej(reject){ return 3; -} + ` ); @@ -1008,67 +1014,67 @@ function rej(reject){ _testConvertToAsyncFunction("convertToAsyncFunction_CatchFollowedByThenMatchingTypes02", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res => 0).catch(rej => 1).then(res); -} + function res(result): number { return 5; -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_CatchFollowedByThenMatchingTypes02NoAnnotations", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res => 0).catch(rej => 1).then(res); -} + function res(result){ return 5; -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_CatchFollowedByThenMismatchTypes01", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res).catch(rej).then(res); -} + function res(result){ return 5; -} + function rej(reject){ return "Error"; -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_CatchFollowedByThenMismatchTypes02", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res).catch(rej).then(res); -} + function res(result){ return 5; -} + function rej(reject): Response{ return reject; -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_CatchFollowedByThenMismatchTypes02NoAnnotations", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res).catch(rej).then(res); -} + function res(result){ return 5; -} + function rej(reject){ return reject; -} + ` ); @@ -1076,15 +1082,15 @@ function rej(reject){ _testConvertToAsyncFunction("convertToAsyncFunction_CatchFollowedByThenMismatchTypes03", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res).catch(rej).then(res); -} + function res(result){ return 5; -} + function rej(reject){ return Promise.resolve(1); -} + ` ); @@ -1092,35 +1098,35 @@ function rej(reject){ interface a { name: string; age: number; -} + interface b extends a { color: string; -} + function [#|f|](){ return fetch("https://typescriptlang.org").then(res).catch(rej).then(res); -} + function res(result): b{ return {name: "myName", age: 22, color: "red"}; -} + function rej(reject): a{ return {name: "myName", age: 27}; -} + ` ); _testConvertToAsyncFunction("convertToAsyncFunction_ParameterNameCollision", ` async function foo(x: T): Promise { return x; -} + function [#|bar|](x: T): Promise { return foo(x).then(foo) -} + ` ); @@ -1129,27 +1135,27 @@ function [#|bar|](x: T): Promise { function [#|f|]() { let x = fetch("https://typescriptlang.org").then(res => console.log(res)); return x.catch(err => console.log("Error!", err)); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_PromiseCallInner", ` function [#|f|]() { return fetch(Promise.resolve(1).then(res => "https://typescriptlang.org")).catch(err => console.log(err)); -} + `); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_CatchFollowedByCall", ` function [#|f|](){ return fetch("https://typescriptlang.org").then(res).catch(rej).toString(); -} + function res(result){ return result; -} + function rej(reject){ return reject; -} + ` ); @@ -1157,7 +1163,7 @@ function rej(reject){ function [#|f|](){ var i:number; return fetch("https://typescriptlang.org").then(i => i.ok).then(res => i+1).catch(err => i-1) -} + ` ); @@ -1166,7 +1172,7 @@ function [#|f|](){ return fetch("https://typescriptlang.org").then(res => { for(let i=0; i<10; i++){ console.log(res); }}) -} + ` ); @@ -1179,11 +1185,11 @@ function [#|f|](){ else { return fetch("https://typescriptlang.org").then(res_func); } -} + function res_func(result){ console.log(result); -} + ` ); @@ -1197,7 +1203,7 @@ function [#|f|]() { } }; }); -} + ` ); @@ -1210,7 +1216,7 @@ function [#|f|]() { return fn3(); } return fn2(); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_NestedFunctionRightLocation", ` @@ -1222,20 +1228,20 @@ function f() { return fn3(); } return fn2(); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_UntypedFunction", ` function [#|f|]() { return Promise.resolve().then(res => console.log(res)); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_TernaryConditional", ` function [#|f|]() { let i; return Promise.resolve().then(res => res ? i = res : i = 100); -} + `); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_ResRejNoArgsArrow", ` @@ -1247,95 +1253,95 @@ function [#|f|]() { _testConvertToAsyncFunction("convertToAsyncFunction_simpleFunctionExpression", ` const [#|foo|] = function () { return fetch('https://typescriptlang.org').then(result => { console.log(result) }); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_simpleFunctionExpressionWithName", ` const foo = function [#|f|]() { return fetch('https://typescriptlang.org').then(result => { console.log(result) }); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_simpleFunctionExpressionAssignedToBindingPattern", ` const { length } = [#|function|] () { return fetch('https://typescriptlang.org').then(result => { console.log(result) }); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_catchBlockUniqueParams", ` function [#|f|]() { return Promise.resolve().then(x => 1).catch(x => "a").then(x => !!x); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_catchBlockUniqueParamsBindingPattern", ` function [#|f|]() { return Promise.resolve().then(() => ({ x: 3 })).catch(() => ({ x: "a" })).then(({ x }) => !!x); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_bindingPattern", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(res); -} + function res({ status, trailer }){ console.log(status); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_bindingPatternNameCollision", ` function [#|f|]() { const result = 'https://typescriptlang.org'; return fetch(result).then(res); -} + function res({ status, trailer }){ console.log(status); -} + `); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_thenArgumentNotFunction", ` function [#|f|]() { return Promise.resolve().then(f ? (x => x) : (y => y)); -} + `); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_thenArgumentNotFunctionNotLastInChain", ` function [#|f|]() { return Promise.resolve().then(f ? (x => x) : (y => y)).then(q => q); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_runEffectfulContinuation", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(res).then(_ => console.log("done")); -} + function res(result) { return Promise.resolve().then(x => console.log(result)); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_callbackReturnsPromise", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(s => Promise.resolve(s.statusText.length)).then(x => console.log(x + 5)); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_callbackReturnsPromiseInBlock", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(s => { return Promise.resolve(s.statusText.length) }).then(x => x + 5); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_callbackReturnsFixablePromise", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(s => Promise.resolve(s.statusText).then(st => st.length)).then(x => console.log(x + 5)); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_callbackReturnsPromiseLastInChain", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(s => Promise.resolve(s.statusText.length)); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_callbackReturnsRejectedPromiseInTryBlock", ` @@ -1343,19 +1349,19 @@ function [#|f|]() { return Promise.resolve(1) .then(x => Promise.reject(x)) .catch(err => console.log(err)); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_nestedPromises", ` function [#|f|]() { return fetch('https://typescriptlang.org').then(x => Promise.resolve(3).then(y => Promise.resolve(x.statusText.length + y))); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_noArgs", ` function delay(millis: number): Promise { throw "no" -} + function [#|main2|]() { console.log("Please wait. Loading."); @@ -1363,13 +1369,13 @@ function [#|main2|]() { .then(() => { console.log("."); return delay(500); }) .then(() => { console.log("."); return delay(500); }) .then(() => { console.log("."); return delay(500); }) -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_exportModifier", ` export function [#|foo|]() { return fetch('https://typescriptlang.org').then(s => console.log(s)); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_OutermostOnlySuccess", ` @@ -1377,7 +1383,7 @@ function [#|foo|]() { return fetch('a').then(() => { return fetch('b').then(() => 'c'); }) -} + `); _testConvertToAsyncFunctionFailedSuggestion("convertToAsyncFunction_OutermostOnlyFailure", ` @@ -1385,7 +1391,7 @@ function foo() { return fetch('a').then([#|() => {|] return fetch('b').then(() => 'c'); }) -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_thenTypeArgument1", ` @@ -1393,11 +1399,11 @@ type APIResponse = { success: true, data: T } | { success: false }; function wrapResponse(response: T): APIResponse { return { success: true, data: response }; -} + function [#|get|]() { return Promise.resolve(undefined!).then>(wrapResponse); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_thenTypeArgument2", ` @@ -1405,11 +1411,11 @@ type APIResponse = { success: true, data: T } | { success: false }; function wrapResponse(response: T): APIResponse { return { success: true, data: response }; -} + function [#|get|]() { return Promise.resolve(undefined!).then>(d => wrapResponse(d)); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_thenTypeArgument3", ` @@ -1417,14 +1423,14 @@ type APIResponse = { success: true, data: T } | { success: false }; function wrapResponse(response: T): APIResponse { return { success: true, data: response }; -} + function [#|get|]() { return Promise.resolve(undefined!).then>(d => { console.log(d); return wrapResponse(d); }); -} + `); _testConvertToAsyncFunction("convertToAsyncFunction_catchTypeArgument1", ` @@ -1434,7 +1440,7 @@ function [#|get|]() { return Promise .resolve>({ success: true, data: { email: "" } }) .catch>(() => ({ success: false })); -} + `); _testConvertToAsyncFunctionFailed("convertToAsyncFunction_threeArguments", ` @@ -1442,4 +1448,4 @@ function [#|f|]() { return Promise.resolve().then(undefined, undefined, () => 1); }`); }); -} + diff --git a/src/testRunner/unittests/services/documentRegistry.ts b/src/testRunner/unittests/services/documentRegistry.ts index e7c80486e975a..daf3884e9ed8b 100644 --- a/src/testRunner/unittests/services/documentRegistry.ts +++ b/src/testRunner/unittests/services/documentRegistry.ts @@ -1,66 +1,73 @@ +import { createDocumentRegistry } from "../../../../built/local/services"; +import { getDefaultCompilerOptions } from "../../../services/services"; +import { ScriptSnapshot } from "../../../services/types"; +import { assert } from "console"; +import { CompilerOptions, ScriptTarget, ModuleKind } from "../../../compiler/types"; +import { createTextChangeRange, createTextSpan } from "../../../../built/local/compiler"; + describe("unittests:: services:: DocumentRegistry", () => { it("documents are shared between projects", () => { - const documentRegistry = ts.createDocumentRegistry(); - const defaultCompilerOptions = ts.getDefaultCompilerOptions(); + const documentRegistry = createDocumentRegistry(); + const defaultCompilerOptions = getDefaultCompilerOptions(); - const f1 = documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); - const f2 = documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); + const f1 = documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); + const f2 = documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); assert(f1 === f2, "DocumentRegistry should return the same document for the same name"); }); it("documents are refreshed when settings in compilation settings affect syntax", () => { - const documentRegistry = ts.createDocumentRegistry(); - const compilerOptions: ts.CompilerOptions = { target: ts.ScriptTarget.ES5, module: ts.ModuleKind.AMD }; + const documentRegistry = createDocumentRegistry(); + const compilerOptions: CompilerOptions = { target: ScriptTarget.ES5, module: ModuleKind.AMD }; // change compilation setting that doesn't affect parsing - should have the same document compilerOptions.declaration = true; - const f1 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); + const f1 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); compilerOptions.declaration = false; - const f2 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); + const f2 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); assert(f1 === f2, "Expected to have the same document instance"); // change value of compilation setting that is used during production of AST - new document is required - compilerOptions.target = ts.ScriptTarget.ES3; - const f3 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); + compilerOptions.target = ScriptTarget.ES3; + const f3 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); assert(f1 !== f3, "Changed target: Expected to have different instances of document"); compilerOptions.preserveConstEnums = true; - const f4 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); + const f4 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); assert(f3 === f4, "Changed preserveConstEnums: Expected to have the same instance of the document"); - compilerOptions.module = ts.ModuleKind.System; - const f5 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); + compilerOptions.module = ModuleKind.System; + const f5 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); assert(f4 !== f5, "Changed module: Expected to have different instances of the document"); }); it("Acquiring document gets correct version 1", () => { - const documentRegistry = ts.createDocumentRegistry(); - const defaultCompilerOptions = ts.getDefaultCompilerOptions(); + const documentRegistry = createDocumentRegistry(); + const defaultCompilerOptions = getDefaultCompilerOptions(); // Simulate one LS getting the document. - documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); + documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, ScriptSnapshot.fromString("var x = 1;"), /* version */ "1"); // Simulate another LS getting the document at another version. - const f2 = documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), /* version */ "2"); + const f2 = documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, ScriptSnapshot.fromString("var x = 1;"), /* version */ "2"); assert(f2.version === "2"); }); it("Acquiring document gets correct version 2", () => { - const documentRegistry = ts.createDocumentRegistry(); - const defaultCompilerOptions = ts.getDefaultCompilerOptions(); + const documentRegistry = createDocumentRegistry(); + const defaultCompilerOptions = getDefaultCompilerOptions(); const contents = "var x = 1;"; - const snapshot = ts.ScriptSnapshot.fromString(contents); + const snapshot = ScriptSnapshot.fromString(contents); // Always treat any change as a full change. - snapshot.getChangeRange = () => ts.createTextChangeRange(ts.createTextSpan(0, contents.length), contents.length); + snapshot.getChangeRange = () => createTextChangeRange(createTextSpan(0, contents.length), contents.length); // Simulate one LS getting the document. documentRegistry.acquireDocument("file1.ts", defaultCompilerOptions, snapshot, /* version */ "1"); diff --git a/src/testRunner/unittests/services/extract/constants.ts b/src/testRunner/unittests/services/extract/constants.ts index d9cd5010d5b09..c43fbc5cb6072 100644 --- a/src/testRunner/unittests/services/extract/constants.ts +++ b/src/testRunner/unittests/services/extract/constants.ts @@ -1,4 +1,4 @@ -namespace ts { + describe("unittests:: services:: extract:: extractConstants", () => { testExtractConstant("extractConstant_TopLevel", `let x = [#|1|];`); @@ -35,14 +35,14 @@ namespace ts { let i = 0; function F() { [#|i++|]; -} + `); testExtractConstant("extractConstant_ExpressionStatementConsumesLocal", ` function F() { let i = 0; [#|i++|]; -} + `); testExtractConstant("extractConstant_BlockScopes_NoDependencies", @@ -119,14 +119,14 @@ for (let i = 0; i < 10; i++) { for (let j = 0; j < 10; j++) { const x = [#|i + 1|]; } -} + `); testExtractConstant("extractConstant_StatementInsertionPosition1", ` const i = 0; for (let j = 0; j < 10; j++) { const x = [#|i + 1|]; -} + `); testExtractConstant("extractConstant_StatementInsertionPosition2", ` @@ -135,13 +135,13 @@ function F() { for (let j = 0; j < 10; j++) { const x = [#|i + 1|]; } -} + `); testExtractConstant("extractConstant_StatementInsertionPosition3", ` for (let j = 0; j < 10; j++) { const x = [#|2 + 1|]; -} + `); testExtractConstant("extractConstant_StatementInsertionPosition4", ` @@ -149,7 +149,7 @@ function F() { for (let j = 0; j < 10; j++) { const x = [#|2 + 1|]; } -} + `); testExtractConstant("extractConstant_StatementInsertionPosition5", ` @@ -158,13 +158,13 @@ function F0() { function F2(x = [#|2 + 1|]) { } } -} + `); testExtractConstant("extractConstant_StatementInsertionPosition6", ` class C { x = [#|2 + 1|]; -} + `); testExtractConstant("extractConstant_StatementInsertionPosition7", ` @@ -175,7 +175,7 @@ class C { x = [#|i + 1|]; } } -} + `); testExtractConstant("extractConstant_TripleSlash", ` @@ -270,14 +270,14 @@ let i: I = [#|{ a: 1 }|]; testExtractConstant("extractConstant_ContextualType_Lambda", ` const myObj: { member(x: number, y: string): void } = { member: [#|(x, y) => x + y|], -} + `); testExtractConstant("extractConstant_CaseClauseExpression", ` switch (1) { case [#|1|]: break; -} + `); }); @@ -288,4 +288,4 @@ switch (1) { function testExtractConstantFailed(caption: string, text: string) { testExtractSymbolFailed(caption, text, Diagnostics.Extract_constant); } -} + diff --git a/src/testRunner/unittests/services/extract/functions.ts b/src/testRunner/unittests/services/extract/functions.ts index 6f7eecce05a64..e566e4738453e 100644 --- a/src/testRunner/unittests/services/extract/functions.ts +++ b/src/testRunner/unittests/services/extract/functions.ts @@ -1,4 +1,5 @@ -namespace ts { +import { testExtractSymbol } from "./helpers"; + describe("unittests:: services:: extract:: extractFunctions", () => { testExtractFunction("extractFunction1", `namespace A { @@ -265,7 +266,7 @@ namespace ts { `function M1() { } function M2() { [#|return 1;|] -} + function M3() { }`); // Extraction position - class without ctor testExtractFunction("extractFunction26", @@ -302,7 +303,7 @@ function M3() { }`); kind: "Unary"; operator: string; operand: any; -} + function parseUnaryExpression(operator: string): UnaryExpression { [#|return { @@ -310,7 +311,7 @@ function parseUnaryExpression(operator: string): UnaryExpression { operator, operand: parsePrimaryExpression(), };|] -} + function parsePrimaryExpression(): any { throw "Not implemented"; @@ -561,4 +562,4 @@ function F() { function testExtractFunction(caption: string, text: string, includeLib?: boolean) { testExtractSymbol(caption, text, "extractFunction", Diagnostics.Extract_function, includeLib); } -} + diff --git a/src/testRunner/unittests/services/extract/helpers.ts b/src/testRunner/unittests/services/extract/helpers.ts index 69148896ef74a..e836f1251d6e7 100644 --- a/src/testRunner/unittests/services/extract/helpers.ts +++ b/src/testRunner/unittests/services/extract/helpers.ts @@ -1,4 +1,11 @@ -namespace ts { +import { createMap, hasProperty, notImplemented, noop, returnFalse, find } from "../../../../compiler/core"; +import { CharacterCodes, ScriptTarget, DiagnosticMessage, Extension, Program } from "../../../../compiler/types"; +import { isIdentifierPart } from "../../../../compiler/scanner"; +import { LanguageServiceHost, RefactorContext, testFormatSettings, emptyOptions } from "../../../../services/types"; +import { assert } from "console"; +import { createTextSpanFromRange } from "../../../../services/utilities"; +import { length } from "ms"; + interface Range { pos: number; end: number; @@ -105,16 +112,16 @@ namespace ts { formatContext: formatting.getFormatContext(testFormatSettings, notImplementedHost), preferences: emptyOptions, }; - const rangeToExtract = refactor.extractSymbol.getRangeToExtract(sourceFile, createTextSpanFromRange(selectionRange)); + const rangeToExtract = refactor.getRangeToExtract(sourceFile, createTextSpanFromRange(selectionRange)); assert.equal(rangeToExtract.errors, undefined, rangeToExtract.errors && "Range error: " + rangeToExtract.errors[0].messageText); - const infos = refactor.extractSymbol.getAvailableActions(context); + const infos = refactor.getAvailableActions(context); const actions = find(infos, info => info.description === description.message)!.actions; const data: string[] = []; data.push(`// ==ORIGINAL==`); data.push(text.replace("[#|", "/*[#|*/").replace("|]", "/*|]*/")); for (const action of actions) { - const { renameLocation, edits } = refactor.extractSymbol.getEditsForAction(context, action.name)!; + const { renameLocation, edits } = refactor.getEditsForAction(context, action.name)!; assert.lengthOf(edits, 1); data.push(`// ==SCOPE::${action.description}==`); const newText = textChanges.applyChanges(sourceFile.text, edits[0].textChanges); @@ -168,10 +175,10 @@ namespace ts { formatContext: formatting.getFormatContext(testFormatSettings, notImplementedHost), preferences: emptyOptions, }; - const rangeToExtract = refactor.extractSymbol.getRangeToExtract(sourceFile, createTextSpanFromRange(selectionRange)); + const rangeToExtract = refactor.getRangeToExtract(sourceFile, createTextSpanFromRange(selectionRange)); assert.isUndefined(rangeToExtract.errors, rangeToExtract.errors && "Range error: " + rangeToExtract.errors[0].messageText); - const infos = refactor.extractSymbol.getAvailableActions(context); + const infos = refactor.getAvailableActions(context); assert.isUndefined(find(infos, info => info.description === description.message)); }); } -} + diff --git a/src/testRunner/unittests/services/extract/ranges.ts b/src/testRunner/unittests/services/extract/ranges.ts index 8fe5aeb3c131f..1604b33b8c58e 100644 --- a/src/testRunner/unittests/services/extract/ranges.ts +++ b/src/testRunner/unittests/services/extract/ranges.ts @@ -1,4 +1,11 @@ -namespace ts { +import { extractTest } from "./helpers"; +import { createSourceFile } from "../../../../compiler/parser"; +import { ScriptTarget } from "../../../../compiler/types"; +import { createTextSpanFromRange } from "../../../../services/utilities"; +import { assert } from "console"; +import { isArray } from "util"; +import { last } from "../../../../compiler/core"; + function testExtractRangeFailed(caption: string, s: string, expectedErrors: string[]) { return it(caption, () => { const t = extractTest(s); @@ -7,7 +14,7 @@ namespace ts { if (!selectionRange) { throw new Error(`Test ${s} does not specify selection range`); } - const result = refactor.extractSymbol.getRangeToExtract(file, createTextSpanFromRange(selectionRange), /*userRequested*/ false); + const result = refactor.getRangeToExtract(file, createTextSpanFromRange(selectionRange), /*userRequested*/ false); assert(result.targetRange === undefined, "failure expected"); const sortedErrors = result.errors!.map(e => e.messageText).sort(); assert.deepEqual(sortedErrors, expectedErrors.sort(), "unexpected errors"); @@ -21,7 +28,7 @@ namespace ts { if (!selectionRange) { throw new Error(`Test ${s} does not specify selection range`); } - const result = refactor.extractSymbol.getRangeToExtract(f, createTextSpanFromRange(selectionRange)); + const result = refactor.getRangeToExtract(f, createTextSpanFromRange(selectionRange)); const expectedRange = t.ranges.get("extracted"); if (expectedRange) { let pos: number, end: number; @@ -177,134 +184,118 @@ namespace ts { }); testExtractRangeFailed("extractRangeFailed1", - ` -namespace A { -function f() { - [#| - let x = 1 - if (x) { - return 10; +`namespace A { + function f() { + [#| + let x = 1 + if (x) { + return 10; + } + |] } - |] -} -} - `, - [refactor.extractSymbol.Messages.cannotExtractRangeContainingConditionalReturnStatement.message]); +}`, + [refactor.Messages.cannotExtractRangeContainingConditionalReturnStatement.message]); testExtractRangeFailed("extractRangeFailed2", - ` -namespace A { -function f() { - while (true) { - [#| - let x = 1 - if (x) { - break; +`namespace A { + function f() { + while (true) { + [#| + let x = 1 + if (x) { + break; + } + |] } - |] } -} -} - `, - [refactor.extractSymbol.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); +}`, + [refactor.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); testExtractRangeFailed("extractRangeFailed3", - ` -namespace A { -function f() { - while (true) { - [#| - let x = 1 - if (x) { - continue; +`namespace A { + function f() { + while (true) { + [#| + let x = 1 + if (x) { + continue; + } + |] } - |] } -} -} - `, - [refactor.extractSymbol.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); +}`, + [refactor.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); testExtractRangeFailed("extractRangeFailed4", - ` -namespace A { -function f() { - l1: { - [#| - let x = 1 - if (x) { - break l1; +`namespace A { + function f() { + l1: { + [#| + let x = 1 + if (x) { + break l1; + } + |] } - |] } -} -} - `, - [refactor.extractSymbol.Messages.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange.message]); +}`, + [refactor.Messages.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange.message]); testExtractRangeFailed("extractRangeFailed5", - ` -namespace A { -function f() { - [#| - try { - f2() - return 10; +`namespace A { + function f() { + [#| + try { + f2() + return 10; + } + catch (e) { + } + |] } - catch (e) { + function f2() { } - |] -} -function f2() { -} -} - `, - [refactor.extractSymbol.Messages.cannotExtractRangeContainingConditionalReturnStatement.message]); +}`, + [refactor.Messages.cannotExtractRangeContainingConditionalReturnStatement.message]); testExtractRangeFailed("extractRangeFailed6", - ` -namespace A { -function f() { - [#| - try { - f2() +`namespace A { + function f() { + [#| + try { + f2() + } + catch (e) { + return 10; + } + |] } - catch (e) { - return 10; + function f2() { } - |] -} -function f2() { -} -} - `, - [refactor.extractSymbol.Messages.cannotExtractRangeContainingConditionalReturnStatement.message]); +}`, + [refactor.Messages.cannotExtractRangeContainingConditionalReturnStatement.message]); testExtractRangeFailed("extractRangeFailed7", - ` -function test(x: number) { -while (x) { - x--; - [#|break;|] -} -} - `, - [refactor.extractSymbol.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); +`function test(x: number) { + while (x) { + x--; + [#|break;|] + } +}`, + [refactor.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); testExtractRangeFailed("extractRangeFailed8", - ` -function test(x: number) { -switch (x) { - case 1: - [#|break;|] -} -} - `, - [refactor.extractSymbol.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); +`function test(x: number) { + switch (x) { + case 1: + [#|break;|] + } +}`, + [refactor.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); testExtractRangeFailed("extractRangeFailed9", `var x = ([#||]1 + 2);`, - [refactor.extractSymbol.Messages.cannotExtractEmpty.message]); + [refactor.Messages.cannotExtractEmpty.message]); testExtractRangeFailed("extractRangeFailed10", ` @@ -313,7 +304,7 @@ switch (x) { } } `, - [refactor.extractSymbol.Messages.cannotExtractRange.message]); + [refactor.Messages.cannotExtractRange.message]); testExtractRangeFailed("extractRangeFailed11", ` @@ -328,15 +319,15 @@ switch (x) { } } `, - [refactor.extractSymbol.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); + [refactor.Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements.message]); testExtractRangeFailed("extractRangeFailed12", `let [#|x|];`, - [refactor.extractSymbol.Messages.statementOrExpressionExpected.message]); + [refactor.Messages.statementOrExpressionExpected.message]); testExtractRangeFailed("extractRangeFailed13", `[#|return;|]`, - [refactor.extractSymbol.Messages.cannotExtractRange.message]); + [refactor.Messages.cannotExtractRange.message]); testExtractRangeFailed("extractRangeFailed14", ` @@ -345,7 +336,7 @@ switch (x) { break;|] } `, - [refactor.extractSymbol.Messages.cannotExtractRange.message]); + [refactor.Messages.cannotExtractRange.message]); testExtractRangeFailed("extractRangeFailed15", ` @@ -354,7 +345,7 @@ switch (x) { break|]; } `, - [refactor.extractSymbol.Messages.cannotExtractRange.message]); + [refactor.Messages.cannotExtractRange.message]); // Documentation only - it would be nice if the result were [$|1|] testExtractRangeFailed("extractRangeFailed16", @@ -364,7 +355,7 @@ switch (x) { break; } `, - [refactor.extractSymbol.Messages.cannotExtractRange.message]); + [refactor.Messages.cannotExtractRange.message]); // Documentation only - it would be nice if the result were [$|1|] testExtractRangeFailed("extractRangeFailed17", @@ -374,16 +365,16 @@ switch (x) { break; } `, - [refactor.extractSymbol.Messages.cannotExtractRange.message]); + [refactor.Messages.cannotExtractRange.message]); testExtractRangeFailed("extractRangeFailed18", `[#|{ 1;|] }`, - [refactor.extractSymbol.Messages.cannotExtractRange.message]); + [refactor.Messages.cannotExtractRange.message]); testExtractRangeFailed("extractRangeFailed19", `[#|/** @type {number} */|] const foo = 1;`, - [refactor.extractSymbol.Messages.cannotExtractJSDoc.message]); + [refactor.Messages.cannotExtractJSDoc.message]); - testExtractRangeFailed("extract-method-not-for-token-expression-statement", `[#|a|]`, [refactor.extractSymbol.Messages.cannotExtractIdentifier.message]); + testExtractRangeFailed("extract-method-not-for-token-expression-statement", `[#|a|]`, [refactor.Messages.cannotExtractIdentifier.message]); }); -} + diff --git a/src/testRunner/unittests/services/extract/symbolWalker.ts b/src/testRunner/unittests/services/extract/symbolWalker.ts index 58d9dcb577f39..e0fdfcecb0efd 100644 --- a/src/testRunner/unittests/services/extract/symbolWalker.ts +++ b/src/testRunner/unittests/services/extract/symbolWalker.ts @@ -1,4 +1,8 @@ -namespace ts { +import { SourceFile, TypeChecker } from "../../../../compiler/types"; +import { forEach } from "../../../../compiler/core"; +import { getSourceFileOfNode } from "../../../../compiler/utilities"; +import { assert } from "console"; + describe("unittests:: services:: extract:: Symbol Walker", () => { function test(description: string, source: string, verifier: (file: SourceFile, checker: TypeChecker) => void) { it(description, () => { @@ -17,7 +21,7 @@ interface Bar { x: number; y: number; history: Bar[]; -} + export default function foo(a: number, b: Bar): void {}`, (file, checker) => { let foundCount = 0; let stdLibRefSymbols = 0; @@ -42,4 +46,4 @@ export default function foo(a: number, b: Bar): void {}`, (file, checker) => { assert.equal(stdLibRefSymbols, 1); // Expect 1 stdlib entry symbol - the implicit Array referenced by Bar.history }); }); -} + diff --git a/src/testRunner/unittests/services/hostNewLineSupport.ts b/src/testRunner/unittests/services/hostNewLineSupport.ts index 057cb60602a4b..0e0e628d3e1f7 100644 --- a/src/testRunner/unittests/services/hostNewLineSupport.ts +++ b/src/testRunner/unittests/services/hostNewLineSupport.ts @@ -1,4 +1,9 @@ -namespace ts { +import { CompilerOptions, NewLineKind } from "../../../compiler/types"; +import { IScriptSnapshot, ScriptSnapshot, LanguageServiceHost } from "../../../services/types"; +import { find, map } from "../../../compiler/core"; +import { createLanguageService } from "../../../services/services"; +import { assert } from "console"; + describe("unittests:: services:: hostNewLineSupport", () => { function testLSWithFiles(settings: CompilerOptions, files: Harness.Compiler.TestFile[]) { function snapFor(path: string): IScriptSnapshot | undefined { @@ -68,4 +73,4 @@ namespace ts { { newLine: NewLineKind.LineFeed }); }); }); -} + diff --git a/src/testRunner/unittests/services/languageService.ts b/src/testRunner/unittests/services/languageService.ts index 0cc4d1acd294a..b7af7c1a0874c 100644 --- a/src/testRunner/unittests/services/languageService.ts +++ b/src/testRunner/unittests/services/languageService.ts @@ -1,4 +1,9 @@ -namespace ts { +import { ScriptSnapshot, LanguageServiceHost } from "../../../services/types"; +import { getDefaultLibFilePath, getDefaultCompilerOptions } from "../../../services/services"; +import { assert } from "console"; +import { neverArray, createMap, returnTrue } from "../../../compiler/core"; +import { Program } from "../../../compiler/types"; + const _chai: typeof import("chai") = require("chai"); const expect: typeof _chai.expect = _chai.expect; describe("unittests:: services:: languageService", () => { @@ -19,7 +24,7 @@ export function Component(x: Config): any;` }; function createLanguageService() { - return ts.createLanguageService({ + return createLanguageService({ getCompilationSettings() { return {}; }, @@ -58,8 +63,8 @@ export function Component(x: Config): any;` ), { emitSkipped: true, - diagnostics: emptyArray, - outputFiles: emptyArray, + diagnostics: neverArray, + outputFiles: neverArray, exportedModulesFromDeclarationEmit: undefined } ); @@ -72,7 +77,7 @@ export function Component(x: Config): any;` ), { emitSkipped: false, - diagnostics: emptyArray, + diagnostics: neverArray, outputFiles: [{ name: "foo.d.ts", text: "export {};\r\n", @@ -104,7 +109,7 @@ export function Component(x: Config): any;` getCurrentDirectory: () => "/project", getDefaultLibFileName: () => "/lib/lib.d.ts" }; - const ls = ts.createLanguageService(host); + const ls = createLanguageService(host); const program1 = ls.getProgram()!; const program2 = ls.getProgram()!; assert.strictEqual(program1, program2); @@ -139,4 +144,4 @@ export function Component(x: Config): any;` }); }); }); -} + diff --git a/src/testRunner/unittests/services/organizeImports.ts b/src/testRunner/unittests/services/organizeImports.ts index 3e2b1108931e4..51a0be7635ce7 100644 --- a/src/testRunner/unittests/services/organizeImports.ts +++ b/src/testRunner/unittests/services/organizeImports.ts @@ -1,4 +1,12 @@ -namespace ts { +import { assert } from "console"; +import { Comparison } from "../../../compiler/corePublic"; +import { testFormatSettings, emptyOptions } from "../../../services/types"; +import { newLineCharacter } from "./extract/helpers"; +import { JsxEmit, ImportDeclaration, ScriptTarget, ScriptKind, ExportDeclaration, Node, SyntaxKind, ImportClause, NamespaceImport, NamedImports, ImportSpecifier, NamedExports, ExportSpecifier, Identifier, LiteralLikeNode } from "../../../compiler/types"; +import { createSourceFile } from "../../../compiler/parser"; +import { filter } from "../../../compiler/core"; +import { isImportDeclaration, isExportDeclaration } from "../../../../built/local/compiler"; + describe("unittests:: services:: organizeImports", () => { describe("Sort imports", () => { it("Sort - non-relative vs non-relative", () => { @@ -618,7 +626,7 @@ declare module "mod" { import { F2 } from "lib"; function F(f1: {} = F1, f2: {} = F2) {} -} + `, }, libFile); @@ -635,7 +643,7 @@ declare module "mod" { import { F2 } from "lib"; function F(f1: {} = F1, f2: {} = F2) {} -} + import E from "lib"; import "lib"; @@ -752,7 +760,7 @@ export function Global(props: any): ReactElement;` export namespace React { interface FunctionComponent { } -} + ` } ); @@ -877,7 +885,7 @@ declare module "mod" { export { F1 } from "lib"; export * from "lib"; export { F2 } from "lib"; -} + `, }, libFile); @@ -892,7 +900,7 @@ declare module "mod" { export { F1 } from "lib"; export * from "lib"; export { F2 } from "lib"; -} + export { E } from "lib"; export * from "lib"; @@ -1036,4 +1044,4 @@ export * from "lib"; } } }); -} + diff --git a/src/testRunner/unittests/services/patternMatcher.ts b/src/testRunner/unittests/services/patternMatcher.ts index 9f3cbf4b6d7c6..76d4f0e3ce0e3 100644 --- a/src/testRunner/unittests/services/patternMatcher.ts +++ b/src/testRunner/unittests/services/patternMatcher.ts @@ -1,3 +1,7 @@ +import { PatternMatchKind, PatternMatch, createPatternMatcher } from "../../../services/patternMatcher"; +import { assert } from "console"; +import { TextSpan } from "../../../compiler/types"; + describe("unittests:: services:: PatternMatcher", () => { describe("BreakIntoCharacterSpans", () => { it("EmptyIdentifier", () => { @@ -93,27 +97,27 @@ describe("unittests:: services:: PatternMatcher", () => { describe("SingleWordPattern", () => { it("PreferCaseSensitiveExact", () => { - assertSegmentMatch("Foo", "Foo", { kind: ts.PatternMatchKind.exact, isCaseSensitive: true }); + assertSegmentMatch("Foo", "Foo", { kind: PatternMatchKind.exact, isCaseSensitive: true }); }); it("PreferCaseSensitiveExactInsensitive", () => { - assertSegmentMatch("foo", "Foo", { kind: ts.PatternMatchKind.exact, isCaseSensitive: false }); + assertSegmentMatch("foo", "Foo", { kind: PatternMatchKind.exact, isCaseSensitive: false }); }); it("PreferCaseSensitivePrefix", () => { - assertSegmentMatch("Foo", "Fo", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: true }); + assertSegmentMatch("Foo", "Fo", { kind: PatternMatchKind.prefix, isCaseSensitive: true }); }); it("PreferCaseSensitivePrefixCaseInsensitive", () => { - assertSegmentMatch("Foo", "fo", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: false }); + assertSegmentMatch("Foo", "fo", { kind: PatternMatchKind.prefix, isCaseSensitive: false }); }); it("PreferCaseSensitiveCamelCaseMatchSimple", () => { - assertSegmentMatch("FogBar", "FB", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: true }); + assertSegmentMatch("FogBar", "FB", { kind: PatternMatchKind.camelCase, isCaseSensitive: true }); }); it("PreferCaseSensitiveCamelCaseMatchPartialPattern", () => { - assertSegmentMatch("FogBar", "FoB", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: true }); + assertSegmentMatch("FogBar", "FoB", { kind: PatternMatchKind.camelCase, isCaseSensitive: true }); }); it("PreferCaseSensitiveCamelCaseMatchToLongPattern1", () => { @@ -133,35 +137,35 @@ describe("unittests:: services:: PatternMatcher", () => { }); it("TwoUppercaseCharacters", () => { - assertSegmentMatch("SimpleUIElement", "SiUI", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: true }); + assertSegmentMatch("SimpleUIElement", "SiUI", { kind: PatternMatchKind.camelCase, isCaseSensitive: true }); }); it("PreferCaseSensitiveLowercasePattern", () => { - assertSegmentMatch("FogBar", "b", { kind: ts.PatternMatchKind.substring, isCaseSensitive: false }); + assertSegmentMatch("FogBar", "b", { kind: PatternMatchKind.substring, isCaseSensitive: false }); }); it("PreferCaseSensitiveLowercasePattern2", () => { - assertSegmentMatch("FogBar", "fB", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: false }); + assertSegmentMatch("FogBar", "fB", { kind: PatternMatchKind.camelCase, isCaseSensitive: false }); }); it("PreferCaseSensitiveTryUnderscoredName", () => { - assertSegmentMatch("_fogBar", "_fB", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: true }); + assertSegmentMatch("_fogBar", "_fB", { kind: PatternMatchKind.camelCase, isCaseSensitive: true }); }); it("PreferCaseSensitiveTryUnderscoredName2", () => { - assertSegmentMatch("_fogBar", "fB", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: true }); + assertSegmentMatch("_fogBar", "fB", { kind: PatternMatchKind.camelCase, isCaseSensitive: true }); }); it("PreferCaseSensitiveTryUnderscoredNameInsensitive", () => { - assertSegmentMatch("_FogBar", "_fB", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: false }); + assertSegmentMatch("_FogBar", "_fB", { kind: PatternMatchKind.camelCase, isCaseSensitive: false }); }); it("PreferCaseSensitiveMiddleUnderscore", () => { - assertSegmentMatch("Fog_Bar", "FB", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: true }); + assertSegmentMatch("Fog_Bar", "FB", { kind: PatternMatchKind.camelCase, isCaseSensitive: true }); }); it("PreferCaseSensitiveMiddleUnderscore2", () => { - assertSegmentMatch("Fog_Bar", "F_B", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: true }); + assertSegmentMatch("Fog_Bar", "F_B", { kind: PatternMatchKind.camelCase, isCaseSensitive: true }); }); it("PreferCaseSensitiveMiddleUnderscore3", () => { @@ -169,15 +173,15 @@ describe("unittests:: services:: PatternMatcher", () => { }); it("PreferCaseSensitiveMiddleUnderscore4", () => { - assertSegmentMatch("Fog_Bar", "f_B", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: false }); + assertSegmentMatch("Fog_Bar", "f_B", { kind: PatternMatchKind.camelCase, isCaseSensitive: false }); }); it("PreferCaseSensitiveMiddleUnderscore5", () => { - assertSegmentMatch("Fog_Bar", "F_b", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: false }); + assertSegmentMatch("Fog_Bar", "F_b", { kind: PatternMatchKind.camelCase, isCaseSensitive: false }); }); it("AllLowerPattern1", () => { - assertSegmentMatch("FogBarChangedEventArgs", "changedeventargs", { kind: ts.PatternMatchKind.substring, isCaseSensitive: false }); + assertSegmentMatch("FogBarChangedEventArgs", "changedeventargs", { kind: PatternMatchKind.substring, isCaseSensitive: false }); }); it("AllLowerPattern2", () => { @@ -185,7 +189,7 @@ describe("unittests:: services:: PatternMatcher", () => { }); it("AllLowerPattern3", () => { - assertSegmentMatch("ABCDEFGH", "bcd", { kind: ts.PatternMatchKind.substring, isCaseSensitive: false }); + assertSegmentMatch("ABCDEFGH", "bcd", { kind: PatternMatchKind.substring, isCaseSensitive: false }); }); it("AllLowerPattern4", () => { @@ -195,55 +199,55 @@ describe("unittests:: services:: PatternMatcher", () => { describe("MultiWordPattern", () => { it("ExactWithLowercase", () => { - assertSegmentMatch("AddMetadataReference", "addmetadatareference", { kind: ts.PatternMatchKind.exact, isCaseSensitive: false }); + assertSegmentMatch("AddMetadataReference", "addmetadatareference", { kind: PatternMatchKind.exact, isCaseSensitive: false }); }); it("SingleLowercasedSearchWord1", () => { - assertSegmentMatch("AddMetadataReference", "add", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: false }); + assertSegmentMatch("AddMetadataReference", "add", { kind: PatternMatchKind.prefix, isCaseSensitive: false }); }); it("SingleLowercasedSearchWord2", () => { - assertSegmentMatch("AddMetadataReference", "metadata", { kind: ts.PatternMatchKind.substring, isCaseSensitive: false }); + assertSegmentMatch("AddMetadataReference", "metadata", { kind: PatternMatchKind.substring, isCaseSensitive: false }); }); it("SingleUppercaseSearchWord1", () => { - assertSegmentMatch("AddMetadataReference", "Add", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "Add", { kind: PatternMatchKind.prefix, isCaseSensitive: true }); }); it("SingleUppercaseSearchWord2", () => { - assertSegmentMatch("AddMetadataReference", "Metadata", { kind: ts.PatternMatchKind.substring, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "Metadata", { kind: PatternMatchKind.substring, isCaseSensitive: true }); }); it("SingleUppercaseSearchLetter1", () => { - assertSegmentMatch("AddMetadataReference", "A", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "A", { kind: PatternMatchKind.prefix, isCaseSensitive: true }); }); it("SingleUppercaseSearchLetter2", () => { - assertSegmentMatch("AddMetadataReference", "M", { kind: ts.PatternMatchKind.substring, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "M", { kind: PatternMatchKind.substring, isCaseSensitive: true }); }); it("TwoLowercaseWords0", () => { - assertSegmentMatch("AddMetadataReference", "add metadata", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: false }); + assertSegmentMatch("AddMetadataReference", "add metadata", { kind: PatternMatchKind.prefix, isCaseSensitive: false }); }); it("TwoLowercaseWords1", () => { - assertSegmentMatch("AddMetadataReference", "A M", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "A M", { kind: PatternMatchKind.prefix, isCaseSensitive: true }); }); it("TwoLowercaseWords2", () => { - assertSegmentMatch("AddMetadataReference", "AM", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "AM", { kind: PatternMatchKind.camelCase, isCaseSensitive: true }); }); it("TwoLowercaseWords3", () => { - assertSegmentMatch("AddMetadataReference", "ref Metadata", { kind: ts.PatternMatchKind.substring, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "ref Metadata", { kind: PatternMatchKind.substring, isCaseSensitive: true }); }); it("TwoLowercaseWords4", () => { - assertSegmentMatch("AddMetadataReference", "ref M", { kind: ts.PatternMatchKind.substring, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "ref M", { kind: PatternMatchKind.substring, isCaseSensitive: true }); }); it("MixedCamelCase", () => { - assertSegmentMatch("AddMetadataReference", "AMRe", { kind: ts.PatternMatchKind.camelCase, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "AMRe", { kind: PatternMatchKind.camelCase, isCaseSensitive: true }); }); it("BlankPattern", () => { @@ -255,15 +259,15 @@ describe("unittests:: services:: PatternMatcher", () => { }); it("EachWordSeparately1", () => { - assertSegmentMatch("AddMetadataReference", "add Meta", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: false }); + assertSegmentMatch("AddMetadataReference", "add Meta", { kind: PatternMatchKind.prefix, isCaseSensitive: false }); }); it("EachWordSeparately2", () => { - assertSegmentMatch("AddMetadataReference", "Add meta", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "Add meta", { kind: PatternMatchKind.prefix, isCaseSensitive: true }); }); it("EachWordSeparately3", () => { - assertSegmentMatch("AddMetadataReference", "Add Meta", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: true }); + assertSegmentMatch("AddMetadataReference", "Add Meta", { kind: PatternMatchKind.prefix, isCaseSensitive: true }); }); it("MixedCasing", () => { @@ -275,7 +279,7 @@ describe("unittests:: services:: PatternMatcher", () => { }); it("AsteriskSplit", () => { - assertSegmentMatch("GetKeyWord", "K*W", { kind: ts.PatternMatchKind.substring, isCaseSensitive: true }); + assertSegmentMatch("GetKeyWord", "K*W", { kind: PatternMatchKind.substring, isCaseSensitive: true }); }); it("LowercaseSubstring1", () => { @@ -283,13 +287,13 @@ describe("unittests:: services:: PatternMatcher", () => { }); it("LowercaseSubstring2", () => { - assertSegmentMatch("FooAttribute", "a", { kind: ts.PatternMatchKind.substring, isCaseSensitive: false }); + assertSegmentMatch("FooAttribute", "a", { kind: PatternMatchKind.substring, isCaseSensitive: false }); }); }); describe("DottedPattern", () => { it("DottedPattern1", () => { - assertFullMatch("Foo.Bar.Baz", "Quux", "B.Q", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: true }); + assertFullMatch("Foo.Bar.Baz", "Quux", "B.Q", { kind: PatternMatchKind.prefix, isCaseSensitive: true }); }); it("DottedPattern2", () => { @@ -297,15 +301,15 @@ describe("unittests:: services:: PatternMatcher", () => { }); it("DottedPattern3", () => { - assertFullMatch("Foo.Bar.Baz", "Quux", "B.B.Q", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: true }); + assertFullMatch("Foo.Bar.Baz", "Quux", "B.B.Q", { kind: PatternMatchKind.prefix, isCaseSensitive: true }); }); it("DottedPattern4", () => { - assertFullMatch("Foo.Bar.Baz", "Quux", "Baz.Quux", { kind: ts.PatternMatchKind.exact, isCaseSensitive: true }); + assertFullMatch("Foo.Bar.Baz", "Quux", "Baz.Quux", { kind: PatternMatchKind.exact, isCaseSensitive: true }); }); it("DottedPattern5", () => { - assertFullMatch("Foo.Bar.Baz", "Quux", "F.B.B.Quux", { kind: ts.PatternMatchKind.prefix, isCaseSensitive: true }); + assertFullMatch("Foo.Bar.Baz", "Quux", "F.B.B.Quux", { kind: PatternMatchKind.prefix, isCaseSensitive: true }); }); it("DottedPattern6", () => { @@ -313,33 +317,33 @@ describe("unittests:: services:: PatternMatcher", () => { }); it("DottedPattern7", () => { - assertSegmentMatch("UIElement", "UIElement", { kind: ts.PatternMatchKind.exact, isCaseSensitive: true }); + assertSegmentMatch("UIElement", "UIElement", { kind: PatternMatchKind.exact, isCaseSensitive: true }); assertSegmentMatch("GetKeyword", "UIElement", undefined); }); }); - function assertSegmentMatch(candidate: string, pattern: string, expected: ts.PatternMatch | undefined): void { - assert.deepEqual(ts.createPatternMatcher(pattern)!.getMatchForLastSegmentOfPattern(candidate), expected); + function assertSegmentMatch(candidate: string, pattern: string, expected: PatternMatch | undefined): void { + assert.deepEqual(createPatternMatcher(pattern)!.getMatchForLastSegmentOfPattern(candidate), expected); } function assertInvalidPattern(pattern: string) { - assert.equal(ts.createPatternMatcher(pattern), undefined); + assert.equal(createPatternMatcher(pattern), undefined); } - function assertFullMatch(dottedContainer: string, candidate: string, pattern: string, expected: ts.PatternMatch | undefined): void { - assert.deepEqual(ts.createPatternMatcher(pattern)!.getFullMatch(dottedContainer.split("."), candidate), expected); + function assertFullMatch(dottedContainer: string, candidate: string, pattern: string, expected: PatternMatch | undefined): void { + assert.deepEqual(createPatternMatcher(pattern)!.getFullMatch(dottedContainer.split("."), candidate), expected); } - function spanListToSubstrings(identifier: string, spans: ts.TextSpan[]) { + function spanListToSubstrings(identifier: string, spans: TextSpan[]) { return spans.map(s => identifier.substr(s.start, s.length)); } function breakIntoCharacterSpans(identifier: string) { - return spanListToSubstrings(identifier, ts.breakIntoCharacterSpans(identifier)); + return spanListToSubstrings(identifier, breakIntoCharacterSpans(identifier)); } function breakIntoWordSpans(identifier: string) { - return spanListToSubstrings(identifier, ts.breakIntoWordSpans(identifier)); + return spanListToSubstrings(identifier, breakIntoWordSpans(identifier)); } function verifyBreakIntoCharacterSpans(original: string, ...parts: string[]): void { diff --git a/src/testRunner/unittests/services/preProcessFile.ts b/src/testRunner/unittests/services/preProcessFile.ts index c5f5672640144..e13b47bf1a7f2 100644 --- a/src/testRunner/unittests/services/preProcessFile.ts +++ b/src/testRunner/unittests/services/preProcessFile.ts @@ -1,6 +1,11 @@ +import { PreProcessedFileInfo } from "../../../services/types"; +import { preProcessFile } from "../../../services/preProcess"; +import { assert } from "console"; +import { FileReference } from "../../../compiler/types"; + describe("unittests:: services:: PreProcessFile:", () => { - function test(sourceText: string, readImportFile: boolean, detectJavaScriptImports: boolean, expectedPreProcess: ts.PreProcessedFileInfo): void { - const resultPreProcess = ts.preProcessFile(sourceText, readImportFile, detectJavaScriptImports); + function test(sourceText: string, readImportFile: boolean, detectJavaScriptImports: boolean, expectedPreProcess: PreProcessedFileInfo): void { + const resultPreProcess = preProcessFile(sourceText, readImportFile, detectJavaScriptImports); assert.equal(resultPreProcess.isLibFile, expectedPreProcess.isLibFile, "Pre-processed file has different value for isLibFile. Expected: " + expectedPreProcess.isLibFile + ". Actual: " + resultPreProcess.isLibFile); @@ -12,7 +17,7 @@ describe("unittests:: services:: PreProcessFile:", () => { assert.deepEqual(resultPreProcess.ambientExternalModules, expectedPreProcess.ambientExternalModules); } - function checkFileReferenceList(kind: string, expected: ts.FileReference[], actual: ts.FileReference[]) { + function checkFileReferenceList(kind: string, expected: FileReference[], actual: FileReference[]) { if (expected === actual) { return; } @@ -27,7 +32,7 @@ describe("unittests:: services:: PreProcessFile:", () => { { referencedFiles: [{ fileName: "refFile1.ts", pos: 22, end: 33 }, { fileName: "refFile2.ts", pos: 59, end: 70 }, { fileName: "refFile3.ts", pos: 94, end: 105 }, { fileName: "..\\refFile4d.ts", pos: 131, end: 146 }], - importedFiles: [], + importedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], ambientExternalModules: undefined, @@ -40,8 +45,8 @@ describe("unittests:: services:: PreProcessFile:", () => { /*readImportFile*/ true, /*detectJavaScriptImports*/ false, { - referencedFiles: [], - importedFiles: [], + referencedFiles: [], + importedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], ambientExternalModules: undefined, @@ -54,8 +59,8 @@ describe("unittests:: services:: PreProcessFile:", () => { /*readImportFile*/ true, /*detectJavaScriptImports*/ false, { - referencedFiles: [], - importedFiles: [], + referencedFiles: [], + importedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], ambientExternalModules: undefined, @@ -68,8 +73,8 @@ describe("unittests:: services:: PreProcessFile:", () => { /*readImportFile*/ true, /*detectJavaScriptImports*/ false, { - referencedFiles: [], - importedFiles: [], + referencedFiles: [], + importedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], ambientExternalModules: undefined, @@ -82,7 +87,7 @@ describe("unittests:: services:: PreProcessFile:", () => { /*readImportFile*/ true, /*detectJavaScriptImports*/ false, { - referencedFiles: [], + referencedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], importedFiles: [{ fileName: "r1.ts", pos: 20, end: 25 }, { fileName: "r2.ts", pos: 49, end: 54 }, { fileName: "r3.ts", pos: 78, end: 83 }, @@ -97,10 +102,10 @@ describe("unittests:: services:: PreProcessFile:", () => { /*readImportFile*/ false, /*detectJavaScriptImports*/ false, { - referencedFiles: [], + referencedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], - importedFiles: [], + importedFiles: [], ambientExternalModules: undefined, isLibFile: false }); @@ -111,7 +116,7 @@ describe("unittests:: services:: PreProcessFile:", () => { /*readImportFile*/ true, /*detectJavaScriptImports*/ false, { - referencedFiles: [], + referencedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], importedFiles: [{ fileName: "r3.ts", pos: 73, end: 78 }], @@ -214,7 +219,7 @@ describe("unittests:: services:: PreProcessFile:", () => { /*readImportFile*/ true, /*detectJavaScriptImports*/ false, { - referencedFiles: [], + referencedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], importedFiles: [ @@ -244,7 +249,7 @@ describe("unittests:: services:: PreProcessFile:", () => { /*readImportFile*/ true, /*detectJavaScriptImports*/ false, { - referencedFiles: [], + referencedFiles: [], typeReferenceDirectives: [], libReferenceDirectives: [], importedFiles: [ diff --git a/src/testRunner/unittests/services/textChanges.ts b/src/testRunner/unittests/services/textChanges.ts index 7a5c9af03ff56..655ded3148882 100644 --- a/src/testRunner/unittests/services/textChanges.ts +++ b/src/testRunner/unittests/services/textChanges.ts @@ -1,6 +1,17 @@ // Some tests have trailing whitespace -namespace ts { +import { Node, NewLineKind, ScriptTarget, NodeArray, SourceFile, FunctionDeclaration, SyntaxKind, VariableStatement, VariableDeclaration, ConstructorDeclaration, ClassDeclaration, ClassElement } from "../../../compiler/types"; +import { isDeclaration, isIdentifier, factory, isVariableStatement, isVariableDeclaration, isConstructorDeclaration } from "../../../../built/local/compiler"; +import { forEachChild, createSourceFile } from "../../../compiler/parser"; +import { getNewLineCharacter } from "../../../compiler/utilities"; +import { testFormatSettings } from "../../../services/types"; +import { notImplementedHost } from "./extract/helpers"; +import { zipWith, forEach, neverArray, last, cast, find } from "../../../compiler/core"; +import { Debug } from "../../../compiler/debug"; +import { isArray } from "util"; +import { assert } from "console"; + + describe("unittests:: services:: textChanges", () => { function findChild(name: string, n: Node) { return find(n)!; @@ -59,8 +70,8 @@ namespace ts { } { - const text = ` -namespace M + const text = +`namespace M { namespace M2 { @@ -88,7 +99,7 @@ namespace M /*asteriskToken*/ undefined, /*name*/ "bar", /*typeParameters*/ undefined, - /*parameters*/ emptyArray, + /*parameters*/ neverArray, /*type*/ factory.createKeywordTypeNode(SyntaxKind.AnyKeyword), /*body */ factory.createBlock(statements) ); @@ -100,7 +111,7 @@ namespace M factory.createCallExpression( /*expression*/ newFunction.name!, /*typeArguments*/ undefined, - /*argumentsArray*/ emptyArray + /*argumentsArray*/ neverArray )); changeTracker.replaceNodeRange(sourceFile, statements[0], last(statements), newStatement, { suffix: newLineCharacter }); }); @@ -109,11 +120,11 @@ namespace M const text = ` function foo() { return 1; -} + function bar() { return 2; -} + `; runSingleFileTest("deleteRange1", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { changeTracker.deleteRange(sourceFile, { pos: text.indexOf("function foo"), end: text.indexOf("function bar") }); @@ -230,11 +241,10 @@ var a = 4; // comment 7`; }); } { - const text = ` -namespace A { + const text = +`namespace A { const x = 1, y = "2"; -} -`; +}`; runSingleFileTest("replaceNode1NoLineBreakBefore", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { const newNode = createTestVariableDeclaration("z1"); changeTracker.replaceNode(sourceFile, findChild("y", sourceFile), newNode); @@ -304,8 +314,8 @@ var a = 4; // comment 7`; }); } { - const text = ` -namespace M { + const text = +`namespace M { // comment 1 var x = 1; // comment 2 // comment 3 @@ -336,7 +346,7 @@ namespace M { const superCall = factory.createCallExpression( factory.createSuper(), /*typeArguments*/ undefined, - /*argumentsArray*/ emptyArray + /*argumentsArray*/ neverArray ); return factory.createExpressionStatement(superCall); } @@ -346,7 +356,7 @@ namespace M { class A { constructor() { } -} + `; runSingleFileTest("insertNodeAtConstructorStart", /*placeOpenBraceOnNewLineForFunctions*/ false, text1, /*validateNodes*/ false, (sourceFile, changeTracker) => { changeTracker.insertNodeAtConstructorStart(sourceFile, findConstructor(sourceFile), createTestSuperCall()); @@ -356,7 +366,7 @@ class A { constructor() { var x = 1; } -} + `; runSingleFileTest("insertNodeAfter4", /*placeOpenBraceOnNewLineForFunctions*/ false, text2, /*validateNodes*/ false, (sourceFile, changeTracker) => { changeTracker.insertNodeAfter(sourceFile, findVariableStatementContaining("x", sourceFile), createTestSuperCall()); @@ -366,7 +376,7 @@ class A { constructor() { } -} + `; runSingleFileTest("insertNodeAtConstructorStart-block with newline", /*placeOpenBraceOnNewLineForFunctions*/ false, text3, /*validateNodes*/ false, (sourceFile, changeTracker) => { changeTracker.insertNodeAtConstructorStart(sourceFile, findConstructor(sourceFile), createTestSuperCall()); @@ -397,8 +407,8 @@ class A { }); } { - const text = ` -namespace M { + const text = +`namespace M { var a = 1, b = 2, c = 3; @@ -414,8 +424,8 @@ namespace M { }); } { - const text = ` -namespace M { + const text = +`namespace M { var a = 1, // comment 1 // comment 2 b = 2, // comment 3 @@ -641,7 +651,7 @@ class A { const text = ` class A { x -} + `; runSingleFileTest("insertNodeAfterInClass1", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { // eslint-disable-next-line boolean-trivia @@ -652,7 +662,7 @@ class A { const text = ` class A { x; -} + `; runSingleFileTest("insertNodeAfterInClass2", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { // eslint-disable-next-line boolean-trivia @@ -664,7 +674,7 @@ class A { class A { x; y = 1; -} + `; runSingleFileTest("deleteNodeAfterInClass1", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { deleteNode(changeTracker, sourceFile, findChild("x", sourceFile)); @@ -675,7 +685,7 @@ class A { class A { x y = 1; -} + `; runSingleFileTest("deleteNodeAfterInClass2", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { deleteNode(changeTracker, sourceFile, findChild("x", sourceFile)); @@ -685,7 +695,7 @@ class A { const text = ` class A { x = foo -} + `; runSingleFileTest("insertNodeInClassAfterNodeWithoutSeparator1", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { const newNode = factory.createPropertyDeclaration( @@ -703,7 +713,7 @@ class A { class A { x() { } -} + `; runSingleFileTest("insertNodeInClassAfterNodeWithoutSeparator2", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { const newNode = factory.createPropertyDeclaration( @@ -720,7 +730,7 @@ class A { const text = ` interface A { x -} + `; runSingleFileTest("insertNodeInInterfaceAfterNodeWithoutSeparator1", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { const newNode = factory.createPropertyDeclaration( @@ -737,7 +747,7 @@ interface A { const text = ` interface A { x() -} + `; runSingleFileTest("insertNodeInInterfaceAfterNodeWithoutSeparator2", /*placeOpenBraceOnNewLineForFunctions*/ false, text, /*validateNodes*/ false, (sourceFile, changeTracker) => { const newNode = factory.createPropertyDeclaration( @@ -760,4 +770,4 @@ let x = foo }); } }); -} + diff --git a/src/testRunner/unittests/services/transpile.ts b/src/testRunner/unittests/services/transpile.ts index 765b4f345e644..c086f5499f0c9 100644 --- a/src/testRunner/unittests/services/transpile.ts +++ b/src/testRunner/unittests/services/transpile.ts @@ -1,4 +1,6 @@ -namespace ts { +import { TranspileOptions, TranspileOutput, transpileModule, transpile } from "../../../services/transpile"; +import { Diagnostic, ScriptTarget, NewLineKind, Extension, ModuleKind, JsxEmit, ModuleResolutionKind } from "../../../compiler/types"; + describe("unittests:: services:: Transpile", () => { interface TranspileTestSettings { @@ -486,4 +488,4 @@ export * as alias from './file';`, { noSetFileName: true }); }); -} + diff --git a/src/testRunner/unittests/transform.ts b/src/testRunner/unittests/transform.ts index e18dd33c92c3c..ed4b14b6b1d8b 100644 --- a/src/testRunner/unittests/transform.ts +++ b/src/testRunner/unittests/transform.ts @@ -1,4 +1,13 @@ -namespace ts { +import { TransformationContext, SyntaxKind, EmitHint, SourceFile, Node, Visitor, Transformer, TransformerFactory, ScriptTarget, NewLineKind, VisitResult, ModuleBlock, ExportDeclaration, ModuleKind, EmitFlags } from "../../compiler/types"; +import { isIdentifier, factory, addSyntheticTrailingComment, setTextRange, isNumericLiteral, isSourceFile, setEmitFlags, setSyntheticLeadingComments, isVoidExpression, isVariableStatement, isImportDeclaration, isExportDeclaration, isImportSpecifier, isExportSpecifier, isPropertyDeclaration, isParameterPropertyDeclaration, isClassDeclaration, isConstructorDeclaration, isModuleDeclaration, isVariableDeclaration, isMethodDeclaration, isNoSubstitutionTemplateLiteral } from "../../../built/local/compiler"; +import { visitEachChild, visitNode } from "../../compiler/visitorPublic"; +import { transform } from "../../services/transform"; +import { createSourceFile } from "../../compiler/parser"; +import { createPrinter } from "../../compiler/emitter"; +import { transpileModule, TranspileOptions } from "../../services/transpile"; +import { createProgram } from "../../compiler/program"; +import { assert } from "console"; + describe("unittests:: TransformAPI", () => { function replaceUndefinedWithVoid0(context: TransformationContext) { const previousOnSubstituteNode = context.onSubstituteNode; @@ -355,7 +364,7 @@ namespace ts { }; function visitNode(sf: SourceFile) { // produce `class Foo { constructor(@Dec private x) {} }`; - // The decorator is required to trigger ts.ts transformations. + // The decorator is required to trigger ts transformations. const classDecl = factory.createClassDeclaration([], [], "Foo", /*typeParameters*/ undefined, /*heritageClauses*/ undefined, [ factory.createConstructorDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, [ factory.createParameterDeclaration(/*decorators*/ [factory.createDecorator(factory.createIdentifier("Dec"))], /*modifiers*/ [factory.createModifier(SyntaxKind.PrivateKeyword)], /*dotDotDotToken*/ undefined, "x")], factory.createBlock([])) @@ -451,7 +460,7 @@ class Clazz { instanceProp: number = 2; // original comment 3. constructor(readonly field = 1) {} -} + `, { transformers: { before: [addSyntheticComment(n => isPropertyDeclaration(n) || isParameterPropertyDeclaration(n, n.parent) || isClassDeclaration(n) || isConstructorDeclaration(n))], @@ -465,14 +474,14 @@ class Clazz { testBaseline("transformAddCommentToNamespace", () => { return transpileModule(` -// namespace comment. -namespace Foo { - export const x = 1; -} -// another comment. -namespace Foo { - export const y = 1; -} + // namespace comment. + namespace Foo { + export const x = 1; + } + // another comment. + namespace Foo { + export const y = 1; + } `, { transformers: { before: [addSyntheticComment(n => isModuleDeclaration(n))], @@ -489,7 +498,7 @@ namespace Foo { module MyModule { const myVariable = 1; function foo(param: string) {} -} + `, { transformers: { before: [renameVariable], @@ -578,5 +587,5 @@ module MyModule { assert.equal(exports.stringLength, 5); }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index 22442007fcbe0..cdaea6c8fd561 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -1,4 +1,4 @@ -namespace ts { + describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { let outFileFs: vfs.FileSystem; const enum Project { lib, app } @@ -56,7 +56,7 @@ namespace ts { ...(modifyAgainFs ? [{ buildKind: BuildKind.IncrementalHeadersChange, modifyFs: modifyAgainFs - }] : emptyArray), + }] : neverArray), ] }); } @@ -135,7 +135,7 @@ export class normalC { ${internal} method() { } ${internal} get c() { return 10; } ${internal} set c(val: number) { } -} + export namespace normalN { ${internal} export class C { } ${internal} export function foo() {} @@ -145,7 +145,7 @@ export namespace normalN { ${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 {} } @@ -183,4 +183,4 @@ ${internal} export enum internalEnum { a, b, c }`); }); }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/configFileErrors.ts b/src/testRunner/unittests/tsbuild/configFileErrors.ts index 5d2229588709b..b9489d9e81c2b 100644 --- a/src/testRunner/unittests/tsbuild/configFileErrors.ts +++ b/src/testRunner/unittests/tsbuild/configFileErrors.ts @@ -1,4 +1,4 @@ -namespace ts { + describe("unittests:: tsbuild:: configFileErrors:: when tsconfig extends the missing file", () => { verifyTsc({ scenario: "configFileErrors", @@ -54,4 +54,4 @@ namespace ts { ] }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts index 8ccfbe5fe4742..6f9d0eb6c2fd2 100644 --- a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts +++ b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts @@ -1,4 +1,4 @@ -namespace ts { + describe("unittests:: tsbuild:: when containerOnly project is referenced", () => { verifyTscSerializedIncrementalEdits({ scenario: "containerOnlyReferenced", @@ -8,4 +8,4 @@ namespace ts { incrementalScenarios: noChangeOnlyRuns }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/demo.ts b/src/testRunner/unittests/tsbuild/demo.ts index 18bc1eea89a3b..b668dbbc48774 100644 --- a/src/testRunner/unittests/tsbuild/demo.ts +++ b/src/testRunner/unittests/tsbuild/demo.ts @@ -1,4 +1,6 @@ -namespace ts { +import { loadProjectFromDisk, replaceText, prependText } from "./helpers"; +import { verifyTsc } from "../tsc/helpers"; + describe("unittests:: tsbuild:: on demo project", () => { let projFs: vfs.FileSystem; before(() => { @@ -46,4 +48,4 @@ namespace ts { ) }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts index c673cd11bcd6a..5096ccfa8a0c3 100644 --- a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts +++ b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts @@ -1,4 +1,6 @@ -namespace ts { +import { loadProjectFromDisk, verifyTscSerializedIncrementalEdits, replaceText } from "./helpers"; +import { BuildKind } from "../tsc/helpers"; + describe("unittests:: tsbuild:: on project with emitDeclarationOnly set to true", () => { let projFs: vfs.FileSystem; before(() => { @@ -50,4 +52,4 @@ export interface A {`), ], }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/emptyFiles.ts b/src/testRunner/unittests/tsbuild/emptyFiles.ts index ffd9429a34411..04b9bcb1c0309 100644 --- a/src/testRunner/unittests/tsbuild/emptyFiles.ts +++ b/src/testRunner/unittests/tsbuild/emptyFiles.ts @@ -1,4 +1,6 @@ -namespace ts { +import { loadProjectFromDisk } from "./helpers"; +import { verifyTsc } from "../tsc/helpers"; + describe("unittests:: tsbuild - empty files option in tsconfig", () => { let projFs: vfs.FileSystem; before(() => { @@ -22,4 +24,4 @@ namespace ts { commandLineArgs: ["--b", "/src/with-references"], }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/exitCodeOnBogusFile.ts b/src/testRunner/unittests/tsbuild/exitCodeOnBogusFile.ts index 487671dfae147..e60cb908e263a 100644 --- a/src/testRunner/unittests/tsbuild/exitCodeOnBogusFile.ts +++ b/src/testRunner/unittests/tsbuild/exitCodeOnBogusFile.ts @@ -1,4 +1,6 @@ -namespace ts { +import { verifyTsc } from "../tsc/helpers"; +import { loadProjectFromFiles } from "./helpers"; + // https://github.com/microsoft/TypeScript/issues/33849 describe("unittests:: tsbuild:: exitCodeOnBogusFile:: test exit code", () => { verifyTsc({ @@ -8,4 +10,4 @@ namespace ts { commandLineArgs: ["-b", "bogus.json"] }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/graphOrdering.ts b/src/testRunner/unittests/tsbuild/graphOrdering.ts index 79ddd80d67bde..acf0b54a2f895 100644 --- a/src/testRunner/unittests/tsbuild/graphOrdering.ts +++ b/src/testRunner/unittests/tsbuild/graphOrdering.ts @@ -1,4 +1,7 @@ -namespace ts { +import { createSolutionBuilder, isCircularBuildOrder, getBuildOrderFromAnyBuildOrder } from "../../../compiler/tsbuildPublic"; +import { assert } from "console"; +import { ResolvedConfigFileName } from "../../../compiler/types"; + describe("unittests:: tsbuild - graph-ordering", () => { let host: fakes.SolutionBuilderHost | undefined; const deps: [string, string][] = [ @@ -88,4 +91,4 @@ namespace ts { return projFileNames; } }); -} + diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index e2efa72efcd7b..75025e36f63a1 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -1,4 +1,15 @@ -namespace ts { +import { isBuildInfoFile, getBuildInfo, getBuildInfoText, getOutputPathsForBundle } from "../../../compiler/emitter"; +import { notImplemented, mapDefinedIterator, neverArray, first, last, arrayFrom, findIndex } from "../../../compiler/core"; +import { assert } from "console"; +import { System } from "../../../compiler/sys"; +import { ReadonlyCollection } from "../../../compiler/corePublic"; +import { BundleFileInfo, BundleFileSectionKind, BundleFileSection, CompilerOptions, BuildInfo } from "../../../compiler/types"; +import { length } from "ms"; +import { Debug } from "../../../compiler/debug"; +import { outFile } from "../../../compiler/utilities"; +import { TscCompile, TscCompileSystem, tscCompile, BuildKind, verifyTscBaseline } from "../tsc/helpers"; +import { ProgramBuildInfo } from "../../../compiler/builder"; + export function errorDiagnostic(message: fakes.ExpectedDiagnosticMessage): fakes.ExpectedErrorDiagnostic { return { message }; } @@ -106,11 +117,11 @@ declare const console: { log(msg: any): void; };`; interface SymbolConstructor { readonly species: symbol; readonly toStringTag: symbol; -} + declare var Symbol: SymbolConstructor; interface Symbol { readonly [Symbol.toStringTag]: string; -} + `; /** @@ -202,7 +213,7 @@ interface Symbol { const content = outFile && sys.fileExists(outFile) ? originalReadCall.call(sys, outFile, "utf8")! : ""; baselineRecorder.WriteLine("======================================================================"); baselineRecorder.WriteLine(`File:: ${outFile}`); - for (const section of bundleFileInfo ? bundleFileInfo.sections : emptyArray) { + for (const section of bundleFileInfo ? bundleFileInfo.sections : neverArray) { baselineRecorder.WriteLine("----------------------------------------------------------------------"); writeSectionHeader(section); if (section.kind !== BundleFileSectionKind.Prepend) { @@ -598,4 +609,4 @@ ${project}${file}Spread(...[10, 20, 30]);`); const ${file}Const = new ${project}${file}(); `); } -} + diff --git a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts index eccd6e41aeb1a..b671f7e3712fa 100644 --- a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts +++ b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts @@ -1,4 +1,6 @@ -namespace ts { +import { loadProjectFromDisk, verifyTscSerializedIncrementalEdits, appendText, replaceText } from "./helpers"; +import { BuildKind } from "../tsc/helpers"; + describe("unittests:: tsbuild:: inferredTypeFromTransitiveModule::", () => { let projFs: vfs.FileSystem; before(() => { @@ -63,4 +65,4 @@ bar("hello");`); function changeBarParam(fs: vfs.FileSystem) { replaceText(fs, "/src/bar.ts", "param: string", ""); } -} + diff --git a/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts b/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts index 450da2cd14f92..80776f50ba9f3 100644 --- a/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts +++ b/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts @@ -1,4 +1,6 @@ -namespace ts { +import { verifyTsc, BuildKind } from "../tsc/helpers"; +import { loadProjectFromFiles, symbolLibContent, verifyTscSerializedIncrementalEdits, replaceText } from "./helpers"; + describe("unittests:: tsbuild:: javascriptProjectEmit:: loads js-based projects and emits them correctly", () => { verifyTsc({ scenario: "javascriptProjectEmit", @@ -283,4 +285,4 @@ namespace ts { commandLineArgs: ["-b", "/src"] }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts index 5ea071a0ca2bf..66227f4f25fa3 100644 --- a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts +++ b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts @@ -1,4 +1,6 @@ -namespace ts { +import { verifyTscSerializedIncrementalEdits, loadProjectFromDisk, replaceText } from "./helpers"; +import { BuildKind } from "../tsc/helpers"; + describe("unittests:: tsbuild:: lateBoundSymbol:: interface is merged and contains late bound member", () => { verifyTscSerializedIncrementalEdits({ subScenario: "interface is merged and contains late bound member", @@ -11,4 +13,4 @@ namespace ts { }] }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts b/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts index 8494fd9498a36..8fce264daa704 100644 --- a/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts +++ b/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts @@ -1,4 +1,6 @@ -namespace ts { +import { verifyTsc } from "../tsc/helpers"; +import { loadProjectFromFiles, symbolLibContent } from "./helpers"; + // https://github.com/microsoft/TypeScript/issues/31696 describe("unittests:: tsbuild:: moduleSpecifiers:: synthesized module specifiers to referenced projects resolve correctly", () => { verifyTsc({ @@ -88,4 +90,4 @@ namespace ts { commandLineArgs: ["-b", "/src", "--verbose"] }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/noEmitOnError.ts b/src/testRunner/unittests/tsbuild/noEmitOnError.ts index 75e17f66203e9..1081a614c93e1 100644 --- a/src/testRunner/unittests/tsbuild/noEmitOnError.ts +++ b/src/testRunner/unittests/tsbuild/noEmitOnError.ts @@ -1,4 +1,6 @@ -namespace ts { +import { loadProjectFromDisk, TscIncremental, verifyTscSerializedIncrementalEdits } from "./helpers"; +import { noChangeRun, BuildKind } from "../tsc/helpers"; + describe("unittests:: tsbuild - with noEmitOnError", () => { let projFs: vfs.FileSystem; before(() => { @@ -45,4 +47,4 @@ const a: string = "hello";`, "utf-8"), const a: string = 10;`, "utf-8") ); }); -} + diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index e1da4118599ec..3a5af7888f3e3 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -1,4 +1,10 @@ -namespace ts { +import { getExpectedDiagnosticForProjectsInBuild, loadProjectFromDisk, TscIncremental, replaceText, appendText, VerifyTsBuildInput, verifyTscIncrementalEdits, verifyTscSerializedIncrementalEdits, getFsWithTime, changeCompilerVersion, verifyOutputsAbsent, verifyOutputsPresent, enableStrict, addTestPrologue, addShebang, addRest, removeRest, addStubFoo, changeStubToRest, addSpread, addTripleSlashRef, prependText } from "./helpers"; +import { BuildOptions } from "../../../compiler/tsbuildPublic"; +import { BuildKind, verifyTsc, noChangeOnlyRuns } from "../tsc/helpers"; +import { version } from "os"; +import { assert } from "console"; +import { ExitStatus } from "../../../compiler/types"; + describe("unittests:: tsbuild:: outFile::", () => { let outFileFs: vfs.FileSystem; const enum Ext { js, jsmap, dts, dtsmap, buildinfo } @@ -10,21 +16,21 @@ namespace ts { "/src/first/bin/first-output.js", "/src/first/bin/first-output.js.map", "/src/first/bin/first-output.d.ts", - "/src/first/bin/first-output.d.ts.map", + "/src/first/bin/first-output.d.map", "/src/first/bin/first-output.tsbuildinfo" ], [ "/src/2/second-output.js", "/src/2/second-output.js.map", "/src/2/second-output.d.ts", - "/src/2/second-output.d.ts.map", + "/src/2/second-output.d.map", "/src/2/second-output.tsbuildinfo" ], [ "/src/third/thirdjs/output/third-output.js", "/src/third/thirdjs/output/third-output.js.map", "/src/third/thirdjs/output/third-output.d.ts", - "/src/third/thirdjs/output/third-output.d.ts.map", + "/src/third/thirdjs/output/third-output.d.map", "/src/third/thirdjs/output/third-output.tsbuildinfo" ] ]; @@ -74,7 +80,7 @@ namespace ts { }); function createSolutionBuilder(host: fakes.SolutionBuilderHost, baseOptions?: BuildOptions) { - return ts.createSolutionBuilder(host, ["/src/third"], { dry: false, force: false, verbose: true, ...(baseOptions || {}) }); + return createSolutionBuilder(host, ["/src/third"], { dry: false, force: false, verbose: true, ...(baseOptions || {}) }); } interface VerifyOutFileScenarioInput { @@ -464,31 +470,31 @@ namespace ts { stripInternalOfThird(fs); replaceText(fs, sources[Project.first][Source.ts][Part.one], "interface", `${internal} interface`); appendText(fs, sources[Project.second][Source.ts][Part.one], ` -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 }`); + 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 }`); } // Verify initial + incremental edits @@ -635,7 +641,7 @@ ${internal} enum internalEnum { a, b, c }`); BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, /* @internal */ NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator -} + `); }, ignoreDtsChanged: true, @@ -729,4 +735,4 @@ ${internal} enum internalEnum { a, b, c }`); }, }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts b/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts index bd78954780aab..40e6011ebe0f3 100644 --- a/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts +++ b/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts @@ -1,4 +1,6 @@ -namespace ts { +import { loadProjectFromDisk, replaceText } from "./helpers"; +import { verifyTsc } from "../tsc/helpers"; + describe("unittests:: tsbuild:: with rootDir of project reference in parentDirectory", () => { let projFs: vfs.FileSystem; before(() => { @@ -58,4 +60,4 @@ namespace ts { }, }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts index 4b8c999f46cc3..89997dba553d2 100644 --- a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts +++ b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts @@ -1,4 +1,6 @@ -namespace ts { +import { loadProjectFromDisk, verifyTscSerializedIncrementalEdits, replaceText } from "./helpers"; +import { verifyTsc, noChangeOnlyRuns } from "../tsc/helpers"; + describe("unittests:: tsbuild:: with resolveJsonModule option on project resolveJsonModuleAndComposite", () => { let projFs: vfs.FileSystem; before(() => { @@ -79,4 +81,4 @@ export default hello.hello`); incrementalScenarios: noChangeOnlyRuns }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index 4550595ded23c..d5e2e6342cbe0 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -1,9 +1,18 @@ -namespace ts { +import { loadProjectFromDisk, replaceText, verifyTscSerializedIncrementalEdits, verifyOutputsPresent, verifyOutputsAbsent, getFsWithTime, verifyTscIncrementalEdits, changeCompilerVersion, getExpectedDiagnosticForProjectsInBuild, appendText, TscIncremental, libContent } from "./helpers"; +import { createSolutionBuilder, BuildOptions, ResolvedConfigFilePath } from "../../../compiler/tsbuildPublic"; +import { verifyTsc, noChangeOnlyRuns, BuildKind, noChangeRun } from "../tsc/helpers"; +import { assert } from "console"; +import { ExitStatus, ResolvedConfigFileName } from "../../../compiler/types"; +import { noop, neverArray, createMap } from "../../../compiler/core"; +import { version } from "os"; +import { createAbstractBuilder } from "../../../compiler/builderPublic"; +import { UpToDateStatusType } from "../../../compiler/tsbuild"; + describe("unittests:: tsbuild:: on 'sample1' project", () => { let projFs: vfs.FileSystem; 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 coreOutputs = ["/src/core/index.js", "/src/core/index.d.ts", "/src/core/index.d.map", "/src/core/tsconfig.tsbuildinfo"]; const allExpectedOutputs = [...testsOutputs, ...logicOutputs, ...coreOutputs]; before(() => { @@ -259,9 +268,9 @@ namespace ts { verifyBuildNextResult({ project: "/src/tests/tsconfig.json" as ResolvedConfigFileName, result: ExitStatus.Success - }, allExpectedOutputs, emptyArray); + }, allExpectedOutputs, neverArray); - verifyBuildNextResult(/*expected*/ undefined, allExpectedOutputs, emptyArray); + verifyBuildNextResult(/*expected*/ undefined, allExpectedOutputs, neverArray); function verifyBuildNextResult( expected: SolutionBuilderResult | undefined, @@ -505,4 +514,4 @@ class someClass2 { }`), }); }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/transitiveReferences.ts b/src/testRunner/unittests/tsbuild/transitiveReferences.ts index 735c13f5976fb..2a39034b153f9 100644 --- a/src/testRunner/unittests/tsbuild/transitiveReferences.ts +++ b/src/testRunner/unittests/tsbuild/transitiveReferences.ts @@ -1,4 +1,6 @@ -namespace ts { +import { loadProjectFromDisk } from "./helpers"; +import { verifyTsc } from "../tsc/helpers"; + describe("unittests:: tsbuild:: when project reference is referenced transitively", () => { let projFs: vfs.FileSystem; before(() => { @@ -44,4 +46,4 @@ export const b = new A();`); modifyFs: fs => modifyFsBTsToNonRelativeImport(fs, "node"), }); }); -} + diff --git a/src/testRunner/unittests/tsbuild/watchEnvironment.ts b/src/testRunner/unittests/tsbuild/watchEnvironment.ts index 3fc9e1d8aba52..a368c02bd9a19 100644 --- a/src/testRunner/unittests/tsbuild/watchEnvironment.ts +++ b/src/testRunner/unittests/tsbuild/watchEnvironment.ts @@ -1,4 +1,9 @@ -namespace ts.tscWatch { +import { arrayToMap, identity, neverArray, concatenate, last, flatMap } from "../../../compiler/core"; +import { File } from "../../../harness/vfsUtil"; +import { createWatchedSystem, libFile, checkWatchedFilesDetailed } from "../../../../built/local/harness"; +import { createSolutionBuilderWithWatchHost, createSolutionBuilderWithWatch } from "../../../compiler/tsbuildPublic"; +import { checkOutputErrorsInitial, checkOutputErrorsIncremental } from "../tscWatch/helpers"; + describe("unittests:: tsbuild:: watchEnvironment:: tsbuild:: watchMode:: with different watch environments", () => { describe("when watchFile can create multiple watchers per file", () => { verifyWatchFileOnMultipleProjects(/*singleWatchPerFile*/ false); @@ -27,7 +32,7 @@ namespace ts.tscWatch { const host = createSolutionBuilderWithWatchHost(system); const solutionBuilder = createSolutionBuilderWithWatch(host, ["tsconfig.json"], { watch: true, verbose: true }); solutionBuilder.build(); - checkOutputErrorsInitial(system, emptyArray, /*disableConsoleClears*/ undefined, [ + checkOutputErrorsInitial(system, neverArray, /*disableConsoleClears*/ undefined, [ `Projects in this build: \r\n${ concatenate( pkgs(index => ` * pkg${index}/tsconfig.json`), @@ -50,7 +55,7 @@ namespace ts.tscWatch { maxPkgs--; writePkgReferences(); system.checkTimeoutQueueLengthAndRun(1); - checkOutputErrorsIncremental(system, emptyArray); + checkOutputErrorsIncremental(system, neverArray); const lastFiles = last(allPkgFiles); lastFiles.forEach(f => watchFilesDetailed.delete(f.path)); watchFilesDetailed.set(typing.path, singleWatchPerFile ? 1 : maxPkgs); @@ -110,7 +115,7 @@ namespace ts.tscWatch { } function verifyInvoke() { pkgs(() => system.checkTimeoutQueueLengthAndRun(1)); - checkOutputErrorsIncremental(system, emptyArray, /*disableConsoleClears*/ undefined, /*logsBeforeWatchDiagnostics*/ undefined, [ + checkOutputErrorsIncremental(system, neverArray, /*disableConsoleClears*/ undefined, /*logsBeforeWatchDiagnostics*/ undefined, [ ...flatArray(pkgs(index => [ `Project 'pkg${index}/tsconfig.json' is out of date because oldest output 'pkg${index}/index.js' is older than newest input 'typings/xterm.d.ts'\n\n`, `Building project '${project}/pkg${index}/tsconfig.json'...\n\n`, @@ -121,4 +126,4 @@ namespace ts.tscWatch { }); } }); -} + diff --git a/src/testRunner/unittests/tsbuild/watchMode.ts b/src/testRunner/unittests/tsbuild/watchMode.ts index e04950cc42dea..d8a2be182db73 100644 --- a/src/testRunner/unittests/tsbuild/watchMode.ts +++ b/src/testRunner/unittests/tsbuild/watchMode.ts @@ -1,7 +1,19 @@ -namespace ts.tscWatch { + import projectsLocation = TestFSWithWatch.tsbuildProjectsLocation; import getFilePathInProject = TestFSWithWatch.getTsBuildProjectFilePath; import getFileFromProject = TestFSWithWatch.getTsBuildProjectFile; +import { createWatchedSystem, libFile, checkWatchedFiles, checkWatchedDirectories, checkWatchedFilesDetailed, checkWatchedDirectoriesDetailed, checkArray } from "../../../../built/local/harness"; +import { WatchedSystem, TscWatchCompileChange, checkSingleTimeoutQueueLengthAndRun, verifyTscWatch, checkOutputErrorsInitial, checkSingleTimeoutQueueLengthAndRunAndVerifyNoTimeout, createWatchOfConfigFile, checkOutputErrorsIncremental, checkProgramActualFiles, projectRoot, runQueuedTimeoutCallbacks, noopChange, replaceFileText } from "../tscWatch/helpers"; +import { BuildOptions, createSolutionBuilderHost, createSolutionBuilderWithWatchHost, createSolutionBuilderWithWatch, SolutionBuilder, ResolvedConfigFilePath } from "../../../compiler/tsbuildPublic"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; +import { isString } from "util"; +import { neverArray, noop, arrayFrom, mapDefinedIterator } from "../../../compiler/core"; +import { Watch } from "../../../compiler/watchPublic"; +import { EmitAndSemanticDiagnosticsBuilderProgram } from "../../../compiler/builderPublic"; +import { ConfigFileProgramReloadLevel } from "../../../compiler/watchUtilities"; +import { Path } from "../../../compiler/types"; +import { libContent } from "./helpers"; type TsBuildWatchSystem = TestFSWithWatch.TestServerHostTrackingWrittenFiles; function createTsBuildWatchSystem(fileOrFolderList: readonly TestFSWithWatch.FileOrFolderOrSymLink[], params?: TestFSWithWatch.TestServerHostCreationParameters) { @@ -12,7 +24,7 @@ namespace ts.tscWatch { export function createSolutionBuilder(system: WatchedSystem, rootNames: readonly string[], defaultOptions?: BuildOptions) { const host = createSolutionBuilderHost(system); - return ts.createSolutionBuilder(host, rootNames, defaultOptions || {}); + return createSolutionBuilder(host, rootNames, defaultOptions || {}); } export function ensureErrorFreeBuild(host: WatchedSystem, rootNames: readonly string[]) { @@ -138,7 +150,7 @@ namespace ts.tscWatch { subScenario: "creates solution in watch mode", commandLineArgs: ["-b", "-w", `${project}/${SubProject.tests}`], sys: () => createWatchedSystem(allFiles, { currentDirectory: projectsLocation }), - changes: emptyArray + changes: neverArray }); it("verify building references watches only those projects", () => { @@ -148,10 +160,10 @@ namespace ts.tscWatch { solutionBuilder.buildReferences(`${project}/${SubProject.tests}`); checkWatchedFiles(system, testProjectExpectedWatchedFiles.slice(0, testProjectExpectedWatchedFiles.length - tests.length)); - checkWatchedDirectories(system, emptyArray, /*recursive*/ false); + checkWatchedDirectories(system, neverArray, /*recursive*/ false); checkWatchedDirectories(system, testProjectExpectedWatchedDirectoriesRecursive, /*recursive*/ true); - checkOutputErrorsInitial(system, emptyArray); + checkOutputErrorsInitial(system, neverArray); const testOutput = getOutputStamps(system, SubProject.tests, "index"); const outputFileStamps = getOutputFileStamps(system); for (const stamp of outputFileStamps.slice(0, outputFileStamps.length - testOutput.length)) { @@ -361,7 +373,7 @@ function myFunc() { return 100; }`, "Make local change and build core"), interface SomeObject { message: string; -} + export function createSomeObject(): SomeObject { @@ -442,7 +454,7 @@ let x: string = 10;`), ] }); } - verifyIncrementalErrors("when preserveWatchOutput is not used", emptyArray); + verifyIncrementalErrors("when preserveWatchOutput is not used", neverArray); verifyIncrementalErrors("when preserveWatchOutput is passed on command line", ["--preserveWatchOutput"]); describe("when declaration emit errors are present", () => { @@ -555,7 +567,7 @@ let x: string = 10;`), describe("invoking when references are already built", () => { function verifyWatchesOfProject(host: TsBuildWatchSystem, expectedWatchedFiles: readonly string[], expectedWatchedDirectoriesRecursive: readonly string[], expectedWatchedDirectories?: readonly string[]) { checkWatchedFilesDetailed(host, expectedWatchedFiles, 1); - checkWatchedDirectoriesDetailed(host, expectedWatchedDirectories || emptyArray, 1, /*recursive*/ false); + checkWatchedDirectoriesDetailed(host, expectedWatchedDirectories || neverArray, 1, /*recursive*/ false); checkWatchedDirectoriesDetailed(host, expectedWatchedDirectoriesRecursive, 1, /*recursive*/ true); } @@ -585,7 +597,7 @@ let x: string = 10;`), // Build in watch mode const watch = createWatchOfConfigFile(watchConfig, host); - checkOutputErrorsInitial(host, emptyArray); + checkOutputErrorsInitial(host, neverArray); return { host, solutionBuilder, watch }; } @@ -651,7 +663,7 @@ let x: string = 10;`), edit(host, solutionBuilder); host.checkTimeoutQueueLengthAndRun(1); - checkOutputErrorsIncremental(host, emptyArray); + checkOutputErrorsIncremental(host, neverArray); checkProgramActualFiles(watch.getCurrentProgram().getProgram(), expectedProgramFilesAfterEdit()); }); @@ -808,7 +820,7 @@ export function gfoo() { 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; + ] : neverArray; const nrefsPath = multiFolder ? ["../nrefs/*"] : ["./nrefs/*"]; const expectedWatchedDirectoriesRecursive = [ ...(multiFolder ? [ @@ -901,7 +913,7 @@ export function gfoo() { revert(host); host.checkTimeoutQueueLengthAndRun(schedulesFailedWatchUpdate ? 2 : 1); - checkOutputErrorsIncremental(host, emptyArray); + checkOutputErrorsIncremental(host, neverArray); verifyProgram(host, watch); } }); @@ -946,7 +958,7 @@ export function gfoo() { solutionBuilder.invalidateProject((bTsconfig.path.toLowerCase() as ResolvedConfigFilePath)); solutionBuilder.buildNextInvalidatedProject(); }, - expectedEditErrors: emptyArray, + expectedEditErrors: neverArray, expectedProgramFiles, expectedProjectFiles, expectedWatchedFiles, @@ -969,7 +981,7 @@ export function gfoo() { cTsConfigJson.compilerOptions.paths = { "@ref/*": nrefsPath }; host.writeFile(cTsconfig.path, JSON.stringify(cTsConfigJson)); }, - expectedEditErrors: emptyArray, + expectedEditErrors: neverArray, expectedProgramFiles: expectedProgramFiles.map(nrefReplacer), expectedProjectFiles: expectedProjectFiles.map(nrefReplacer), expectedWatchedFiles: expectedWatchedFiles.map(nrefReplacer), @@ -1005,7 +1017,7 @@ export function gfoo() { bTsConfigJson.compilerOptions.paths = { "@ref/*": nrefsPath }; host.writeFile(bTsconfig.path, JSON.stringify(bTsConfigJson)); }, - expectedEditErrors: emptyArray, + expectedEditErrors: neverArray, expectedProgramFiles, expectedProjectFiles, expectedWatchedFiles: expectedProgramFiles.concat(cTsconfig.path, bTsconfig.path, aTsconfig.path).map(s => s.toLowerCase()), @@ -1451,4 +1463,4 @@ const a: string = "hello";`), ] }); }); -} + diff --git a/src/testRunner/unittests/tsc/composite.ts b/src/testRunner/unittests/tsc/composite.ts index 8eb0ea3bd8595..0592b4befc31f 100644 --- a/src/testRunner/unittests/tsc/composite.ts +++ b/src/testRunner/unittests/tsc/composite.ts @@ -1,4 +1,6 @@ -namespace ts { +import { verifyTsc } from "./helpers"; +import { loadProjectFromFiles } from "../tsbuild/helpers"; + describe("unittests:: tsc:: composite::", () => { verifyTsc({ scenario: "composite", @@ -82,4 +84,4 @@ namespace ts { commandLineArgs: ["--composite", "false", "--p", "src/project", "--tsBuildInfoFile", "null"], }); }); -} + diff --git a/src/testRunner/unittests/tsc/declarationEmit.ts b/src/testRunner/unittests/tsc/declarationEmit.ts index 5258b0eb01a5b..0e1fe43fc3616 100644 --- a/src/testRunner/unittests/tsc/declarationEmit.ts +++ b/src/testRunner/unittests/tsc/declarationEmit.ts @@ -1,4 +1,5 @@ -namespace ts { +import { neverArray, stringContains } from "../../../compiler/core"; + describe("unittests:: tsc:: declarationEmit::", () => { interface VerifyDeclarationEmitInput { subScenario: string; @@ -20,7 +21,7 @@ namespace ts { subScenario, sys: () => tscWatch.createWatchedSystem(files, { currentDirectory: tscWatch.projectRoot }), commandLineArgs: ["-p", rootProject, "--listFiles"], - changes: emptyArray + changes: neverArray }); }); @@ -34,7 +35,7 @@ namespace ts { { currentDirectory: tscWatch.projectRoot } ), commandLineArgs: ["-p", rootProject, "--listFiles"], - changes: emptyArray + changes: neverArray }); }); } @@ -247,4 +248,4 @@ ${pluginOneAction()}` changeCaseFileTestPath: str => stringContains(str, "/pkg1"), }); }); -} + diff --git a/src/testRunner/unittests/tsc/helpers.ts b/src/testRunner/unittests/tsc/helpers.ts index d2698e0b42b1e..dae5b483d79cc 100644 --- a/src/testRunner/unittests/tsc/helpers.ts +++ b/src/testRunner/unittests/tsc/helpers.ts @@ -1,4 +1,12 @@ -namespace ts { +import { TscIncremental, baselineBuildInfo, generateSourceMapBaselineFiles, getFsWithTime } from "../tsbuild/helpers"; +import { noop, neverArray, getProperty } from "../../../compiler/core"; +import { Program, ParsedCommandLine, ExitStatus } from "../../../compiler/types"; +import { EmitAndSemanticDiagnosticsBuilderProgram, BuilderProgram } from "../../../compiler/builderPublic"; +import { ExecuteCommandLineCallbacks, executeCommandLine, isBuild } from "../../../../built/local/executeCommandLine"; +import { System } from "../../../compiler/sys"; +import { ReadonlyCollection, MapLike } from "../../../compiler/corePublic"; +import { assert } from "console"; + export type TscCompileSystem = fakes.System & { writtenFiles: Set; baseLine(): { file: string; text: string; }; @@ -63,7 +71,7 @@ namespace ts { } }, getPrograms: () => { - const result = programs || emptyArray; + const result = programs || neverArray; programs = undefined; return result; } @@ -168,4 +176,4 @@ ${patch ? vfs.formatPatch(patch) : ""}` }); }); } -} + diff --git a/src/testRunner/unittests/tsc/incremental.ts b/src/testRunner/unittests/tsc/incremental.ts index fd42ccddf1843..9ba71669f232b 100644 --- a/src/testRunner/unittests/tsc/incremental.ts +++ b/src/testRunner/unittests/tsc/incremental.ts @@ -1,4 +1,8 @@ -namespace ts { +import { verifyTscSerializedIncrementalEdits, loadProjectFromFiles, appendText, loadProjectFromDisk, TscIncremental, replaceText } from "../tsbuild/helpers"; +import { noChangeOnlyRuns, noChangeRun, BuildKind } from "./helpers"; +import { CompilerOptions } from "../../../compiler/types"; +import { hasProperty } from "../../../compiler/core"; + describe("unittests:: tsc:: incremental::", () => { verifyTscSerializedIncrementalEdits({ scenario: "incremental", @@ -236,4 +240,4 @@ const a: string = 10;`, "utf-8"), } }); }); -} + diff --git a/src/testRunner/unittests/tsc/listFilesOnly.ts b/src/testRunner/unittests/tsc/listFilesOnly.ts index 97c9bd7d5e43c..dd4185289a3a5 100644 --- a/src/testRunner/unittests/tsc/listFilesOnly.ts +++ b/src/testRunner/unittests/tsc/listFilesOnly.ts @@ -1,4 +1,6 @@ -namespace ts { +import { verifyTsc } from "./helpers"; +import { loadProjectFromFiles } from "../tsbuild/helpers"; + describe("unittests:: tsc:: listFilesOnly::", () => { verifyTsc({ scenario: "listFilesOnly", @@ -20,4 +22,4 @@ namespace ts { commandLineArgs: ["/src/test.ts", "--listFilesOnly"] }); }); -} + diff --git a/src/testRunner/unittests/tsc/projectReferences.ts b/src/testRunner/unittests/tsc/projectReferences.ts index 765bdfdb53cf1..ae63febceda05 100644 --- a/src/testRunner/unittests/tsc/projectReferences.ts +++ b/src/testRunner/unittests/tsc/projectReferences.ts @@ -1,4 +1,6 @@ -namespace ts { +import { verifyTsc } from "./helpers"; +import { loadProjectFromFiles } from "../tsbuild/helpers"; + describe("unittests:: tsc:: projectReferences::", () => { verifyTsc({ scenario: "projectReferences", @@ -39,4 +41,4 @@ namespace ts { commandLineArgs: ["--p", "src/project"] }); }); -} + diff --git a/src/testRunner/unittests/tsc/runWithoutArgs.ts b/src/testRunner/unittests/tsc/runWithoutArgs.ts index ed53a16229490..1348e35a43322 100644 --- a/src/testRunner/unittests/tsc/runWithoutArgs.ts +++ b/src/testRunner/unittests/tsc/runWithoutArgs.ts @@ -1,4 +1,6 @@ -namespace ts { +import { verifyTsc } from "./helpers"; +import { loadProjectFromFiles } from "../tsbuild/helpers"; + describe("unittests:: tsc:: runWithoutArgs::", () => { verifyTsc({ scenario: "runWithoutArgs", @@ -7,4 +9,4 @@ namespace ts { commandLineArgs: [] }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/consoleClearing.ts b/src/testRunner/unittests/tscWatch/consoleClearing.ts index c874c32e04b31..29df10feca8eb 100644 --- a/src/testRunner/unittests/tscWatch/consoleClearing.ts +++ b/src/testRunner/unittests/tscWatch/consoleClearing.ts @@ -1,4 +1,9 @@ -namespace ts.tscWatch { +import { File } from "../../../harness/vfsUtil"; +import { TscWatchCompileChange, runQueuedTimeoutCallbacks, verifyTscWatch, createBaseline, createWatchOfConfigFile, runWatchBaseline } from "./helpers"; +import { neverArray } from "../../../compiler/core"; +import { createWatchedSystem, libFile } from "../../../../built/local/harness"; +import { CompilerOptions } from "../../../compiler/types"; + describe("unittests:: tsc-watch:: console clearing", () => { const scenario = "consoleClearing"; const file: File = { @@ -16,7 +21,7 @@ namespace ts.tscWatch { verifyTscWatch({ scenario, subScenario, - commandLineArgs: ["--w", file.path, ...commandLineOptions || emptyArray], + commandLineArgs: ["--w", file.path, ...commandLineOptions || neverArray], sys: () => createWatchedSystem([file, libFile]), changes: makeChangeToFile, }); @@ -59,4 +64,4 @@ namespace ts.tscWatch { }); }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/emit.ts b/src/testRunner/unittests/tscWatch/emit.ts index be2d95738829b..1839804167858 100644 --- a/src/testRunner/unittests/tscWatch/emit.ts +++ b/src/testRunner/unittests/tscWatch/emit.ts @@ -1,4 +1,8 @@ -namespace ts.tscWatch { +import { verifyTscWatch, runQueuedTimeoutCallbacks, TscWatchCompileChange, WatchedSystem, checkSingleTimeoutQueueLengthAndRun } from "./helpers"; +import { File } from "../../../harness/vfsUtil"; +import { createWatchedSystem, libFile } from "../../../../built/local/harness"; +import { neverArray, map, find } from "../../../compiler/core"; + const scenario = "emit"; describe("unittests:: tsc-watch:: emit with outFile or out setting", () => { function verifyOutAndOutFileSetting(subScenario: string, out?: string, outFile?: string) { @@ -67,7 +71,7 @@ namespace ts.tscWatch { }; return createWatchedSystem([file1, file2, file3, file4, libFile, configFile]); }, - changes: emptyArray + changes: neverArray }); } verifyFilesEmittedOnce("with --outFile and multiple declaration files in the program", /*useOutFile*/ true); @@ -131,7 +135,7 @@ namespace ts.tscWatch { path: configFilePath, content: JSON.stringify(configObj || {}) }; - const additionalFiles = getAdditionalFileOrFolder?.() || emptyArray; + const additionalFiles = getAdditionalFileOrFolder?.() || neverArray; const files = [moduleFile1, file1Consumer1, file1Consumer2, globalFile3, moduleFile2, configFile, libFile, ...additionalFiles]; return createWatchedSystem(firstReloadFileList ? map(firstReloadFileList, fileName => find(files, file => file.path === fileName)!) : @@ -516,4 +520,4 @@ export var x = Foo();` ], }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts index d4da16b41fc2f..8eb9d37fad4f5 100644 --- a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts +++ b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts @@ -1,4 +1,9 @@ -namespace ts.tscWatch { +import { File } from "../../../harness/vfsUtil"; +import { projectRoot, verifyTscWatch, TscWatchCompileChange, runQueuedTimeoutCallbacks, checkSingleTimeoutQueueLengthAndRun } from "./helpers"; +import { createWatchedSystem, libFile } from "../../../../built/local/harness"; +import { CompilerOptions } from "../../../compiler/types"; +import { libContent } from "../tsbuild/helpers"; + describe("unittests:: tsc-watch:: Emit times and Error updates in builder after program changes", () => { const config: File = { path: `${projectRoot}/tsconfig.json`, @@ -159,7 +164,7 @@ export class B content: `export interface Point { name: string; c: Coords; -} + export interface Coords { x2: number; y: number; @@ -341,4 +346,4 @@ const a: string = "hello";`), }); }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts b/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts index 5d0741eba30ce..78559b278c939 100644 --- a/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts +++ b/src/testRunner/unittests/tscWatch/forceConsistentCasingInFileNames.ts @@ -1,4 +1,7 @@ -namespace ts.tscWatch { +import { File } from "../../../harness/vfsUtil"; +import { projectRoot, TscWatchCompileChange, verifyTscWatch, runQueuedTimeoutCallbacks } from "./helpers"; +import { createWatchedSystem, libFile } from "../../../../built/local/harness"; + describe("unittests:: tsc-watch:: forceConsistentCasingInFileNames", () => { const loggerFile: File = { path: `${projectRoot}/logger.ts`, @@ -47,4 +50,4 @@ namespace ts.tscWatch { ] }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/helpers.ts b/src/testRunner/unittests/tscWatch/helpers.ts index 400958e552718..7e0a6d997ba88 100644 --- a/src/testRunner/unittests/tscWatch/helpers.ts +++ b/src/testRunner/unittests/tscWatch/helpers.ts @@ -1,4 +1,4 @@ -namespace ts.tscWatch { + export const projects = `/user/username/projects`; export const projectRoot = `${projects}/myproject`; export import WatchedSystem = TestFSWithWatch.TestServerHost; @@ -13,6 +13,20 @@ namespace ts.tscWatch { export import checkWatchedDirectoriesDetailed = TestFSWithWatch.checkWatchedDirectoriesDetailed; export import checkOutputContains = TestFSWithWatch.checkOutputContains; export import checkOutputDoesNotContain = TestFSWithWatch.checkOutputDoesNotContain; +import { Program, CompilerOptions, WatchOptions, Diagnostic, ExitStatus, DiagnosticMessage, DiagnosticMessageChain, SourceFile, CharacterCodes } from "../../../compiler/types"; +import { WatchOfConfigFile, WatchOfFilesAndCompilerOptions, createWatchProgram } from "../../../compiler/watchPublic"; +import { EmitAndSemanticDiagnosticsBuilderProgram } from "../../../compiler/builderPublic"; +import { createWatchCompilerHostOfConfigFile, createWatchCompilerHostOfFilesAndCompilerOptions, screenStartingMessageCodes, getErrorSummaryText } from "../../../compiler/watch"; +import { assert } from "console"; +import { forEach, contains, endsWith, map, neverArray, noop } from "../../../compiler/core"; +import { Debug } from "../../../compiler/debug"; +import { formatDiagnostic, flattenDiagnosticMessageText } from "../../../compiler/program"; +import { isString } from "util"; +import { createCompilerDiagnostic, getLocaleSpecificMessage, formatStringFromArgs } from "../../../compiler/utilities"; +import { toPath } from "../../../compiler/path"; +import { CommandLineProgram, commandLineCallbacks } from "../tsc/helpers"; +import { executeCommandLine, isBuild } from "../../../../built/local/executeCommandLine"; +import { generateSourceMapBaselineFiles } from "../tsbuild/helpers"; export const commonFile1: File = { path: "/a/b/commonFile1.ts", @@ -168,7 +182,7 @@ namespace ts.tscWatch { host, [ startingCompilationInWatchMode(), - ...map(logsBeforeErrors || emptyArray, expected => hostOutputLog(expected, "logBeforeError")), + ...map(logsBeforeErrors || neverArray, expected => hostOutputLog(expected, "logBeforeError")), ...map(errors, hostOutputDiagnostic), foundErrorsWatching(errors) ], @@ -180,9 +194,9 @@ namespace ts.tscWatch { checkOutputErrors( host, [ - ...map(logsBeforeWatchDiagnostic || emptyArray, expected => hostOutputLog(expected, "logsBeforeWatchDiagnostic")), + ...map(logsBeforeWatchDiagnostic || neverArray, expected => hostOutputLog(expected, "logsBeforeWatchDiagnostic")), fileChangeDetected(), - ...map(logsBeforeErrors || emptyArray, expected => hostOutputLog(expected, "logBeforeError")), + ...map(logsBeforeErrors || neverArray, expected => hostOutputLog(expected, "logBeforeError")), ...map(errors, hostOutputDiagnostic), foundErrorsWatching(errors) ], @@ -194,9 +208,9 @@ namespace ts.tscWatch { checkOutputErrors( host, [ - ...map(logsBeforeWatchDiagnostic || emptyArray, expected => hostOutputLog(expected, "logsBeforeWatchDiagnostic")), + ...map(logsBeforeWatchDiagnostic || neverArray, expected => hostOutputLog(expected, "logsBeforeWatchDiagnostic")), fileChangeDetected(), - ...map(logsBeforeErrors || emptyArray, expected => hostOutputLog(expected, "logBeforeError")), + ...map(logsBeforeErrors || neverArray, expected => hostOutputLog(expected, "logBeforeError")), ...map(errors, hostOutputDiagnostic), ], disableConsoleClears @@ -211,7 +225,7 @@ namespace ts.tscWatch { ...map(errors, hostOutputDiagnostic), ...reportErrorSummary ? [hostOutputWatchDiagnostic(getErrorSummaryText(errors.length, host.newLine))] : - emptyArray + neverArray ] ); } @@ -486,4 +500,4 @@ namespace ts.tscWatch { const content = Debug.checkDefined(sys.readFile(file)); sys.writeFile(file, content.replace(searchValue, replaceValue)); } -} + diff --git a/src/testRunner/unittests/tscWatch/incremental.ts b/src/testRunner/unittests/tscWatch/incremental.ts index f4b7fa13ed413..1f72cb9dd70fe 100644 --- a/src/testRunner/unittests/tscWatch/incremental.ts +++ b/src/testRunner/unittests/tscWatch/incremental.ts @@ -1,4 +1,16 @@ -namespace ts.tscWatch { +import { File } from "../../../harness/vfsUtil"; +import { WatchedSystem, createBaseline, applyChange, SystemSnap, watchBaseline } from "./helpers"; +import { createWatchedSystem, libFile } from "../../../../built/local/harness"; +import { neverArray, noop } from "../../../compiler/core"; +import { commandLineCallbacks } from "../tsc/helpers"; +import { isBuild, executeCommandLine } from "../../../../built/local/executeCommandLine"; +import { createDiagnosticReporter, parseConfigFileWithSystem, performIncrementalCompilation } from "../../../compiler/watch"; +import { getConfigFileParsingDiagnostics } from "../../../compiler/program"; +import { createIncrementalProgram, createIncrementalCompilerHost } from "../../../compiler/watchPublic"; +import { assert } from "console"; +import { Path, ModuleKind } from "../../../compiler/types"; +import { libContent } from "../tsbuild/helpers"; + describe("unittests:: tsc-watch:: emit file --incremental", () => { const project = "/users/username/projects/project"; @@ -30,7 +42,7 @@ namespace ts.tscWatch { ) { const { sys, baseline, oldSnap } = createBaseline(createWatchedSystem(files(), { currentDirectory: project })); if (incremental) sys.exit = exitCode => sys.exitCode = exitCode; - const argsToPass = [incremental ? "-i" : "-w", ...(optionsToExtend || emptyArray)]; + const argsToPass = [incremental ? "-i" : "-w", ...(optionsToExtend || neverArray)]; baseline.push(`${sys.getExecutingFilePath()} ${argsToPass.join(" ")}`); const { cb, getPrograms } = commandLineCallbacks(sys); build(oldSnap); @@ -183,8 +195,8 @@ namespace ts.tscWatch { assert.equal(state.exportedModulesMap!.size, 0); assert.equal(state.semanticDiagnosticsPerFile!.size, 3); - assert.deepEqual(state.semanticDiagnosticsPerFile!.get(libFile.path as Path), emptyArray); - assert.deepEqual(state.semanticDiagnosticsPerFile!.get(file1.path as Path), emptyArray); + assert.deepEqual(state.semanticDiagnosticsPerFile!.get(libFile.path as Path), neverArray); + assert.deepEqual(state.semanticDiagnosticsPerFile!.get(file1.path as Path), neverArray); assert.deepEqual(state.semanticDiagnosticsPerFile!.get(file2.path as Path), [{ file: state.program!.getSourceFileByPath(file2.path as Path)!, start: 13, @@ -229,7 +241,7 @@ namespace ts.tscWatch { content: `import { B } from "./b"; export interface A { b: B; -} + ` }; const bTs: File = { @@ -237,7 +249,7 @@ export interface A { content: `import { C } from "./c"; export interface B { b: C; -} + ` }; const cTs: File = { @@ -245,7 +257,7 @@ export interface B { content: `import { A } from "./a"; export interface C { a: A; -} + ` }; const indexTs: File = { @@ -262,7 +274,7 @@ export { C } from "./c"; export interface A { b: B; foo: any; -} + `) }); @@ -277,4 +289,4 @@ export interface A { modifyFs: host => host.deleteFile(`${project}/globals.d.ts`) }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/programUpdates.ts b/src/testRunner/unittests/tscWatch/programUpdates.ts index 63888db6bf733..6a717d6100539 100644 --- a/src/testRunner/unittests/tscWatch/programUpdates.ts +++ b/src/testRunner/unittests/tscWatch/programUpdates.ts @@ -1,4 +1,11 @@ -namespace ts.tscWatch { +import { File } from "../../../harness/vfsUtil"; +import { verifyTscWatch, commonFile1, commonFile2, checkSingleTimeoutQueueLengthAndRun, createWatchOfFilesAndCompilerOptions, checkProgramActualFiles, projectRoot, WatchedSystem, TscWatchCompileChange, runQueuedTimeoutCallbacks, noopChange, replaceFileText } from "./helpers"; +import { createWatchedSystem, libFile } from "../../../../built/local/harness"; +import { neverArray } from "../../../compiler/core"; +import { getDirectoryPath } from "../../../compiler/path"; +import { CompilerOptions, ModuleKind } from "../../../compiler/types"; +import { generateTSConfig } from "../../../../built/local/compiler"; + describe("unittests:: tsc-watch:: program updates", () => { const scenario = "programUpdates"; const configFilePath = "/a/b/tsconfig.json"; @@ -25,7 +32,7 @@ namespace ts.tscWatch { }; return createWatchedSystem([appFile, moduleFile, libFile]); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -45,7 +52,7 @@ namespace ts.tscWatch { }; return createWatchedSystem([f1, libFile, config], { useCaseSensitiveFileNames: false }); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -77,7 +84,7 @@ namespace ts.tscWatch { }; return createWatchedSystem([configFile, libFile, file1, file2, file3]); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -111,7 +118,7 @@ namespace ts.tscWatch { }; return createWatchedSystem([commonFile1, commonFile2, libFile, configFile]); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -305,7 +312,7 @@ export class A { }; return createWatchedSystem([libFile, commonFile1, commonFile2, excludedFile1, configFile]); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -367,7 +374,7 @@ export class A { }; return createWatchedSystem([commonFile1, commonFile2, libFile, configFile]); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -478,7 +485,7 @@ export class A { }; return createWatchedSystem([file1, file2, file3, libFile, configFile]); }, - changes: emptyArray + changes: neverArray }); it("correctly migrate files between projects", () => { @@ -647,7 +654,7 @@ export class A { }; return createWatchedSystem([file1, libFile, corruptedConfig]); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -728,7 +735,7 @@ declare const eval: any` }; return createWatchedSystem([f, config, libFile]); }, - changes: emptyArray + changes: neverArray }); function runQueuedTimeoutCallbacksTwice(sys: WatchedSystem) { @@ -814,7 +821,7 @@ declare const eval: any` }; return createWatchedSystem([f1, config, node, cwd, libFile], { currentDirectory: cwd.path }); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -857,7 +864,7 @@ declare const eval: any` }; return createWatchedSystem([file, configFile, libFile]); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -877,7 +884,7 @@ declare const eval: any` }; return createWatchedSystem([file, configFile, libFile]); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -930,7 +937,7 @@ declare const eval: any` }; return createWatchedSystem([file1, configFile, libFile]); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -959,7 +966,7 @@ declare const eval: any` }; return createWatchedSystem([f, config, t1, t2, libFile], { currentDirectory: getDirectoryPath(f.path) }); }, - changes: emptyArray + changes: neverArray }); it("should support files without extensions", () => { @@ -1027,7 +1034,7 @@ declare const eval: any` }; const tsconfig: File = { path: `${projectRoot}/tsconfig.json`, - content: generateTSConfig(options, emptyArray, "\n") + content: generateTSConfig(options, neverArray, "\n") }; return createWatchedSystem([file1, file2, libFile, tsconfig], { currentDirectory: projectRoot }); }, @@ -1152,7 +1159,7 @@ test(4, 5);` path: `${projectRoot}/b.ts`, content: `function test(x: number, y: number) { return x + y / 5; -} + export default test;` }; const tsconfigFile: File = { @@ -1434,7 +1441,7 @@ interface Document { }); } - verifyLibErrors(`${subScenario}/with default options`, emptyArray); + verifyLibErrors(`${subScenario}/with default options`, neverArray); verifyLibErrors(`${subScenario}/with skipLibCheck`, ["--skipLibCheck"]); verifyLibErrors(`${subScenario}/with skipDefaultLibCheck`, ["--skipDefaultLibCheck"]); } @@ -1579,4 +1586,4 @@ import { x } from "../b";`), ] }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/resolutionCache.ts b/src/testRunner/unittests/tscWatch/resolutionCache.ts index 03cc81752a554..a564f8e88d610 100644 --- a/src/testRunner/unittests/tscWatch/resolutionCache.ts +++ b/src/testRunner/unittests/tscWatch/resolutionCache.ts @@ -1,4 +1,11 @@ -namespace ts.tscWatch { +import { libFile, createWatchedSystem, SymLink } from "../../../../built/local/harness"; +import { createWatchOfFilesAndCompilerOptions, getDiagnosticOfFileFromProgram, checkOutputErrorsInitial, checkOutputErrorsIncremental, getDiagnosticModuleNotFoundOfFile, verifyTscWatch, runQueuedTimeoutCallbacks, projectRoot } from "./helpers"; +import { ModuleKind } from "../../../compiler/types"; +import { notImplemented, neverArray, noop } from "../../../compiler/core"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; +import { Watch } from "../../../compiler/watchPublic"; + describe("unittests:: tsc-watch:: resolutionCache:: tsc-watch module resolution caching", () => { const scenario = "resolutionCache"; it("works", () => { @@ -127,7 +134,7 @@ namespace ts.tscWatch { host.writeFile(imported.path, imported.content); host.runQueuedTimeoutCallbacks(); - checkOutputErrorsIncremental(host, emptyArray); + checkOutputErrorsIncremental(host, neverArray); assert.isTrue(fileExistsCalledForBar, "'fileExists' should be called."); }); @@ -158,7 +165,7 @@ namespace ts.tscWatch { const watch = createWatchOfFilesAndCompilerOptions([root.path], host, { module: ModuleKind.AMD }); assert.isTrue(fileExistsCalledForBar, "'fileExists' should be called"); - checkOutputErrorsInitial(host, emptyArray); + checkOutputErrorsInitial(host, neverArray); fileExistsCalledForBar = false; host.deleteFile(imported.path); @@ -172,7 +179,7 @@ namespace ts.tscWatch { host.writeFile(imported.path, imported.content); host.checkTimeoutQueueLengthAndRun(1); // Scheduled invalidation of resolutions host.checkTimeoutQueueLengthAndRun(1); // Actual update - checkOutputErrorsIncremental(host, emptyArray); + checkOutputErrorsIncremental(host, neverArray); assert.isTrue(fileExistsCalledForBar, "'fileExists' should be called."); }); @@ -193,7 +200,7 @@ namespace ts.tscWatch { content: ` { "main": "" -} + ` }); sys.ensureFileOrFolder({ @@ -231,7 +238,7 @@ declare module "url" { export interface Url { href?: string; } -} + ` }; return createWatchedSystem([root, file, libFile], { currentDirectory: "/a/b" }); @@ -244,7 +251,7 @@ declare module "fs" { export interface Stats { isFile(): boolean; } -} + `), timeouts: runQueuedTimeoutCallbacks, } @@ -386,8 +393,8 @@ declare module "fs" { }); sys.ensureFileOrFolder({ path: `${projectRoot}/node_modules/@myapp/ts-types/types/somefile.define.d.ts`, - content: ` -declare namespace myapp { + content: +`declare namespace myapp { function component(str: string): number; }` }); @@ -447,7 +454,7 @@ declare namespace myapp { const files = [libFile, mainFile, config, linkedPackageInMain, linkedPackageJson, linkedPackageIndex, linkedPackageOther]; return createWatchedSystem(files, { currentDirectory: mainPackageRoot }); }, - changes: emptyArray + changes: neverArray }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts b/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts index 4a831626e4e22..79fa9b66ecc59 100644 --- a/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts +++ b/src/testRunner/unittests/tscWatch/sourceOfProjectReferenceRedirect.ts @@ -1,5 +1,14 @@ -namespace ts.tscWatch { + import getFileFromProject = TestFSWithWatch.getTsBuildProjectFile; +import { createWatchedSystem, libFile, SymLink } from "../../../../built/local/harness"; +import { createSolutionBuilder } from "../../../compiler/tsbuildPublic"; +import { createWatchCompilerHostOfConfigFile } from "../../../compiler/watch"; +import { returnTrue } from "../../../compiler/core"; +import { createWatchProgram } from "../../../compiler/watchPublic"; +import { checkProgramActualFiles, projectRoot } from "./helpers"; +import { libContent } from "../tsbuild/helpers"; +import { File } from "../../../harness/vfsUtil"; +import { CompilerOptions } from "../../../compiler/types"; describe("unittests:: tsc-watch:: watchAPI:: with sourceOfProjectReferenceRedirect", () => { interface VerifyWatchInput { files: readonly TestFSWithWatch.FileOrFolderOrSymLink[]; @@ -158,4 +167,4 @@ bar(); }); }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/watchApi.ts b/src/testRunner/unittests/tscWatch/watchApi.ts index 6dcf1b30f7b35..7fa620aaa1ef0 100644 --- a/src/testRunner/unittests/tscWatch/watchApi.ts +++ b/src/testRunner/unittests/tscWatch/watchApi.ts @@ -1,4 +1,12 @@ -namespace ts.tscWatch { +import { File } from "../../../harness/vfsUtil"; +import { projectRoot, checkProgramActualFiles } from "./helpers"; +import { libFile, createWatchedSystem } from "../../../../built/local/harness"; +import { createWatchCompilerHostOfConfigFile } from "../../../compiler/watch"; +import { parseJsonConfigFileContent, resolveModuleName } from "../../../../built/local/compiler"; +import { createWatchProgram, WatchStatusReporter, createWatchCompilerHost } from "../../../compiler/watchPublic"; +import { assert } from "console"; +import { ScriptKind } from "../../../compiler/types"; + describe("unittests:: tsc-watch:: watchAPI:: tsc-watch with custom module resolution", () => { const configFileJson: any = { compilerOptions: { module: "commonjs", resolveJsonModule: true }, @@ -123,4 +131,4 @@ namespace ts.tscWatch { checkProgramActualFiles(watch.getProgram().getProgram(), [mainFile.path, otherFile.path, libFile.path]); }); }); -} + diff --git a/src/testRunner/unittests/tscWatch/watchEnvironment.ts b/src/testRunner/unittests/tscWatch/watchEnvironment.ts index 20dabc4194789..2d1190f23d2f1 100644 --- a/src/testRunner/unittests/tscWatch/watchEnvironment.ts +++ b/src/testRunner/unittests/tscWatch/watchEnvironment.ts @@ -1,5 +1,11 @@ -namespace ts.tscWatch { + import Tsc_WatchDirectory = TestFSWithWatch.Tsc_WatchDirectory; +import { verifyTscWatch, checkSingleTimeoutQueueLengthAndRun, projectRoot, noopChange, commonFile1, commonFile2 } from "./helpers"; +import { File } from "../../../harness/vfsUtil"; +import { createMap, noop, neverArray } from "../../../compiler/core"; +import { createWatchedSystem, libFile, SymLink } from "../../../../built/local/harness"; +import { unchangedPollThresholds, PollingInterval } from "../../../compiler/sys"; +import { assert } from "console"; describe("unittests:: tsc-watch:: watchEnvironment:: tsc-watch with different polling/non polling options", () => { const scenario = "watchEnvironment"; verifyTscWatch({ @@ -160,7 +166,7 @@ namespace ts.tscWatch { environmentVariables.set("TSC_WATCHDIRECTORY", Tsc_WatchDirectory.NonRecursiveWatchDirectory); return createWatchedSystem(files, { environmentVariables, currentDirectory: cwd }); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -356,7 +362,7 @@ namespace ts.tscWatch { const files = [libFile, commonFile1, commonFile2, configFile]; return createWatchedSystem(files); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -375,7 +381,7 @@ namespace ts.tscWatch { const files = [libFile, commonFile1, commonFile2, configFile]; return createWatchedSystem(files, { runWithoutRecursiveWatches: true }); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -394,7 +400,7 @@ namespace ts.tscWatch { const files = [libFile, commonFile1, commonFile2, configFile]; return createWatchedSystem(files, { runWithoutRecursiveWatches: true, runWithFallbackPolling: true }); }, - changes: emptyArray + changes: neverArray }); verifyTscWatch({ @@ -409,8 +415,8 @@ namespace ts.tscWatch { const files = [libFile, commonFile1, commonFile2, configFile]; return createWatchedSystem(files); }, - changes: emptyArray + changes: neverArray }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/applyChangesToOpenFiles.ts b/src/testRunner/unittests/tsserver/applyChangesToOpenFiles.ts index 6d5ee91d68d67..6e691a90434f1 100644 --- a/src/testRunner/unittests/tsserver/applyChangesToOpenFiles.ts +++ b/src/testRunner/unittests/tsserver/applyChangesToOpenFiles.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { assert } from "console"; +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { commonFile1, commonFile2 } from "../tscWatch/helpers"; +import { createSession, protocol } from "./helpers"; + describe("unittests:: tsserver:: applyChangesToOpenFiles", () => { const configFile: File = { path: "/a/b/tsconfig.json", @@ -178,4 +183,4 @@ ${file.content}`; }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/autoImportProvider.ts b/src/testRunner/unittests/tsserver/autoImportProvider.ts index 031af230c5239..65fd993ca55e7 100644 --- a/src/testRunner/unittests/tsserver/autoImportProvider.ts +++ b/src/testRunner/unittests/tsserver/autoImportProvider.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { openFilesForSession, checkNumberOfInferredProjects, checkNumberOfConfiguredProjects, createSession, protocol } from "./helpers"; +import { assert } from "console"; +import { createServerHost } from "../../../../built/local/harness"; +import { Debug } from "../../../compiler/debug"; + const angularFormsDts: File = { path: "/node_modules/@angular/forms/forms.d.ts", content: "export declare class PatternValidator {}", @@ -302,4 +307,4 @@ namespace ts.projectSystem { }); } } -} + diff --git a/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts b/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts index e8fdd4bbc3fc8..8220d1b7d1507 100644 --- a/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts +++ b/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts @@ -1,4 +1,12 @@ -namespace ts.projectSystem { +import { countWhere, startsWith, MultiMap, createMultiMap, arrayFrom, returnTrue, createMap, map, mapDefined, last, forEach, find, filter } from "../../../compiler/core"; +import { directorySeparator, getDirectoryPath, forEachAncestorDirectory, combinePaths } from "../../../compiler/path"; +import { TestServerHost, createServerHost, libFile, checkWatchedFiles, checkWatchedDirectories } from "../../../../built/local/harness"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; +import { createProjectService, checkNumberOfProjects, mapCombinedPathsInAncestor, nodeModulesAtTypes, nodeModules, createSession, checkNumberOfConfiguredProjects, checkProjectActualFiles, makeSessionRequest, protocol, getNodeModuleDirectories, getTypeRootsFromLocation } from "./helpers"; +import { ModuleKind, ScriptTarget, Path } from "../../../compiler/types"; +import { flattenDiagnosticMessageText } from "../../../compiler/program"; + function getNumberOfWatchesInvokedForRecursiveWatches(recursiveWatchedDirs: string[], file: string) { return countWhere(recursiveWatchedDirs, dir => file.length > dir.length && startsWith(file, dir) && file[dir.length] === directorySeparator); } @@ -535,7 +543,7 @@ namespace ts.projectSystem { "keywords": [], "author": "", "license": "ISC" -} + ` }); const appFolder = getDirectoryPath(app.path); @@ -714,4 +722,4 @@ namespace ts.projectSystem { assert.deepEqual(project.getLanguageService().getSemanticDiagnostics(app.path).map(diag => diag.messageText), []); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/cancellationToken.ts b/src/testRunner/unittests/tsserver/cancellationToken.ts index 4e5d8ab00f983..0cf9e86f5b0e9 100644 --- a/src/testRunner/unittests/tsserver/cancellationToken.ts +++ b/src/testRunner/unittests/tsserver/cancellationToken.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { AnyFunction, noop } from "../../../compiler/core"; +import { createServerHost } from "../../../../built/local/harness"; +import { assert } from "console"; +import { createSession, TestServerCancellationToken, protocol } from "./helpers"; +import { OperationCanceledException } from "../../../compiler/types"; + describe("unittests:: tsserver:: cancellationToken", () => { // Disable sourcemap support for the duration of the test, as sourcemapping the errors generated during this test is slow and not something we care to test let oldPrepare: AnyFunction; @@ -271,4 +276,4 @@ namespace ts.projectSystem { } }); }); -} + diff --git a/src/testRunner/unittests/tsserver/compileOnSave.ts b/src/testRunner/unittests/tsserver/compileOnSave.ts index ec30aef0087fa..837e149a92a00 100644 --- a/src/testRunner/unittests/tsserver/compileOnSave.ts +++ b/src/testRunner/unittests/tsserver/compileOnSave.ts @@ -1,5 +1,12 @@ -namespace ts.projectSystem { + import CommandNames = server.CommandNames; +import { TestTypingsInstaller, createHasErrorMessageLogger, makeSessionRequest, openFilesForSession, protocol, checkNumberOfProjects, checkProjectRootFiles, createSession, toExternalFiles, protocolTextSpanFromSubstring, checkProjectActualFiles } from "./helpers"; +import { File } from "../../../harness/vfsUtil"; +import { compareStringsCaseSensitive, map, arrayIsEqualTo, stringContains, neverArray } from "../../../compiler/core"; +import { assert } from "console"; +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { CompilerOptions, Extension, diagnosticCategoryName } from "../../../compiler/types"; +import { formatStringFromArgs, changeExtension } from "../../../compiler/utilities"; const nullCancellationToken = server.nullCancellationToken; function createTestTypingsInstaller(host: server.ServerHost) { @@ -847,7 +854,7 @@ namespace ts.projectSystem { arguments: { file: file1.path, richResponse } }).response; if (richResponse) { - assert.deepEqual(file1SaveResponse, { emitSkipped: false, diagnostics: emptyArray }); + assert.deepEqual(file1SaveResponse, { emitSkipped: false, diagnostics: neverArray }); } else { assert.isTrue(file1SaveResponse); @@ -931,7 +938,7 @@ function bar() { path: `${tscWatch.projectRoot}/module.ts`, content: "export const xyz = 4;" }; - const files = [file1, file2, file3, ...(hasModule ? [module] : emptyArray)]; + const files = [file1, file2, file3, ...(hasModule ? [module] : neverArray)]; const host = createServerHost([...files, config, libFile]); const session = createSession(host); openFilesForSession([file1, file2], session); @@ -998,7 +1005,7 @@ function bar() { arguments: { file: file.path } }).response as protocol.CompileOnSaveAffectedFileListSingleProject[]; assert.deepEqual(affectedFileResponse, [ - { fileNames: [file.path, ...(returnsAllFilesAsAffected ? files.filter(f => f !== file).map(f => f.path) : emptyArray)], projectFileName: config.path, projectUsesOutFile: false } + { fileNames: [file.path, ...(returnsAllFilesAsAffected ? files.filter(f => f !== file).map(f => f.path) : neverArray)], projectFileName: config.path, projectUsesOutFile: false } ]); file.content = file.content.replace(oldText, newText); verifyFileSave(file); @@ -1101,4 +1108,4 @@ function bar() { assert.equal(session.getProjectService().configuredProjects.get(app2Config.path)!.dirty, false); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/completions.ts b/src/testRunner/unittests/tsserver/completions.ts index 919295bad8056..0c96bf86095ed 100644 --- a/src/testRunner/unittests/tsserver/completions.ts +++ b/src/testRunner/unittests/tsserver/completions.ts @@ -1,4 +1,13 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createSession, openFilesForSession, protocol, executeSessionRequest, TestTypingsInstaller, checkNumberOfProjects, checkProjectActualFiles } from "./helpers"; +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { ScriptElementKind, ScriptElementKindModifier, CompletionEntryDetails, SymbolDisplayPartKind } from "../../../services/types"; +import { assert } from "console"; +import { keywordPart, spacePart, displayPart, punctuationPart, createTextChange } from "../../../services/utilities"; +import { SyntaxKind } from "../../../compiler/types"; +import { neverArray } from "../../../compiler/core"; +import { createTextSpan } from "../../../../built/local/compiler"; + describe("unittests:: tsserver:: completions", () => { it("works", () => { const aTs: File = { @@ -62,7 +71,7 @@ namespace ts.projectSystem { spacePart(), displayPart("0", SymbolDisplayPartKind.stringLiteral), ], - documentation: emptyArray, + documentation: neverArray, kind: ScriptElementKind.constElement, kindModifiers: ScriptElementKindModifier.exportedModifier, name: "foo", @@ -248,4 +257,4 @@ export interface BrowserRouterProps { }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/configFileSearch.ts b/src/testRunner/unittests/tsserver/configFileSearch.ts index 9da005e19e52e..950a824349b20 100644 --- a/src/testRunner/unittests/tsserver/configFileSearch.ts +++ b/src/testRunner/unittests/tsserver/configFileSearch.ts @@ -1,4 +1,11 @@ -namespace ts.projectSystem { +import { createServerHost, libFile, checkWatchedFiles, checkWatchedDirectories, TestServerHost, checkWatchedFilesDetailed } from "../../../../built/local/harness"; +import { createProjectService, checkNumberOfConfiguredProjects, checkNumberOfInferredProjects, checkNumberOfProjects, getTypeRootsFromLocation, TestProjectService, checkProjectActualFiles, getConfigFilesToWatch } from "./helpers"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; +import { getDirectoryPath } from "../../../compiler/path"; +import { Debug } from "../../../compiler/debug"; +import { neverArray } from "../../../compiler/core"; + describe("unittests:: tsserver:: searching for config file", () => { it("should stop at projectRootPath if given", () => { const f1 = { @@ -121,7 +128,7 @@ namespace ts.projectSystem { checkProjectActualFiles(project, [file.path, libFile.path, tsconfig.path]); checkWatchedFiles(host, [libFile.path, tsconfig.path]); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); checkWatchedDirectories(host, (orphanInferredProject ? [projectRoot, `${dirOfFile}/node_modules/@types`] : [projectRoot]).concat(getTypeRootsFromLocation(projectRoot)), /*recursive*/ true); } @@ -134,7 +141,7 @@ namespace ts.projectSystem { checkProjectActualFiles(project, [file.path, libFile.path]); checkWatchedFiles(host, filesToWatch); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); checkWatchedDirectories(host, getTypeRootsFromLocation(dirOfFile), /*recursive*/ true); } @@ -185,4 +192,4 @@ namespace ts.projectSystem { }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/configuredProjects.ts b/src/testRunner/unittests/tsserver/configuredProjects.ts index 5c8acc00fb071..810d20b28c8b5 100644 --- a/src/testRunner/unittests/tsserver/configuredProjects.ts +++ b/src/testRunner/unittests/tsserver/configuredProjects.ts @@ -1,4 +1,14 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile, checkWatchedFiles, checkWatchedDirectories, SymLink, checkWatchedDirectoriesDetailed } from "../../../../built/local/harness"; +import { createProjectService, checkNumberOfInferredProjects, checkNumberOfConfiguredProjects, configuredProjectAt, checkProjectActualFiles, checkProjectRootFiles, nodeModulesAtTypes, getConfigFilesToWatch, checkNumberOfProjects, checkOpenFiles, createSessionWithEventTracking, protocol, createSession, openFilesForSession, verifyGetErrRequestNoErrors, getTypeRootsFromLocation } from "./helpers"; +import { assert } from "console"; +import { getDirectoryPath, combinePaths } from "../../../compiler/path"; +import { commonFile1, commonFile2 } from "../tscWatch/helpers"; +import { Path } from "../../../compiler/types"; +import { find, map, mapDefined, neverArray } from "../../../compiler/core"; +import { createTextSpan } from "../../../../built/local/compiler"; +import { createCompilerDiagnostic } from "../../../compiler/utilities"; + describe("unittests:: tsserver:: ConfiguredProjects", () => { it("create configured project without file list", () => { const configFile: File = { @@ -1211,7 +1221,7 @@ foo();` assert.strictEqual(projectService.configuredProjects.get(configFile.path), project); checkProjectActualFiles(project, mapDefined(files, file => file === file2a ? undefined : file.path)); checkWatchedFiles(host, mapDefined(files, file => file === file1 ? undefined : file.path)); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); checkWatchedDirectoriesDetailed(host, ["/a/b/node_modules/@types"], 1, /*recursive*/ true); // On next file open the files file2a should be closed and not watched any more @@ -1220,7 +1230,7 @@ foo();` assert.strictEqual(projectService.configuredProjects.get(configFile.path), project); checkProjectActualFiles(project, mapDefined(files, file => file === file2a ? undefined : file.path)); checkWatchedFiles(host, [libFile.path, configFile.path]); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); checkWatchedDirectoriesDetailed(host, ["/a/b/node_modules/@types"], 1, /*recursive*/ true); }); @@ -1298,4 +1308,4 @@ foo();` }]); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/declarationFileMaps.ts b/src/testRunner/unittests/tsserver/declarationFileMaps.ts index c52e2ad807a74..c0a099c4c1868 100644 --- a/src/testRunner/unittests/tsserver/declarationFileMaps.ts +++ b/src/testRunner/unittests/tsserver/declarationFileMaps.ts @@ -1,4 +1,15 @@ -namespace ts.projectSystem { +import { DocumentSpanFromSubstring, textSpanFromSubstring, openFilesForSession, closeFilesForSession, createSession, checkNumberOfProjects, checkProjectActualFiles, executeSessionRequest, protocol, protocolFileLocationFromSubstring, protocolFileSpanWithContextFromSubstring, protocolTextSpanFromSubstring, protocolFileSpanFromSubstring, makeReferenceItem, protocolLocationFromSubstring, protocolRenameSpanFromSubstring } from "./helpers"; +import { DocumentSpan, RenameLocation, ReferenceEntry, ScriptElementKind, ReferencedSymbol, SymbolDisplayPartKind, ScriptElementKindModifier } from "../../../services/types"; +import { File } from "../../../harness/vfsUtil"; +import { Debug } from "../../../compiler/debug"; +import { getFileEmitOutput } from "../../../compiler/builderState"; +import { assert } from "console"; +import { OutputFile } from "../../../../built/local/compiler"; +import { CompilerOptions, RawSourceMap, SyntaxKind } from "../../../compiler/types"; +import { createServerHost } from "../../../../built/local/harness"; +import { CommandNames } from "../../../server/session"; +import { keywordPart, spacePart, displayPart, punctuationPart } from "../../../services/utilities"; + function documentSpanFromSubstring({ file, text, contextText, options, contextOptions }: DocumentSpanFromSubstring): DocumentSpan { const contextSpan = contextText !== undefined ? documentSpanFromSubstring({ file, text: contextText, options: contextOptions }) : undefined; return { @@ -58,13 +69,13 @@ namespace ts.projectSystem { mappings: "AAAA,wBAAgB,GAAG,SAAK;AACxB,MAAM,WAAW,MAAM;CAAG;AAC1B,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC" }; const aDtsMap: File = { - path: "/a/bin/a.d.ts.map", + path: "/a/bin/a.d.map", content: JSON.stringify(aDtsMapContent), }; const aDts: File = { path: "/a/bin/a.d.ts", // ${""} is needed to mangle the sourceMappingURL part or it breaks the build - content: `export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# source${""}MappingURL=a.d.ts.map`, + content: `export declare function fnA(): void;\nexport interface IfaceA {\n}\nexport declare const instanceA: IfaceA;\n//# source${""}MappingURL=a.d.map`, }; const bTs: File = { @@ -82,13 +93,13 @@ namespace ts.projectSystem { mappings: "AAAA,wBAAgB,GAAG,SAAK", }; const bDtsMap: File = { - path: "/b/bin/b.d.ts.map", + path: "/b/bin/b.d.map", content: JSON.stringify(bDtsMapContent), }; const bDts: File = { // ${""} is need to mangle the sourceMappingURL part so it doesn't break the build path: "/b/bin/b.d.ts", - content: `export declare function fnB(): void;\n//# source${""}MappingURL=b.d.ts.map`, + content: `export declare function fnB(): void;\n//# source${""}MappingURL=b.d.map`, }; const dummyFile: File = { @@ -473,9 +484,9 @@ namespace ts.projectSystem { }; const bTs: File = { path: "/b/b.ts", content: `f();` }; const bTsconfig: File = { path: "/b/tsconfig.json", content: JSON.stringify({ references: [{ path: "../a" }] }) }; - const aDts: File = { path: "/bin/a.d.ts", content: `declare function f(): void;\n//# sourceMappingURL=a.d.ts.map` }; + const aDts: File = { path: "/bin/a.d.ts", content: `declare function f(): void;\n//# sourceMappingURL=a.d.map` }; const aDtsMap: File = { - path: "/bin/a.d.ts.map", + path: "/bin/a.d.map", content: JSON.stringify({ version: 3, file: "a.d.ts", sourceRoot: "", sources: ["../a/a.ts"], names: [], mappings: "AAAA,iBAAS,CAAC,SAAK" }), }; @@ -773,4 +784,4 @@ namespace ts.projectSystem { verifySingleInferredProject(session); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/documentRegistry.ts b/src/testRunner/unittests/tsserver/documentRegistry.ts index 94098ab1bd9ba..1908da446f446 100644 --- a/src/testRunner/unittests/tsserver/documentRegistry.ts +++ b/src/testRunner/unittests/tsserver/documentRegistry.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { TestProjectService, checkProjectActualFiles, createProjectService } from "./helpers"; +import { libFile, createServerHost } from "../../../../built/local/harness"; +import { assert } from "console"; +import { singleIterator } from "../../../compiler/core"; + describe("unittests:: tsserver:: document registry in project service", () => { const importModuleContent = `import {a} from "./module1"`; const file: File = { @@ -90,4 +95,4 @@ namespace ts.projectSystem { assert.equal(moduleInfo.cacheSourceFile!.sourceFile.text, updatedModuleContent); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/duplicatePackages.ts b/src/testRunner/unittests/tsserver/duplicatePackages.ts index c6e4868ba4ab7..43f9924bbfb43 100644 --- a/src/testRunner/unittests/tsserver/duplicatePackages.ts +++ b/src/testRunner/unittests/tsserver/duplicatePackages.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, executeSessionRequest, protocol } from "./helpers"; +import { assert } from "console"; + describe("unittests:: tsserver:: duplicate packages", () => { // Tests that 'moduleSpecifiers.ts' will import from the redirecting file, and not from the file it redirects to, if that can provide a global module specifier. it("works with import fixes", () => { @@ -51,4 +55,4 @@ namespace ts.projectSystem { } }); }); -} + diff --git a/src/testRunner/unittests/tsserver/dynamicFiles.ts b/src/testRunner/unittests/tsserver/dynamicFiles.ts index 6b551a6453d78..b4c05d5c50722 100644 --- a/src/testRunner/unittests/tsserver/dynamicFiles.ts +++ b/src/testRunner/unittests/tsserver/dynamicFiles.ts @@ -1,4 +1,12 @@ -namespace ts.projectSystem { +import { Debug } from "../../../compiler/debug"; +import { arrayFrom } from "../../../compiler/core"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { createProjectService, checkProjectRootFiles, checkProjectActualFiles, createSession, openFilesForSession, executeSessionRequestNoResponse, protocol, executeSessionRequest, checkNumberOfProjects } from "./helpers"; +import { ModuleKind } from "../../../compiler/types"; +import { ScriptElementKind } from "../../../services/types"; + export function verifyDynamic(service: server.ProjectService, path: string) { const info = Debug.checkDefined(service.filenameToScriptInfo.get(path), `Expected ${path} in :: ${JSON.stringify(arrayFrom(service.filenameToScriptInfo.entries(), ([key, f]) => ({ key, fileName: f.fileName, path: f.path })))}`); assert.isTrue(info.isDynamic); @@ -235,4 +243,4 @@ var x = 10;` }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts b/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts index 1807f104ee2d6..e0d7835b956cd 100644 --- a/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts +++ b/src/testRunner/unittests/tsserver/events/largeFileReferenced.ts @@ -1,4 +1,4 @@ -namespace ts.projectSystem { + describe("unittests:: tsserver:: events:: LargeFileReferencedEvent with large file", () => { function getLargeFile(useLargeTsFile: boolean) { @@ -25,7 +25,7 @@ namespace ts.projectSystem { const info = service.getScriptInfo(largeFile.path)!; assert.equal(info.cacheSourceFile!.sourceFile.text, useLargeTsFile ? largeFile.content : ""); - assert.deepEqual(largeFileReferencedEvents, useLargeTsFile ? emptyArray : [{ + assert.deepEqual(largeFileReferencedEvents, useLargeTsFile ? neverArray : [{ eventName: server.LargeFileReferencedEvent, data: { file: largeFile.path, fileSize: largeFile.fileSize, maxFileSize: server.maxFileSize } }]); @@ -72,4 +72,4 @@ namespace ts.projectSystem { verifyLargeFile(/*useLargeTsFile*/ false); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts b/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts index da6718ef9c7ff..45c5bda4db269 100644 --- a/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts +++ b/src/testRunner/unittests/tsserver/events/projectLanguageServiceState.ts @@ -1,4 +1,7 @@ -namespace ts.projectSystem { +import { createServerHost } from "../../../../../built/local/harness"; +import { createSessionWithEventTracking, protocol, checkNumberOfProjects, configuredProjectAt } from "../helpers"; +import { assert } from "console"; + describe("unittests:: tsserver:: events:: ProjectLanguageServiceStateEvent", () => { it("language service disabled events are triggered", () => { const f1 = { @@ -48,4 +51,4 @@ namespace ts.projectSystem { assert.isTrue(events[1].data.languageServiceEnabled, "Language service state"); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/events/projectLoading.ts b/src/testRunner/unittests/tsserver/events/projectLoading.ts index c4c7d78b7402e..45a023e0e6f2d 100644 --- a/src/testRunner/unittests/tsserver/events/projectLoading.ts +++ b/src/testRunner/unittests/tsserver/events/projectLoading.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { File } from "../../../../harness/vfsUtil"; +import { libFile, TestServerHost, createServerHost } from "../../../../../built/local/harness"; +import { assert } from "console"; +import { openFilesForSession, checkNumberOfProjects, protocol, protocolLocationFromSubstring, toExternalFiles, createSessionWithEventTracking, createSessionWithDefaultEventHandler } from "../helpers"; + describe("unittests:: tsserver:: events:: ProjectLoadingStart and ProjectLoadingFinish events", () => { const aTs: File = { path: `${tscWatch.projects}/a/a.ts`, @@ -85,12 +89,12 @@ namespace ts.projectSystem { const aDTs: File = { path: `${tscWatch.projects}/a/a.d.ts`, content: `export declare class A { -} -//# sourceMappingURL=a.d.ts.map + +//# sourceMappingURL=a.d.map ` }; const aDTsMap: File = { - path: `${tscWatch.projects}/a/a.d.ts.map`, + path: `${tscWatch.projects}/a/a.d.map`, content: `{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"}` }; const bTs: File = { @@ -209,4 +213,4 @@ namespace ts.projectSystem { }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts index 918c817857ce0..872c2bb00e0a7 100644 --- a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts +++ b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts @@ -1,4 +1,10 @@ -namespace ts.projectSystem { +import { assert } from "console"; +import { createMap, forEach, contains, map, find } from "../../../../compiler/core"; +import { File } from "../../../../harness/vfsUtil"; +import { protocol, checkNumberOfProjects, checkProjectActualFiles, createSessionWithEventTracking, createSessionWithDefaultEventHandler } from "../helpers"; +import { TestServerHost, createServerHost, libFile, checkWatchedDirectories } from "../../../../../built/local/harness"; +import { CompilerOptions } from "../../../../compiler/types"; + describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { function verifyFiles(caption: string, actual: readonly string[], expected: readonly string[]) { assert.equal(actual.length, expected.length, `Incorrect number of ${caption}. Actual: ${actual} Expected: ${expected}`); @@ -575,4 +581,4 @@ namespace ts.projectSystem { } }); }); -} + diff --git a/src/testRunner/unittests/tsserver/externalProjects.ts b/src/testRunner/unittests/tsserver/externalProjects.ts index 57f9aa1544f8d..441b119e33fe2 100644 --- a/src/testRunner/unittests/tsserver/externalProjects.ts +++ b/src/testRunner/unittests/tsserver/externalProjects.ts @@ -1,4 +1,13 @@ -namespace ts.projectSystem { +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { createProjectService, protocol, toExternalFiles, checkProjectActualFiles, toExternalFile, createSession, checkNumberOfProjects, checkNumberOfExternalProjects, checkNumberOfInferredProjects, checkProjectRootFiles, configuredProjectAt } from "./helpers"; +import { combinePaths, getDirectoryPath, getBaseFileName, toPath } from "../../../compiler/path"; +import { assert } from "console"; +import { ConfigFileProgramReloadLevel } from "../../../compiler/watchUtilities"; +import { neverArray, createGetCanonicalFileName, arrayIterator, map, singleIterator } from "../../../compiler/core"; +import { SourceFile, DiagnosticCategory, ModuleResolutionKind, ScriptKind } from "../../../compiler/types"; +import { File } from "../../../harness/vfsUtil"; +import { verifyDynamic } from "./dynamicFiles"; + describe("unittests:: tsserver:: ExternalProjects", () => { describe("can handle tsconfig file name with difference casing", () => { function verifyConfigFileCasing(lazyConfiguredProjectsFromExternalProject: boolean) { @@ -26,7 +35,7 @@ namespace ts.projectSystem { const project = service.configuredProjects.get(config.path)!; if (lazyConfiguredProjectsFromExternalProject) { assert.equal(project.pendingReload, ConfigFileProgramReloadLevel.Full); // External project referenced configured project pending to be reloaded - checkProjectActualFiles(project, emptyArray); + checkProjectActualFiles(project, neverArray); } else { assert.equal(project.pendingReload, ConfigFileProgramReloadLevel.None); // External project referenced configured project loaded @@ -525,7 +534,7 @@ namespace ts.projectSystem { const configProject = configuredProjectAt(projectService, 0); checkProjectActualFiles(configProject, lazyConfiguredProjectsFromExternalProject ? - emptyArray : // Since no files opened from this project, its not loaded + neverArray : // Since no files opened from this project, its not loaded [configFile.path]); host.deleteFile(configFile.path); @@ -586,7 +595,7 @@ namespace ts.projectSystem { }); projectService.checkNumberOfProjects({ configuredProjects: 1 }); if (lazyConfiguredProjectsFromExternalProject) { - checkProjectActualFiles(configuredProjectAt(projectService, 0), emptyArray); // Configured project created but not loaded till actually needed + checkProjectActualFiles(configuredProjectAt(projectService, 0), neverArray); // Configured project created but not loaded till actually needed projectService.ensureInferredProjectsUpToDate_TestOnly(); } checkProjectActualFiles(configuredProjectAt(projectService, 0), [f1.path, tsconfig.path]); @@ -655,8 +664,8 @@ namespace ts.projectSystem { }); projectService.checkNumberOfProjects({ configuredProjects: 2 }); if (lazyConfiguredProjectsFromExternalProject) { - checkProjectActualFiles(configuredProjectAt(projectService, 0), emptyArray); // Configured project created but not loaded till actually needed - checkProjectActualFiles(configuredProjectAt(projectService, 1), emptyArray); // Configured project created but not loaded till actually needed + checkProjectActualFiles(configuredProjectAt(projectService, 0), neverArray); // Configured project created but not loaded till actually needed + checkProjectActualFiles(configuredProjectAt(projectService, 1), neverArray); // Configured project created but not loaded till actually needed projectService.ensureInferredProjectsUpToDate_TestOnly(); } checkProjectActualFiles(configuredProjectAt(projectService, 0), [cLib.path, cTsconfig.path]); @@ -691,8 +700,8 @@ namespace ts.projectSystem { }); projectService.checkNumberOfProjects({ configuredProjects: 2 }); if (lazyConfiguredProjectsFromExternalProject) { - checkProjectActualFiles(configuredProjectAt(projectService, 0), emptyArray); // Configured project created but not loaded till actually needed - checkProjectActualFiles(configuredProjectAt(projectService, 1), emptyArray); // Configured project created but not loaded till actually needed + checkProjectActualFiles(configuredProjectAt(projectService, 0), neverArray); // Configured project created but not loaded till actually needed + checkProjectActualFiles(configuredProjectAt(projectService, 1), neverArray); // Configured project created but not loaded till actually needed projectService.ensureInferredProjectsUpToDate_TestOnly(); } checkProjectActualFiles(configuredProjectAt(projectService, 0), [cLib.path, cTsconfig.path]); @@ -825,7 +834,7 @@ namespace ts.projectSystem { service.checkNumberOfProjects({ configuredProjects: 1 }); const project = service.configuredProjects.get(config.path)!; assert.equal(project.pendingReload, ConfigFileProgramReloadLevel.Full); // External project referenced configured project pending to be reloaded - checkProjectActualFiles(project, emptyArray); + checkProjectActualFiles(project, neverArray); service.setHostConfiguration({ preferences: { lazyConfiguredProjectsFromExternalProject: false } }); assert.equal(project.pendingReload, ConfigFileProgramReloadLevel.None); // External project referenced configured project loaded @@ -900,4 +909,4 @@ namespace ts.projectSystem { checkProjectActualFiles(jsConfigProject, [jsConfig.path, jsFilePath, libFile.path]); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts b/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts index 1440b9cd38bdb..88225bec3350c 100644 --- a/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts +++ b/src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, checkNumberOfProjects, configuredProjectAt, checkProjectActualFiles, verifyGetErrRequestNoErrors, closeFilesForSession, protocol, protocolTextSpanFromSubstring, verifyGetErrRequest, createDiagnostic } from "./helpers"; +import { assert } from "console"; + describe("unittests:: tsserver:: forceConsistentCasingInFileNames", () => { it("works when extends is specified with a case insensitive file system", () => { const rootPath = "/Users/username/dev/project"; @@ -154,4 +158,4 @@ namespace ts.projectSystem { }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/formatSettings.ts b/src/testRunner/unittests/tsserver/formatSettings.ts index 2d09ed8a8a0eb..9d07fd50b914e 100644 --- a/src/testRunner/unittests/tsserver/formatSettings.ts +++ b/src/testRunner/unittests/tsserver/formatSettings.ts @@ -1,4 +1,7 @@ -namespace ts.projectSystem { +import { createServerHost } from "../../../../built/local/harness"; +import { createProjectService } from "./helpers"; +import { assert } from "console"; + describe("unittests:: tsserver:: format settings", () => { it("can be set globally", () => { const f1 = { @@ -36,4 +39,4 @@ namespace ts.projectSystem { assert.deepEqual(s3, newPerFileSettings, "file settings should still be the same with per-file settings"); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/getApplicableRefactors.ts b/src/testRunner/unittests/tsserver/getApplicableRefactors.ts index bec4a65456051..5fc622a069f58 100644 --- a/src/testRunner/unittests/tsserver/getApplicableRefactors.ts +++ b/src/testRunner/unittests/tsserver/getApplicableRefactors.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createSession, openFilesForSession, executeSessionRequest, protocol } from "./helpers"; +import { createServerHost } from "../../../../built/local/harness"; +import { assert } from "console"; + describe("unittests:: tsserver:: getApplicableRefactors", () => { it("works when taking position", () => { const aTs: File = { path: "/a.ts", content: "" }; @@ -9,4 +13,4 @@ namespace ts.projectSystem { assert.deepEqual(response, []); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/getEditsForFileRename.ts b/src/testRunner/unittests/tsserver/getEditsForFileRename.ts index 5dcd3e96fdb1d..c8b0fc5bca2ae 100644 --- a/src/testRunner/unittests/tsserver/getEditsForFileRename.ts +++ b/src/testRunner/unittests/tsserver/getEditsForFileRename.ts @@ -1,4 +1,11 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost } from "../../../../built/local/harness"; +import { createProjectService, textSpanFromSubstring, createSession, openFilesForSession, executeSessionRequest, protocol, protocolTextSpanFromSubstring } from "./helpers"; +import { Debug } from "../../../compiler/debug"; +import { testFormatSettings, emptyOptions, FileTextChanges } from "../../../services/types"; +import { assert } from "console"; +import { CommandNames } from "../../../server/session"; + describe("unittests:: tsserver:: getEditsForFileRename", () => { it("works for host implementing 'resolveModuleNames' and 'getResolvedModuleWithFailedLookupLocationsFromCache'", () => { const userTs: File = { @@ -102,4 +109,4 @@ namespace ts.projectSystem { ]); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/getExportReferences.ts b/src/testRunner/unittests/tsserver/getExportReferences.ts index 45bd08e39b8de..a033e8537e7dd 100644 --- a/src/testRunner/unittests/tsserver/getExportReferences.ts +++ b/src/testRunner/unittests/tsserver/getExportReferences.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, protocol, makeReferenceItem, MakeReferenceItem, executeSessionRequest, protocolFileLocationFromSubstring, protocolLocationFromSubstring } from "./helpers"; +import { assert } from "console"; + describe("unittests:: tsserver:: getExportReferences", () => { const exportVariable = "export const value = 0;"; const exportArrayDestructured = "export const [valueA, valueB] = [0, 1];"; @@ -182,4 +186,4 @@ ${exportNestedObject} assert.deepEqual(response, expectResponse); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/helpers.ts b/src/testRunner/unittests/tsserver/helpers.ts index 5a1cdee81d654..71febd7b51db8 100644 --- a/src/testRunner/unittests/tsserver/helpers.ts +++ b/src/testRunner/unittests/tsserver/helpers.ts @@ -1,4 +1,4 @@ -namespace ts.projectSystem { + export import TI = server.typingsInstaller; export import protocol = server.protocol; export import CommandNames = server.CommandNames; @@ -17,6 +17,21 @@ namespace ts.projectSystem { export import commonFile1 = tscWatch.commonFile1; export import commonFile2 = tscWatch.commonFile2; +import { convertToObject, textSpanEnd, createTextSpan } from "../../../../built/local/compiler"; +import { parseJsonText } from "../../../compiler/parser"; +import { Path, TypeAcquisition, DiagnosticCategory, DiagnosticRelatedInformation, TextSpan, DiagnosticMessage, diagnosticCategoryName } from "../../../compiler/types"; +import { noop, returnFalse, returnUndefined, returnTrue, createMap, notImplemented, map, filterMutate, mapDefined, arrayFrom, neverArray } from "../../../compiler/core"; +import { Debug } from "../../../compiler/debug"; +import { MapLike, SortedReadonlyArray } from "../../../compiler/corePublic"; +import { assert, clear } from "console"; +import { isString, isArray } from "util"; +import { sys } from "../../../compiler/sys"; +import { version } from "os"; +import { HostCancellationToken } from "../../../services/types"; +import { normalizePath, forEachAncestorDirectory, combinePaths, directorySeparator } from "../../../compiler/path"; +import { computeLineStarts, computeLineAndCharacterOfPosition } from "../../../compiler/scanner"; +import { formatStringFromArgs } from "../../../compiler/utilities"; +import { flattenDiagnosticMessageText } from "../../../compiler/program"; const outputEventRegex = /Content\-Length: [\d]+\r\n\r\n/; export function mapOutputToJson(s: string) { @@ -277,7 +292,7 @@ namespace ts.projectSystem { configFileName: "tsconfig.json", projectType: "configured", languageServiceEnabled: true, - version: ts.version, // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier + version: version, // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier ...partial, }); } @@ -1014,13 +1029,13 @@ namespace ts.projectSystem { export function emptyDiagnostics(file: File): GetErrDiagnostics { return { file, - syntax: emptyArray, - semantic: emptyArray, - suggestion: emptyArray + syntax: neverArray, + semantic: neverArray, + suggestion: neverArray }; } export function syncDiagnostics(diagnostics: GetErrDiagnostics, project: string): SyncDiagnostics { return { project, ...diagnostics }; } -} + diff --git a/src/testRunner/unittests/tsserver/importHelpers.ts b/src/testRunner/unittests/tsserver/importHelpers.ts index b1ec5955eaae4..0ef34f9f93195 100644 --- a/src/testRunner/unittests/tsserver/importHelpers.ts +++ b/src/testRunner/unittests/tsserver/importHelpers.ts @@ -1,4 +1,6 @@ -namespace ts.projectSystem { +import { createServerHost } from "../../../../built/local/harness"; +import { createProjectService, toExternalFile } from "./helpers"; + describe("unittests:: tsserver:: import helpers", () => { it("should not crash in tsserver", () => { const f1 = { @@ -15,4 +17,4 @@ namespace ts.projectSystem { service.checkNumberOfProjects({ externalProjects: 1 }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/importSuggestionsCache.ts b/src/testRunner/unittests/tsserver/importSuggestionsCache.ts index 982eece3d36ad..08a02f3501caa 100644 --- a/src/testRunner/unittests/tsserver/importSuggestionsCache.ts +++ b/src/testRunner/unittests/tsserver/importSuggestionsCache.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { assert } from "console"; +import { createServerHost } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, configuredProjectAt, protocol, executeSessionRequest } from "./helpers"; + const packageJson: File = { path: "/package.json", content: `{ "dependencies": { "mobx": "*" } }` @@ -72,4 +76,4 @@ namespace ts.projectSystem { const checker = project.getLanguageService().getProgram()!.getTypeChecker(); return { host, project, projectService, importSuggestionsCache: project.getImportSuggestionsCache(), checker }; } -} + diff --git a/src/testRunner/unittests/tsserver/inferredProjects.ts b/src/testRunner/unittests/tsserver/inferredProjects.ts index 57689637dbdf6..758f0a65d5a5f 100644 --- a/src/testRunner/unittests/tsserver/inferredProjects.ts +++ b/src/testRunner/unittests/tsserver/inferredProjects.ts @@ -1,4 +1,12 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile, checkArray, checkWatchedFiles, checkWatchedDirectories } from "../../../../built/local/harness"; +import { createProjectService, checkNumberOfConfiguredProjects, checkNumberOfInferredProjects, getConfigFilesToWatch, nodeModulesAtTypes, checkProjectActualFiles, checkNumberOfProjects, createSession } from "./helpers"; +import { assert } from "console"; +import { combinePaths } from "../../../compiler/path"; +import { ModuleResolutionKind, ScriptTarget, ScriptKind } from "../../../compiler/types"; +import { CommandNames } from "../../../server/session"; +import { createMap } from "../../../compiler/core"; + describe("unittests:: tsserver:: Inferred projects", () => { it("create inferred project", () => { const appFile: File = { @@ -430,4 +438,4 @@ namespace ts.projectSystem { } }); }); -} + diff --git a/src/testRunner/unittests/tsserver/languageService.ts b/src/testRunner/unittests/tsserver/languageService.ts index 86d426664df7c..bf99f306de199 100644 --- a/src/testRunner/unittests/tsserver/languageService.ts +++ b/src/testRunner/unittests/tsserver/languageService.ts @@ -1,4 +1,6 @@ -namespace ts.projectSystem { +import { createServerHost } from "../../../../built/local/harness"; +import { createProjectService } from "./helpers"; + describe("unittests:: tsserver:: Language service", () => { it("should work correctly on case-sensitive file systems", () => { const lib = { @@ -16,4 +18,4 @@ namespace ts.projectSystem { projectService.inferredProjects[0].getLanguageService().getProgram(); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/maxNodeModuleJsDepth.ts b/src/testRunner/unittests/tsserver/maxNodeModuleJsDepth.ts index eb254789d671e..be02473093ae4 100644 --- a/src/testRunner/unittests/tsserver/maxNodeModuleJsDepth.ts +++ b/src/testRunner/unittests/tsserver/maxNodeModuleJsDepth.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { createProjectService, checkNumberOfInferredProjects } from "./helpers"; +import { assert } from "console"; +import { ScriptTarget } from "../../../compiler/types"; + describe("unittests:: tsserver:: maxNodeModuleJsDepth for inferred projects", () => { it("should be set to 2 if the project has js root files", () => { const file1: File = { @@ -52,4 +57,4 @@ namespace ts.projectSystem { assert.isUndefined(project.getCompilationSettings().maxNodeModuleJsDepth); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/metadataInResponse.ts b/src/testRunner/unittests/tsserver/metadataInResponse.ts index 10b1c58d737a9..b56e564bc4f73 100644 --- a/src/testRunner/unittests/tsserver/metadataInResponse.ts +++ b/src/testRunner/unittests/tsserver/metadataInResponse.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { TestServerHost, createServerHost } from "../../../../built/local/harness"; +import { protocol, mapOutputToJson, createSession, openFilesForSession } from "./helpers"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; +import { ScriptElementKind } from "../../../services/types"; + describe("unittests:: tsserver:: with metadata in response", () => { const metadata = "Extra Info"; function verifyOutput(host: TestServerHost, expectedResponse: protocol.Response) { @@ -96,4 +101,4 @@ namespace ts.projectSystem { }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/navTo.ts b/src/testRunner/unittests/tsserver/navTo.ts index e447a312e2fd8..e8222a49ef60a 100644 --- a/src/testRunner/unittests/tsserver/navTo.ts +++ b/src/testRunner/unittests/tsserver/navTo.ts @@ -1,4 +1,10 @@ -namespace ts.projectSystem { +import { protocol, createSession, openFilesForSession, makeSessionRequest } from "./helpers"; +import { find } from "../../../compiler/core"; +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { CommandNames } from "../../../server/session"; +import { assert } from "console"; + describe("unittests:: tsserver:: navigate-to for javascript project", () => { function findNavToItem(items: protocol.NavtoItem[], itemName: string, itemKind: string) { return find(items, item => item.name === itemName && item.kind === itemKind); @@ -93,4 +99,4 @@ export const ghijkl = a.abcdef;` assert.isTrue(fooItem?.kindModifiers?.includes("deprecated")); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/occurences.ts b/src/testRunner/unittests/tsserver/occurences.ts index 25dfb3c9e90f2..85214d5143764 100644 --- a/src/testRunner/unittests/tsserver/occurences.ts +++ b/src/testRunner/unittests/tsserver/occurences.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost } from "../../../../built/local/harness"; +import { createSession, makeSessionRequest, protocol } from "./helpers"; +import { CommandNames } from "../../../server/session"; +import { assert } from "console"; + describe("unittests:: tsserver:: occurrence highlight on string", () => { it("should be marked if only on string values", () => { const file1: File = { @@ -44,4 +49,4 @@ namespace ts.projectSystem { } }); }); -} + diff --git a/src/testRunner/unittests/tsserver/openFile.ts b/src/testRunner/unittests/tsserver/openFile.ts index 805422cabdfb5..8983742cadc15 100644 --- a/src/testRunner/unittests/tsserver/openFile.ts +++ b/src/testRunner/unittests/tsserver/openFile.ts @@ -1,4 +1,10 @@ -namespace ts.projectSystem { +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { createProjectService, toExternalFile, checkProjectActualFiles, createSession, openFilesForSession, verifyGetErrRequestNoErrors, protocolTextSpanFromSubstring, protocol, verifyGetErrRequest, createDiagnostic } from "./helpers"; +import { IScriptSnapshot } from "../../../services/types"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; +import { ScriptKind } from "../../../compiler/types"; + describe("unittests:: tsserver:: Open-file", () => { it("can be reloaded with empty content", () => { const f = { @@ -137,12 +143,12 @@ function foo() { // @ts-ignore let y: string = x; return y; -} + function bar() { // @ts-ignore let z : string = x; return z; -} + foo(); bar();` }; @@ -198,4 +204,4 @@ bar();` verifyGetErrRequestNoErrors({ session, host, files: [file] }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/packageJsonInfo.ts b/src/testRunner/unittests/tsserver/packageJsonInfo.ts index efc977a335c92..d03cbb3f10bcf 100644 --- a/src/testRunner/unittests/tsserver/packageJsonInfo.ts +++ b/src/testRunner/unittests/tsserver/packageJsonInfo.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { assert } from "console"; +import { Path } from "../../../compiler/types"; +import { createServerHost } from "../../../../built/local/harness"; +import { createSession, configuredProjectAt } from "./helpers"; + const tsConfig: File = { path: "/tsconfig.json", content: "{}" @@ -92,4 +97,4 @@ namespace ts.projectSystem { const project = configuredProjectAt(projectService, 0); return { host, session, project, projectService }; } -} + diff --git a/src/testRunner/unittests/tsserver/projectErrors.ts b/src/testRunner/unittests/tsserver/projectErrors.ts index 40312f9303ab0..7a11dacefd4ca 100644 --- a/src/testRunner/unittests/tsserver/projectErrors.ts +++ b/src/testRunner/unittests/tsserver/projectErrors.ts @@ -1,4 +1,13 @@ -namespace ts.projectSystem { +import { assert } from "console"; +import { Diagnostic, Path, ModuleKind } from "../../../compiler/types"; +import { flattenDiagnosticMessageText } from "../../../compiler/program"; +import { zipWith, startsWith, find, noop, returnUndefined, neverArray, arrayToMap, identity, map, mapDefined } from "../../../compiler/core"; +import { createServerHost, libFile, Folder, checkWatchedFilesDetailed, checkWatchedDirectoriesDetailed, checkWatchedDirectories } from "../../../../built/local/harness"; +import { createSession, toExternalFiles, checkNumberOfProjects, openFilesForSession, configuredProjectAt, createProjectService, checkProjectRootFiles, protocol, verifyGetErrRequest, createDiagnostic, verifyGetErrRequestNoErrors, checkCompleteEvent, checkProjectActualFiles, closeFilesForSession, GetErrDiagnostics, protocolTextSpanFromSubstring, verifyGetErrScenario, syncDiagnostics, ConfigFileDiagnostic, TestServerEventManager, executeSessionRequest, checkNumberOfConfiguredProjects } from "./helpers"; +import { getBaseFileName, getDirectoryPath } from "../../../compiler/path"; +import { File } from "../../../harness/vfsUtil"; +import { formatStringFromArgs } from "../../../compiler/utilities"; + describe("unittests:: tsserver:: Project Errors", () => { function checkProjectErrors(projectFiles: server.ProjectFilesWithTSDiagnostics, expectedErrors: readonly string[]): void { assert.isTrue(projectFiles !== undefined, "missing project files"); @@ -517,7 +526,7 @@ declare module '@custom/plugin' { expectedConfigFileDiagEvents: () => [{ triggerFile: file.path, configFileName: config.path, - diagnostics: emptyArray + diagnostics: neverArray }] }); }); @@ -590,7 +599,7 @@ declare module '@custom/plugin' { }; const serverEventManager = new TestServerEventManager([file, libFile, configFile]); openFilesForSession([file], serverEventManager.session); - serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, file.path, emptyArray); + serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, file.path, neverArray); }); it("are generated when the config file changes", () => { @@ -608,7 +617,7 @@ declare module '@custom/plugin' { const files = [file, libFile, configFile]; const serverEventManager = new TestServerEventManager(files); openFilesForSession([file], serverEventManager.session); - serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, file.path, emptyArray); + serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, file.path, neverArray); configFile.content = `{ "compilerOptions": { @@ -626,7 +635,7 @@ declare module '@custom/plugin' { }`; serverEventManager.host.writeFile(configFile.path, configFile.content); serverEventManager.host.runQueuedTimeoutCallbacks(); - serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, configFile.path, emptyArray); + serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, configFile.path, neverArray); }); it("are not generated when the config file does not include file opened and config file has errors", () => { @@ -709,12 +718,12 @@ declare module '@custom/plugin' { const serverEventManager = new TestServerEventManager([file, file2, file3, libFile, configFile]); openFilesForSession([file2], serverEventManager.session); - serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, file2.path, emptyArray); + serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, file2.path, neverArray); openFilesForSession([file], serverEventManager.session); // We generate only if project is created when opening file from the project serverEventManager.hasZeroEvent("configFileDiag"); openFilesForSession([file3], serverEventManager.session); - serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, file3.path, emptyArray); + serverEventManager.checkSingleConfigFileDiagEvent(configFile.path, file3.path, neverArray); }); it("contains the project reference errors", () => { @@ -1094,4 +1103,4 @@ console.log(blabla);` verifyNpmInstall(/*timeoutDuringPartialInstallation*/ false); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts b/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts index 55847f2e22837..c2a4624b7a143 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts @@ -1,4 +1,12 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, protocol, protocolToLocation } from "./helpers"; +import { Path } from "../../../compiler/types"; +import { assert } from "console"; +import { EmitOutput } from "../../../../built/local/compiler"; +import { neverArray } from "../../../compiler/core"; +import { changeExtension } from "../../../compiler/utilities"; + describe("unittests:: tsserver:: with project references and compile on save", () => { const dependecyLocation = `${tscWatch.projectRoot}/dependency`; const usageLocation = `${tscWatch.projectRoot}/usage`; @@ -253,7 +261,7 @@ ${appendJs}` writeByteOrderMark: false })), emitSkipped: false, - diagnostics: emptyArray + diagnostics: neverArray }; } @@ -264,7 +272,7 @@ ${appendJs}` function noEmit(): SingleScenarioExpectedEmit { return { expectedEmitSuccess: false, - expectedFiles: emptyArray + expectedFiles: neverArray }; } @@ -272,7 +280,7 @@ ${appendJs}` return { emitSkipped: true, outputFiles: [], - diagnostics: emptyArray + diagnostics: neverArray }; } @@ -486,4 +494,4 @@ ${appendDts}` assert.equal(host.readFile(sourceJs), expectedSiblingJs); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts index 0fb2f8d883f9b..dd664af825dfa 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts @@ -1,4 +1,7 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { GetErrDiagnostics, GetErrForProjectDiagnostics, emptyDiagnostics, verifyGetErrScenario, syncDiagnostics, createDiagnostic } from "./helpers"; +import { neverArray } from "../../../compiler/core"; + describe("unittests:: tsserver:: with project references and error reporting", () => { const dependecyLocation = `${tscWatch.projectRoot}/dependency`; const usageLocation = `${tscWatch.projectRoot}/usage`; @@ -35,7 +38,7 @@ namespace ts.projectSystem { return { triggerFile: usageTs.path, configFileName: usageConfig.path, - diagnostics: emptyArray + diagnostics: neverArray }; } @@ -43,7 +46,7 @@ namespace ts.projectSystem { return { triggerFile: dependencyTs.path, configFileName: dependencyConfig.path, - diagnostics: emptyArray + diagnostics: neverArray }; } @@ -143,7 +146,7 @@ fnErr(); function usageDiagnostics(): GetErrDiagnostics { return { file: usageTs, - syntax: emptyArray, + syntax: neverArray, semantic: [ createDiagnostic( { line: 4, offset: 5 }, @@ -153,14 +156,14 @@ fnErr(); "error", ) ], - suggestion: emptyArray + suggestion: neverArray }; } function dependencyDiagnostics(): GetErrDiagnostics { return { file: dependencyTs, - syntax: emptyArray, + syntax: neverArray, semantic: [ createDiagnostic( { line: 6, offset: 12 }, @@ -170,7 +173,7 @@ fnErr(); "error", ) ], - suggestion: emptyArray + suggestion: neverArray }; } @@ -212,7 +215,7 @@ fnErr(); function usageDiagnostics(): GetErrDiagnostics { return { file: usageTs, - syntax: emptyArray, + syntax: neverArray, semantic: [ createDiagnostic( { line: 3, offset: 1 }, @@ -222,14 +225,14 @@ fnErr(); "error", ) ], - suggestion: emptyArray + suggestion: neverArray }; } function dependencyDiagnostics(): GetErrDiagnostics { return { file: dependencyTs, - syntax: emptyArray, + syntax: neverArray, semantic: [ createDiagnostic( { line: 6, offset: 5 }, @@ -239,7 +242,7 @@ fnErr(); "error", ) ], - suggestion: emptyArray + suggestion: neverArray }; } @@ -250,4 +253,4 @@ fnErr(); }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index 8da081d82c1bf..14f1db28e695b 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -1,4 +1,12 @@ -namespace ts.projectSystem { +import { createServerHost, libFile, TestServerHost, checkWatchedFiles, SymLink } from "../../../../built/local/harness"; +import { File } from "../../../harness/vfsUtil"; +import { createSession, checkNumberOfProjects, protocol, checkProjectActualFiles, openFilesForSession, protocolFileSpanFromSubstring, protocolFileSpanWithContextFromSubstring, protocolLocationFromSubstring, checkScriptInfos, closeFilesForSession, protocolFileLocationFromSubstring, makeReferenceItem, createProjectService, verifyGetErrRequestNoErrors, checkEvents, projectLoadingStartEvent, projectLoadingFinishEvent, projectInfoTelemetryEvent, configFileDiagEvent } from "./helpers"; +import { endsWith, last, contains, neverArray } from "../../../compiler/core"; +import { assert } from "console"; +import { Path, CompilerOptions } from "../../../compiler/types"; +import { ScriptElementKind } from "../../../services/types"; +import { isString, isArray } from "util"; + describe("unittests:: tsserver:: with project references and tsbuild", () => { function createHost(files: readonly TestFSWithWatch.FileOrFolderOrSymLink[], rootNames: readonly string[]) { const host = createServerHost(files); @@ -194,7 +202,7 @@ fn5(); }; const dtsLocation = `${dependecyDeclsLocation}/FnS.d.ts`; const dtsPath = dtsLocation.toLowerCase() as Path; - const dtsMapLocation = `${dependecyDeclsLocation}/FnS.d.ts.map`; + const dtsMapLocation = `${dependecyDeclsLocation}/FnS.d.map`; const dtsMapPath = dtsMapLocation.toLowerCase() as Path; const files = [dependencyTs, dependencyConfig, mainTs, mainConfig, libFile, randomFile, randomConfig]; @@ -888,9 +896,9 @@ fn5(); change: host => host.writeFile( dtsLocation, host.readFile(dtsLocation)!.replace( - "//# sourceMappingURL=FnS.d.ts.map", + "//# sourceMappingURL=FnS.d.map", `export declare function fn6(): void; -//# sourceMappingURL=FnS.d.ts.map` +//# sourceMappingURL=FnS.d.map` ) ), afterChangeActionKey: "dtsChange" @@ -1253,6 +1261,7 @@ ${dependencyTs.content}`); disableSourceOfProjectReferenceRedirect }, include: ["./**/*"] + }) }; const keyboardTs: File = { @@ -1265,7 +1274,7 @@ export function evaluateKeyboardEvent() { }` content: `import { evaluateKeyboardEvent } from 'common/input/keyboard'; function testEvaluateKeyboardEvent() { return evaluateKeyboardEvent(); -} + ` }; const srcConfig: File = { @@ -1293,7 +1302,7 @@ function testEvaluateKeyboardEvent() { content: `import { evaluateKeyboardEvent } from 'common/input/keyboard'; function foo() { return evaluateKeyboardEvent(); -} + ` }; const host = createHost( @@ -1710,7 +1719,7 @@ bar(); ], symbolName: "getSourceFiles", symbolStartOffset: protocolLocationFromSubstring(typesFile.content, "getSourceFiles").offset, - symbolDisplayString: "(method) ts.Program.getSourceFiles(): string[]" + symbolDisplayString: "(method) Program.getSourceFiles(): string[]" }); // Should load more projects @@ -1817,7 +1826,7 @@ bar(); ], symbolName: "getSourceFiles", symbolStartOffset: protocolLocationFromSubstring(typesFile.content, "getSourceFiles").offset, - symbolDisplayString: "(method) ts.Program.getSourceFiles(): string[]" + symbolDisplayString: "(method) Program.getSourceFiles(): string[]" }); // No new solutions/projects loaded @@ -1847,19 +1856,19 @@ export { foo };` path: `${tscWatch.projectRoot}/target/src/main.d.ts`, content: `import { foo } from 'helpers/functions'; export { foo }; -//# sourceMappingURL=main.d.ts.map` +//# sourceMappingURL=main.d.map` }; const mainDtsMap: File = { - path: `${tscWatch.projectRoot}/target/src/main.d.ts.map`, + path: `${tscWatch.projectRoot}/target/src/main.d.map`, content: `{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,GAAG,EAAC,CAAC"}` }; const helperDts: File = { path: `${tscWatch.projectRoot}/target/src/helpers/functions.d.ts`, content: `export declare const foo = 1; -//# sourceMappingURL=functions.d.ts.map` +//# sourceMappingURL=functions.d.map` }; const helperDtsMap: File = { - path: `${tscWatch.projectRoot}/target/src/helpers/functions.d.ts.map`, + path: `${tscWatch.projectRoot}/target/src/helpers/functions.d.map`, content: `{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/helpers/functions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,IAAI,CAAC"}` }; const tsconfigIndirect3: File = { @@ -2085,8 +2094,8 @@ foo;` const expectedReferences = expectedReferencesResponse(); verifySolutionScenario({ configRefs: ["./tsconfig-src.json"], - additionalFiles: emptyArray, - additionalProjects: emptyArray, + additionalFiles: neverArray, + additionalProjects: neverArray, expectedOpenEvents: [ ...expectedSolutionLoadAndTelemetry(), ...expectedProjectReferenceLoadAndTelemetry(tsconfigSrcPath), @@ -2261,4 +2270,4 @@ foo;` }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/projects.ts b/src/testRunner/unittests/tsserver/projects.ts index 2de2da67af3d8..46ccd53366854 100644 --- a/src/testRunner/unittests/tsserver/projects.ts +++ b/src/testRunner/unittests/tsserver/projects.ts @@ -1,4 +1,17 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile, checkWatchedFiles } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, checkNumberOfInferredProjects, checkProjectRootFiles, checkProjectActualFiles, makeSessionRequest, verifyDiagnostics, verifyNoDiagnostics, createProjectService, configuredProjectAt, checkNumberOfConfiguredProjects, toExternalFiles, checkNumberOfProjects, customTypesMap, protocol, toExternalFile, createHasErrorMessageLogger, closeFilesForSession, verifyGetErrRequestNoErrors } from "./helpers"; +import { commonFile2, commonFile1 } from "../tscWatch/helpers"; +import { assert } from "console"; +import { noop, singleIterator, returnFalse, notImplemented, neverArray, removeMinAndVersionNumbers, mapDefined } from "../../../compiler/core"; +import { emptyOptions, ScriptElementKind } from "../../../services/types"; +import { ScriptKind, ScriptTarget, Path } from "../../../compiler/types"; +import { CommandNames } from "../../../server/session"; +import { combinePaths, getDirectoryPath, normalizePath } from "../../../compiler/path"; +import { createTextSpan } from "../../../../built/local/compiler"; +import { getSnapshotText } from "../../../services/utilities"; +import { Debug } from "../../../compiler/debug"; + describe("unittests:: tsserver:: Projects", () => { it("handles the missing files - that were added to program because they were added with /// { const file1: File = { @@ -415,7 +428,7 @@ namespace ts.projectSystem { projectName: response.projectName, typeAcquisition: response.typeAcquisition, compilerOptions: response.compilerOptions, - typings: emptyArray, + typings: neverArray, unresolvedImports: response.unresolvedImports, }); @@ -1229,7 +1242,7 @@ namespace ts.projectSystem { const configuredProject = configuredProjectAt(projectService, 0); if (lazyConfiguredProjectsFromExternalProject) { // configured project is just created and not yet loaded - checkProjectActualFiles(configuredProject, emptyArray); + checkProjectActualFiles(configuredProject, neverArray); projectService.ensureInferredProjectsUpToDate_TestOnly(); } checkProjectActualFiles(configuredProject, [file1.path, tsconfig.path]); @@ -1615,4 +1628,4 @@ namespace ts.projectSystem { checkNumberOfInferredProjects(projectService, 0); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/refactors.ts b/src/testRunner/unittests/tsserver/refactors.ts index 04eb552c31614..90cdd9af8cb6c 100644 --- a/src/testRunner/unittests/tsserver/refactors.ts +++ b/src/testRunner/unittests/tsserver/refactors.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { createServerHost } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, executeSessionRequest, protocol } from "./helpers"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; + describe("unittests:: tsserver:: refactors", () => { it("use formatting options", () => { const file = { @@ -152,4 +156,4 @@ namespace ts.projectSystem { }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/reload.ts b/src/testRunner/unittests/tsserver/reload.ts index e9a32a5e1a116..346baadf48a9f 100644 --- a/src/testRunner/unittests/tsserver/reload.ts +++ b/src/testRunner/unittests/tsserver/reload.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { createSession, checkNumberOfProjects } from "./helpers"; +import { assert } from "console"; +import { getSnapshotText } from "../../../services/utilities"; + describe("unittests:: tsserver:: reload", () => { it("should work with temp file", () => { const f1 = { @@ -148,4 +152,4 @@ namespace ts.projectSystem { } }); }); -} + diff --git a/src/testRunner/unittests/tsserver/rename.ts b/src/testRunner/unittests/tsserver/rename.ts index 7849b36a3fce9..b118b79a0d741 100644 --- a/src/testRunner/unittests/tsserver/rename.ts +++ b/src/testRunner/unittests/tsserver/rename.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createSession, openFilesForSession, executeSessionRequest, protocol, protocolFileLocationFromSubstring, protocolRenameSpanFromSubstring, protocolTextSpanFromSubstring } from "./helpers"; +import { createServerHost } from "../../../../built/local/harness"; +import { assert } from "console"; +import { ScriptElementKind, ScriptElementKindModifier } from "../../../services/types"; + describe("unittests:: tsserver:: rename", () => { it("works with fileToRename", () => { const aTs: File = { path: "/a.ts", content: "export const a = 0;" }; @@ -272,4 +277,4 @@ namespace ts.projectSystem { }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/resolutionCache.ts b/src/testRunner/unittests/tsserver/resolutionCache.ts index 73a2467aa21fe..659f75436cc5c 100644 --- a/src/testRunner/unittests/tsserver/resolutionCache.ts +++ b/src/testRunner/unittests/tsserver/resolutionCache.ts @@ -1,4 +1,13 @@ -namespace ts.projectSystem { +import { TestServerHost, createServerHost, libFile, checkWatchedFiles, checkWatchedDirectories, checkWatchedFilesDetailed, checkWatchedDirectoriesDetailed } from "../../../../built/local/harness"; +import { ModuleResolutionHost, ScriptKind } from "../../../compiler/types"; +import { createProjectService, TestTypingsInstaller, checkProjectActualFiles, configuredProjectAt, createSession, openFilesForSession, makeSessionRequest, verifyDiagnostics, verifyNoDiagnostics, protocol, checkNumberOfProjects, verifyGetErrRequest, createDiagnostic, checkProjectUpdatedInBackgroundEvent, checkErrorMessage, checkNoDiagnosticEvents, checkCompleteEvent, toExternalFiles, nodeModules, nodeModulesAtTypes, getConfigFilesToWatch, getTypeRootsFromLocation } from "./helpers"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; +import { combinePaths, getDirectoryPath, forEachAncestorDirectory, normalizePath } from "../../../compiler/path"; +import { removeFileExtension, arrayToSet } from "../../../compiler/utilities"; +import { neverArray, mapDefined, arrayFrom, createMap } from "../../../compiler/core"; +import { Debug } from "../../../compiler/debug"; + function createHostModuleResolutionTrace(host: TestServerHost & ModuleResolutionHost) { const resolutionTrace: string[] = []; host.trace = resolutionTrace.push.bind(resolutionTrace); @@ -551,7 +560,7 @@ namespace ts.projectSystem { } function verifyWatchesWithConfigFile(host: TestServerHost, files: File[], openFile: File, extraExpectedDirectories?: readonly string[]) { - const expectedRecursiveDirectories = arrayToSet([tscWatch.projectRoot, `${tscWatch.projectRoot}/${nodeModulesAtTypes}`, ...(extraExpectedDirectories || emptyArray)]); + const expectedRecursiveDirectories = arrayToSet([tscWatch.projectRoot, `${tscWatch.projectRoot}/${nodeModulesAtTypes}`, ...(extraExpectedDirectories || neverArray)]); checkWatchedFiles(host, mapDefined(files, f => { if (f === openFile) { return undefined; @@ -845,7 +854,7 @@ export const x = 10;` checkProjectActualFiles(service.configuredProjects.get(configFile.path)!, files.map(f => f.path)); checkWatchedFilesDetailed(host, mapDefined(files, f => f === srcFile ? undefined : f.path), 1); if (useNodeFile) { - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); // since fs resolves to ambient module, shouldnt watch failed lookup + checkWatchedDirectories(host, neverArray, /*recursive*/ false); // since fs resolves to ambient module, shouldnt watch failed lookup } else { checkWatchedDirectoriesDetailed(host, [`${tscWatch.projectRoot}`, `${tscWatch.projectRoot}/src`], 1, /*recursive*/ false); // failed lookup for fs @@ -941,4 +950,4 @@ export const x = 10;` }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/semanticOperationsOnSyntaxServer.ts b/src/testRunner/unittests/tsserver/semanticOperationsOnSyntaxServer.ts index de2e2c9753f68..44f22506ca09e 100644 --- a/src/testRunner/unittests/tsserver/semanticOperationsOnSyntaxServer.ts +++ b/src/testRunner/unittests/tsserver/semanticOperationsOnSyntaxServer.ts @@ -1,4 +1,10 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile, checkWatchedFiles, checkWatchedDirectories } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, checkNumberOfProjects, checkProjectActualFiles, protocol, protocolFileLocationFromSubstring } from "./helpers"; +import { assert } from "console"; +import { neverArray } from "../../../compiler/core"; +import { ScriptElementKind } from "../../../services/types"; + describe("unittests:: tsserver:: Semantic operations on Syntax server", () => { function setup() { const file1: File = { @@ -35,9 +41,9 @@ class c { prop = "hello"; foo() { return this.prop; } }` function verifyCompletions() { assert.isTrue(project.languageServiceEnabled); - checkWatchedFiles(host, emptyArray); - checkWatchedDirectories(host, emptyArray, /*recursive*/ true); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); + checkWatchedFiles(host, neverArray); + checkWatchedDirectories(host, neverArray, /*recursive*/ true); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); const response = session.executeCommandSeq({ command: protocol.CommandTypes.Completions, arguments: protocolFileLocationFromSubstring(file1, "prop", { index: 1 }) @@ -96,4 +102,4 @@ class c { prop = "hello"; foo() { return this.prop; } }` assert.isTrue(hasException); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/session.ts b/src/testRunner/unittests/tsserver/session.ts index b41df99f4a2c6..7f97d6d7dbb25 100644 --- a/src/testRunner/unittests/tsserver/session.ts +++ b/src/testRunner/unittests/tsserver/session.ts @@ -1,4 +1,18 @@ -namespace ts.server { +import { FileWatcher } from "../../../compiler/sys"; +import { noop, returnUndefined, AnyFunction, createMap } from "../../../compiler/core"; +import { ServerHost } from "../../../server/types"; +import { Session } from "inspector"; +import { protocol } from "./helpers"; +import { SessionOptions } from "http2"; +import { nullCancellationToken, CommandNames, HandlerResponse, getLocationInNewDocument } from "../../../server/session"; +import { assert } from "console"; +import { NormalizedPath } from "../../../../built/local/server"; +import { IndentStyle, FileTextChanges } from "../../../services/types"; +import { CompilerOptions, ModuleKind, ScriptTarget, JsxEmit, NewLineKind, ModuleResolutionKind } from "../../../compiler/types"; +import { version } from "os"; +import { Debug } from "../../../compiler/debug"; +import { ProjectService } from "../../../server/editorServices"; + const _chai: typeof import("chai") = require("chai"); const expect: typeof _chai.expect = _chai.expect; let lastWrittenToHost: string; @@ -174,7 +188,7 @@ namespace ts.server { }); }); - it("Status request gives ts.version", () => { + it("Status request gives version", () => { const req: protocol.StatusRequest = { command: CommandNames.Status, seq: 0, @@ -182,7 +196,7 @@ namespace ts.server { }; const expected: protocol.StatusResponseBody = { - version: ts.version, // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier + version: version, // eslint-disable-line @typescript-eslint/no-unnecessary-qualifier }; assert.deepEqual(session.executeCommand(req).response, expected); }); @@ -741,4 +755,4 @@ namespace ts.server { assert.deepEqual(res, { line: 4, offset: 11 }); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/skipLibCheck.ts b/src/testRunner/unittests/tsserver/skipLibCheck.ts index d154154f0830c..b0d87b9931616 100644 --- a/src/testRunner/unittests/tsserver/skipLibCheck.ts +++ b/src/testRunner/unittests/tsserver/skipLibCheck.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { createServerHost } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, makeSessionRequest, protocol, toExternalFiles } from "./helpers"; +import { CommandNames } from "../../../server/session"; +import { assert } from "console"; + describe("unittests:: tsserver:: with skipLibCheck", () => { it("should be turned on for js-only inferred projects", () => { const file1 = { @@ -226,4 +230,4 @@ namespace ts.projectSystem { assert.equal(errorResult[0].code, Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/smartSelection.ts b/src/testRunner/unittests/tsserver/smartSelection.ts index 3c903d7da675f..cce678c101849 100644 --- a/src/testRunner/unittests/tsserver/smartSelection.ts +++ b/src/testRunner/unittests/tsserver/smartSelection.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { createServerHost, libFile } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, protocol, executeSessionRequest } from "./helpers"; +import { CommandNames } from "../../../server/session"; +import { assert } from "console"; + function setup(fileName: string, content: string) { const file: File = { path: fileName, content }; const host = createServerHost([file, libFile]); @@ -63,4 +68,4 @@ class Foo { end: { line: 9, offset: 2 }, } } } } } } } } }]); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/symLinks.ts b/src/testRunner/unittests/tsserver/symLinks.ts index 9b79e1e58609b..e47ebbda9818e 100644 --- a/src/testRunner/unittests/tsserver/symLinks.ts +++ b/src/testRunner/unittests/tsserver/symLinks.ts @@ -1,4 +1,11 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { SymLink, libFile, createServerHost, TestServerHost, checkWatchedFilesDetailed, checkWatchedDirectoriesDetailed } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, checkNumberOfProjects, executeSessionRequest, protocol, protocolLocationFromSubstring, protocolRenameSpanFromSubstring, protocolTextSpanFromSubstring, TestSession, verifyGetErrRequest, getTypeRootsFromLocation, getNodeModuleDirectories, checkProjectActualFiles, createDiagnostic } from "./helpers"; +import { assert } from "console"; +import { ScriptElementKind, ScriptElementKindModifier } from "../../../services/types"; +import { arrayToMap, neverArray } from "../../../compiler/core"; +import { cloneMap } from "../../../compiler/utilities"; + describe("unittests:: tsserver:: symLinks", () => { it("rename in common file renames all project", () => { const projects = "/users/username/projects"; @@ -190,10 +197,10 @@ new C();` } const watchedDirectoriesWithUnresolvedModule = cloneMap(watchedDirectoriesWithResolvedModule); watchedDirectoriesWithUnresolvedModule.set(`${recognizersDateTime}/src`, 2); // wild card + failed lookups - [`${recognizersDateTime}/node_modules`, ...(withPathMapping ? [recognizersText] : emptyArray), ...getNodeModuleDirectories(packages)].forEach(d => { + [`${recognizersDateTime}/node_modules`, ...(withPathMapping ? [recognizersText] : neverArray), ...getNodeModuleDirectories(packages)].forEach(d => { watchedDirectoriesWithUnresolvedModule.set(d, 1); }); - const nonRecursiveWatchedDirectories = withPathMapping ? [packages] : emptyArray; + const nonRecursiveWatchedDirectories = withPathMapping ? [packages] : neverArray; function verifyProjectWithResolvedModule(session: TestSession) { const projectService = session.getProjectService(); @@ -276,4 +283,4 @@ new C();` verifyModuleResolution(/*withPathMapping*/ true); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/syntaxOperations.ts b/src/testRunner/unittests/tsserver/syntaxOperations.ts index 94c1241cb1ccd..86f79520b2233 100644 --- a/src/testRunner/unittests/tsserver/syntaxOperations.ts +++ b/src/testRunner/unittests/tsserver/syntaxOperations.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { TestSession, protocol, createSession, checkNumberOfProjects, checkProjectActualFiles } from "./helpers"; +import { File } from "../../../harness/vfsUtil"; +import { libFile, createServerHost } from "../../../../built/local/harness"; +import { assert } from "console"; + describe("unittests:: tsserver:: syntax operations", () => { function navBarFull(session: TestSession, file: File) { return JSON.stringify(session.executeCommandSeq({ @@ -95,4 +99,4 @@ export function Test2() { assert.notStrictEqual(navBarResultUnitTest1WithChangedContent, navBarResultUnitTest1, "With changes in contents of unitTest file, we should see changed naviagation bar item result"); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/telemetry.ts b/src/testRunner/unittests/tsserver/telemetry.ts index cdf78adbf546b..702ff0101d8a1 100644 --- a/src/testRunner/unittests/tsserver/telemetry.ts +++ b/src/testRunner/unittests/tsserver/telemetry.ts @@ -1,4 +1,9 @@ -namespace ts.projectSystem { +import { TestServerEventManager, checkNumberOfProjects, fileStats, toExternalFiles } from "./helpers"; +import { CompilerOptions } from "../../../compiler/types"; +import { assert } from "console"; +import { File } from "../../../harness/vfsUtil"; +import { isString } from "util"; + describe("unittests:: tsserver:: project telemetry", () => { it("does nothing for inferred project", () => { const file = makeFile("/a.js"); @@ -31,8 +36,8 @@ namespace ts.projectSystem { }); it("counts files by extension", () => { - const files = ["ts.ts", "tsx.tsx", "moo.ts", "dts.d.ts", "jsx.jsx", "js.js", "badExtension.badExtension"].map(f => makeFile(`/src/${f}`)); - const notIncludedFile = makeFile("/bin/ts.js"); + const files = ["ts", "tsx.tsx", "moo.ts", "dts.d.ts", "jsx.jsx", "js.js", "badExtension.badExtension"].map(f => makeFile(`/src/${f}`)); + const notIncludedFile = makeFile("/bin/js"); const compilerOptions: CompilerOptions = { allowJs: true }; const tsconfig = makeFile("/tsconfig.json", { compilerOptions, include: ["src"] }); @@ -291,4 +296,4 @@ namespace ts.projectSystem { function makeFile(path: string, content: {} = ""): File { return { path, content: isString(content) ? content : JSON.stringify(content) }; } -} + diff --git a/src/testRunner/unittests/tsserver/textStorage.ts b/src/testRunner/unittests/tsserver/textStorage.ts index 48f6674356b9e..2ad814ddb0aa1 100644 --- a/src/testRunner/unittests/tsserver/textStorage.ts +++ b/src/testRunner/unittests/tsserver/textStorage.ts @@ -1,4 +1,7 @@ -namespace ts.textStorage { +import { noop } from "../../../compiler/core"; +import { computeLineStarts } from "../../../compiler/scanner"; +import { assert } from "console"; + describe("unittests:: tsserver:: Text storage", () => { const f = { path: "/a/app.ts", @@ -145,4 +148,4 @@ namespace ts.textStorage { assert.strictEqual(newText.length, ts1.getTelemetryFileSize()); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/typeAquisition.ts b/src/testRunner/unittests/tsserver/typeAquisition.ts index ac9d3e3cfc034..10fafa4d8dd81 100644 --- a/src/testRunner/unittests/tsserver/typeAquisition.ts +++ b/src/testRunner/unittests/tsserver/typeAquisition.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { createServerHost } from "../../../../built/local/harness"; +import { createProjectService, toExternalFile, TestTypingsInstaller, checkProjectActualFiles, configuredProjectAt } from "./helpers"; +import { ScriptKind } from "../../../compiler/types"; +import { assert } from "console"; + describe("unittests:: tsserver:: autoDiscovery", () => { it("does not depend on extension", () => { const file1 = { @@ -49,4 +53,4 @@ namespace ts.projectSystem { checkProjectActualFiles(configuredProjectAt(projectService, 0), [f1.path, barTypings.path, config.path]); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/typeOnlyImportChains.ts b/src/testRunner/unittests/tsserver/typeOnlyImportChains.ts index 616daf5fb1f30..27292ecbee3ad 100644 --- a/src/testRunner/unittests/tsserver/typeOnlyImportChains.ts +++ b/src/testRunner/unittests/tsserver/typeOnlyImportChains.ts @@ -1,4 +1,8 @@ -namespace ts.projectSystem { +import { DiagnosticMessage } from "../../../compiler/types"; +import { createServerHost } from "../../../../built/local/harness"; +import { createSession, openFilesForSession, makeSessionRequest, protocol } from "./helpers"; +import { assert } from "console"; + describe("unittests:: tsserver:: typeOnlyImportChains", () => { it("named export -> type-only namespace import -> named export -> named import", () => { const a = { @@ -161,4 +165,4 @@ namespace ts.projectSystem { assert.lengthOf(diagnostics, 1); assert.equal(diagnostics[0].code, diagnostic.code); } -} + diff --git a/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts b/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts index c29dc34fd94a9..b69cfa84c22d8 100644 --- a/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts +++ b/src/testRunner/unittests/tsserver/typeReferenceDirectives.ts @@ -1,4 +1,7 @@ -namespace ts.projectSystem { +import { File } from "../../../harness/vfsUtil"; +import { libFile, createServerHost } from "../../../../built/local/harness"; +import { createProjectService, checkNumberOfProjects, checkProjectActualFiles } from "./helpers"; + describe("unittests:: tsserver:: typeReferenceDirectives", () => { it("when typeReferenceDirective contains UpperCasePackage", () => { const libProjectLocation = `${tscWatch.projectRoot}/lib`; @@ -82,4 +85,4 @@ declare class TestLib { service.openClientFile(file.path); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/typingsInstaller.ts b/src/testRunner/unittests/tsserver/typingsInstaller.ts index e2d194dc1151f..e024054a8bf21 100644 --- a/src/testRunner/unittests/tsserver/typingsInstaller.ts +++ b/src/testRunner/unittests/tsserver/typingsInstaller.ts @@ -1,4 +1,4 @@ -namespace ts.projectSystem { + import validatePackageName = JsTyping.validatePackageName; import NameValidationResult = JsTyping.NameValidationResult; @@ -46,6 +46,16 @@ namespace ts.projectSystem { } import typingsName = TI.typingsName; +import { MapLike, SortedReadonlyArray, versionMajorMinor } from "../../../compiler/corePublic"; +import { TestTypingsInstaller, TI, createTypesRegistry, createProjectService, checkProjectActualFiles, configuredProjectAt, checkNumberOfProjects, toExternalFile, customTypesMap, getConfigFilesToWatch, createSession } from "./helpers"; +import { TestServerHost, createServerHost, libFile, checkWatchedFilesDetailed, checkWatchedDirectories, checkWatchedDirectoriesDetailed, checkWatchedFiles } from "../../../../built/local/harness"; +import { File } from "../../../harness/vfsUtil"; +import { assert } from "console"; +import { createMap, neverArray, createMapFromTemplate, arrayIterator } from "../../../compiler/core"; +import { TypeAcquisition, ModuleResolutionKind, Path, ModuleKind, ScriptTarget, JsxEmit, ScriptKind } from "../../../compiler/types"; +import { combinePaths, getDirectoryPath } from "../../../compiler/path"; +import { emptyMap } from "../../../compiler/utilities"; +import { Version } from "../../../compiler/semver"; describe("unittests:: tsserver:: typingsInstaller:: local module", () => { it("should not be picked up", () => { @@ -143,7 +153,7 @@ namespace ts.projectSystem { expectedWatchedFiles.set(packageJson.path, 1); // typing installer checkWatchedFilesDetailed(host, expectedWatchedFiles); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); const expectedWatchedDirectoriesRecursive = createMap(); expectedWatchedDirectoriesRecursive.set("/a/b", 1); // wild card @@ -159,7 +169,7 @@ namespace ts.projectSystem { checkProjectActualFiles(p, [file1.path, jquery.path, tsconfig.path]); // should not watch jquery checkWatchedFilesDetailed(host, expectedWatchedFiles); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); checkWatchedDirectoriesDetailed(host, expectedWatchedDirectoriesRecursive, /*recursive*/ true); }); @@ -844,7 +854,7 @@ namespace ts.projectSystem { watchedFilesExpected.set(combinePaths(installer.globalTypingsCacheLocation, "package.json"), 1); checkWatchedFilesDetailed(host, watchedFilesExpected); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); checkWatchedDirectoriesDetailed(host, ["/", "/node_modules", "/bower_components"], 1, /*recursive*/ true); @@ -1365,7 +1375,7 @@ namespace ts.projectSystem { const host = createServerHost([app, jquery, chroma]); const logger = trackingLogger(); - const result = JsTyping.discoverTypings(host, logger.log, [app.path, jquery.path, chroma.path], getDirectoryPath(app.path), safeList, emptyMap, { enable: true }, emptyArray, emptyMap); + const result = JsTyping.discoverTypings(host, logger.log, [app.path, jquery.path, chroma.path], getDirectoryPath(app.path), safeList, emptyMap, { enable: true }, neverArray, emptyMap); const finish = logger.finish(); assert.deepEqual(finish, [ 'Inferred typings from file names: ["jquery","chroma-js"]', @@ -1826,7 +1836,7 @@ const stream = require("stream");` content: ` declare module "net" { export type n = number; -} + declare module "stream" { export type s = string; }`, @@ -1955,4 +1965,4 @@ declare module "stream" { checkProjectActualFiles(project, [file.path]); }); }); -} + diff --git a/src/testRunner/unittests/tsserver/versionCache.ts b/src/testRunner/unittests/tsserver/versionCache.ts index 60eaa6ca42e7b..b6a3db8ad0963 100644 --- a/src/testRunner/unittests/tsserver/versionCache.ts +++ b/src/testRunner/unittests/tsserver/versionCache.ts @@ -1,4 +1,7 @@ -namespace ts { +import { assert } from "console"; +import { getSnapshotText } from "../../../services/utilities"; +import { computeLineAndCharacterOfPosition } from "../../../compiler/scanner"; + function editFlat(position: number, deletedLength: number, newText: string, source: string) { return source.substring(0, position) + newText + source.substring(position + deletedLength, source.length); } @@ -25,7 +28,7 @@ var y = { zebra: 12, giraffe: "ell" }; z.a; class Point { x: number; -} + k=y; var p:Point=new Point(); var q:Point=p;`; @@ -313,4 +316,4 @@ and grew 1cm per day`; } }); }); -} + diff --git a/src/testRunner/unittests/tsserver/watchEnvironment.ts b/src/testRunner/unittests/tsserver/watchEnvironment.ts index 1bda288495033..493def9c0c864 100644 --- a/src/testRunner/unittests/tsserver/watchEnvironment.ts +++ b/src/testRunner/unittests/tsserver/watchEnvironment.ts @@ -1,5 +1,15 @@ -namespace ts.projectSystem { + import Tsc_WatchDirectory = TestFSWithWatch.Tsc_WatchDirectory; +import { File } from "../../../harness/vfsUtil"; +import { libFile, createServerHost, checkArray, checkWatchedDirectories, checkWatchedFilesDetailed, checkWatchedDirectoriesDetailed, checkWatchedFiles } from "../../../../built/local/harness"; +import { arrayToMap, createMap, neverArray, mapDefined, identity, toLowerCase, contains } from "../../../compiler/core"; +import { nodeModulesAtTypes, createProjectService, checkProjectActualFiles, nodeModules, checkNumberOfProjects, createSession, protocol, openFilesForSession } from "./helpers"; +import { Debug } from "../../../compiler/debug"; +import { assert } from "console"; +import { getRootLength, getDirectoryPath } from "../../../compiler/path"; +import { commonFile2, commonFile1 } from "../tscWatch/helpers"; +import { PollingInterval } from "../../../compiler/sys"; +import { WatchFileKind } from "../../../compiler/types"; describe("unittests:: tsserver:: watchEnvironment:: tsserverProjectSystem watchDirectories implementation", () => { function verifyCompletionListWithNewFileInSubFolder(tscWatchDirectory: Tsc_WatchDirectory) { const projectFolder = "/a/username/project"; @@ -65,7 +75,7 @@ namespace ts.projectSystem { const completions = project.getLanguageService().getCompletionsAtPosition(index.path, completionPosition, { includeExternalModuleExports: false, includeInsertTextCompletions: false })!; checkArray("Completion Entries", completions.entries.map(e => e.name), expectedCompletions); - checkWatchedDirectories(host, emptyArray, /*recursive*/ true); + checkWatchedDirectories(host, neverArray, /*recursive*/ true); checkWatchedFilesDetailed(host, expectedWatchedFiles); checkWatchedDirectoriesDetailed(host, expectedWatchedDirectories, /*recursive*/ false); @@ -207,7 +217,7 @@ namespace ts.projectSystem { }); function verifyProject() { - checkWatchedDirectories(host, emptyArray, /*recursive*/ true); + checkWatchedDirectories(host, neverArray, /*recursive*/ true); checkWatchedFilesDetailed(host, expectedWatchedFiles); checkWatchedDirectoriesDetailed(host, expectedWatchedDirectories, /*recursive*/ false); checkProjectActualFiles(project, fileNames); @@ -275,7 +285,7 @@ namespace ts.projectSystem { ); // Instead of polling watch (= watchedFiles), uses fsWatch - checkWatchedFiles(host, emptyArray); + checkWatchedFiles(host, neverArray); checkWatchedDirectoriesDetailed( host, files.map(f => f.path.toLowerCase()), @@ -359,7 +369,7 @@ namespace ts.projectSystem { }] ) ); - checkWatchedDirectories(host, emptyArray, /*recursive*/ true); + checkWatchedDirectories(host, neverArray, /*recursive*/ true); }); it("with fallbackPolling option as host configuration", () => { @@ -400,8 +410,8 @@ namespace ts.projectSystem { }] ) ); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); - checkWatchedDirectories(host, emptyArray, /*recursive*/ true); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); + checkWatchedDirectories(host, neverArray, /*recursive*/ true); }); it("with watchFile option in configFile", () => { @@ -517,7 +527,7 @@ namespace ts.projectSystem { }] ) ); - checkWatchedDirectories(host, emptyArray, /*recursive*/ true); + checkWatchedDirectories(host, neverArray, /*recursive*/ true); }); it("with fallbackPolling option in configFile", () => { @@ -562,8 +572,8 @@ namespace ts.projectSystem { }] ) ); - checkWatchedDirectories(host, emptyArray, /*recursive*/ false); - checkWatchedDirectories(host, emptyArray, /*recursive*/ true); + checkWatchedDirectories(host, neverArray, /*recursive*/ false); + checkWatchedDirectories(host, neverArray, /*recursive*/ true); }); }); @@ -622,4 +632,4 @@ namespace ts.projectSystem { verifyFileNames("/User/userName/Projects/İ", "/user/username/projects/İ"); }); }); -} + diff --git a/src/testRunner/utilsRef.ts b/src/testRunner/utilsRef.ts index 6d34691c828b0..d548db7a0b3a1 100644 --- a/src/testRunner/utilsRef.ts +++ b/src/testRunner/utilsRef.ts @@ -1,2 +1,2 @@ // empty ref to Utils so it can be referenced by unittests -namespace Utils {} \ No newline at end of file +namespace Utils {} diff --git a/src/testRunner/vfsRef.ts b/src/testRunner/vfsRef.ts index 232efaab17874..5b89338cf6305 100644 --- a/src/testRunner/vfsRef.ts +++ b/src/testRunner/vfsRef.ts @@ -1,2 +1,2 @@ // empty ref to vfs so it can be referenced by unittests -namespace vfs {} \ No newline at end of file +namespace vfs {} diff --git a/src/testRunner/vpathRef.ts b/src/testRunner/vpathRef.ts index 80291760bca1e..afd3e170c52b2 100644 --- a/src/testRunner/vpathRef.ts +++ b/src/testRunner/vpathRef.ts @@ -1,2 +1,2 @@ // empty ref to vpath so it can be referenced by unittests -namespace vpath {} \ No newline at end of file +namespace vpath {} diff --git a/src/tsc/tsc.ts b/src/tsc/tsc.ts index 19c3e84a0dc96..9a7f548bee194 100644 --- a/src/tsc/tsc.ts +++ b/src/tsc/tsc.ts @@ -1,21 +1,20 @@ -namespace ts {} // empty ts module so the module migration script knows this file depends on the `ts` project namespace // This file actually uses arguments passed on commandline and executes it -ts.Debug.loggingHost = { +Debug.loggingHost = { log(_level, s) { - ts.sys.write(`${s || ""}${ts.sys.newLine}`); + sys.write(`${s || ""}${sys.newLine}`); } }; -if (ts.Debug.isDebugging) { - ts.Debug.enableDebugInfo(); +if (Debug.isDebugging) { + Debug.enableDebugInfo(); } -if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) { - ts.sys.tryEnableSourceMapsForHost(); +if (sys.tryEnableSourceMapsForHost && /^development$/i.test(sys.getEnvironmentVariable("NODE_ENV"))) { + sys.tryEnableSourceMapsForHost(); } -if (ts.sys.setBlocking) { - ts.sys.setBlocking(); +if (sys.setBlocking) { + sys.setBlocking(); } -ts.executeCommandLine(ts.sys, ts.noop, ts.sys.args); +ts.executeCommandLine(sys, noop, sys.args); diff --git a/src/tsserver/server.ts b/src/tsserver/server.ts index 43961eb0ba597..5980bd6b3dd23 100644 --- a/src/tsserver/server.ts +++ b/src/tsserver/server.ts @@ -1,4 +1,23 @@ -namespace ts.server { +import { MapLike, versionMajorMinor, SortedReadonlyArray, version } from "../compiler/corePublic"; +import { normalizeSlashes, combinePaths, getDirectoryPath, directorySeparator, getRootLength } from "../compiler/path"; +import { Debug, LogLevel } from "../compiler/debug"; +import { noop, createMap, createMapFromTemplate, assertType, unorderedRemoveItem, toFileNameLowerCase } from "../compiler/core"; +import { Msg, createInstallTypingsRequest, emptyArray } from "../../built/local/server"; +import { perfLogger } from "../compiler/perfLogger"; +import { nowString, Arguments, EventTypesRegistry, ActionPackageInstalled, EventInitializationFailed, EventBeginInstallTypes, EventEndInstallTypes, ActionInvalidate, ActionSet, findArgument, hasArgument } from "../jsTyping/shared"; +import { ITypingsInstaller, InstallPackageOptionsWithProject, nullTypingsInstaller } from "../server/typingsCache"; +import { ProjectService } from "../server/editorServices"; +import { ApplyCodeActionCommandResult } from "../services/types"; +import { ServerHost } from "../server/types"; +import { Event } from "../server/protocol"; +import { InstallPackageRequest, TypingInstallerRequestUnion, TypesRegistryResponse, PackageInstalledResponse, SetTypings, InvalidateCachedTypings, BeginInstallTypes, EndInstallTypes, InitializationFailedResponse } from "../jsTyping/types"; +import { Project } from "../server/project"; +import { TypeAcquisition, CharacterCodes, WatchOptions, RequireResult } from "../compiler/types"; +import { formatMessage, stripQuotes } from "../compiler/utilities"; +import { toEvent, ServerCancellationToken, nullCancellationToken, Session } from "../server/session"; +import { WatchedFile, missingFileModifiedTime, FileWatcherEventKind, onWatchedFileStat, FileWatcherCallback, sys, getNodeMajorVersion, FileWatcher, DirectoryWatcherCallback, setStackTraceLimit } from "../compiler/sys"; +import { resolveJSModule, validateLocaleAndSetLanguage } from "../../built/local/compiler"; + const childProcess: { fork(modulePath: string, args: string[], options?: { execArgv: string[], env?: MapLike }): NodeChildProcess; execFileSync(file: string, args: string[], options: { stdio: "ignore", env: MapLike }): string | Buffer; @@ -210,7 +229,7 @@ namespace ts.server { private write(s: string) { if (this.fd >= 0) { - const buf = sys.bufferFrom!(s); + const buf = system.bufferFrom!(s); // eslint-disable-next-line no-null/no-null fs.writeSync(this.fd, buf as globalThis.Buffer, 0, buf.length, /*position*/ null!); // TODO: GH#18217 } @@ -498,7 +517,7 @@ namespace ts.server { } }; - const host = sys; + const host = system; const typingsInstaller = disableAutomaticTypingAcquisition ? undefined @@ -734,7 +753,7 @@ namespace ts.server { const file: WatchedFile = { fileName, callback, - mtime: sys.fileExists(fileName) + mtime: system.fileExists(fileName) ? getModifiedTime(fileName) : missingFileModifiedTime // Any subsequent modification will occur after this time }; @@ -818,11 +837,11 @@ namespace ts.server { const logger = createLogger(); - const sys = ts.sys; + const system = sys; const nodeVersion = getNodeMajorVersion(); // use watchGuard process on Windows when node version is 4 or later const useWatchGuard = process.platform === "win32" && nodeVersion! >= 4; - const originalWatchDirectory: ServerHost["watchDirectory"] = sys.watchDirectory.bind(sys); + const originalWatchDirectory: ServerHost["watchDirectory"] = system.watchDirectory.bind(system); const noopWatcher: FileWatcher = { close: noop }; // This is the function that catches the exceptions when watching directory, and yet lets project service continue to function // Eg. on linux the number of watches are limited and one could easily exhaust watches and the exception ENOSPC is thrown when creating watcher at that point @@ -837,9 +856,9 @@ namespace ts.server { } if (useWatchGuard) { - const currentDrive = extractWatchDirectoryCacheKey(sys.resolvePath(sys.getCurrentDirectory()), /*currentDriveKey*/ undefined); + const currentDrive = extractWatchDirectoryCacheKey(system.resolvePath(system.getCurrentDirectory()), /*currentDriveKey*/ undefined); const statusCache = createMap(); - sys.watchDirectory = (path, callback, recursive, options) => { + system.watchDirectory = (path, callback, recursive, options) => { const cacheKey = extractWatchDirectoryCacheKey(path, currentDrive); let status = cacheKey && statusCache.get(cacheKey); if (status === undefined) { @@ -881,12 +900,12 @@ namespace ts.server { }; } else { - sys.watchDirectory = watchDirectorySwallowingException; + system.watchDirectory = watchDirectorySwallowingException; } // Override sys.write because fs.writeSync is not reliable on Node 4 - sys.write = (s: string) => writeMessage(sys.bufferFrom!(s, "utf8") as globalThis.Buffer); - sys.watchFile = (fileName, callback) => { + system.write = (s: string) => writeMessage(system.bufferFrom!(s, "utf8") as globalThis.Buffer); + system.watchFile = (fileName, callback) => { const watchedFile = pollingWatchedFileSet.addFile(fileName, callback); return { close: () => pollingWatchedFileSet.removeFile(watchedFile) @@ -894,19 +913,19 @@ namespace ts.server { }; /* eslint-disable no-restricted-globals */ - sys.setTimeout = setTimeout; - sys.clearTimeout = clearTimeout; - sys.setImmediate = setImmediate; - sys.clearImmediate = clearImmediate; + system.setTimeout = setTimeout; + system.clearTimeout = clearTimeout; + system.setImmediate = setImmediate; + system.clearImmediate = clearImmediate; /* eslint-enable no-restricted-globals */ if (typeof global !== "undefined" && global.gc) { - sys.gc = () => global.gc(); + system.gc = () => global.gc(); } - sys.require = (initialDir: string, moduleName: string): RequireResult => { + system.require = (initialDir: string, moduleName: string): RequireResult => { try { - return { module: require(resolveJSModule(moduleName, initialDir, sys)), error: undefined }; + return { module: require(resolveJSModule(moduleName, initialDir, system)), error: undefined }; } catch (error) { return { module: undefined, error }; @@ -916,7 +935,7 @@ namespace ts.server { let cancellationToken: ServerCancellationToken; try { const factory = require("./cancellationToken"); - cancellationToken = factory(sys.args); + cancellationToken = factory(system.args); } catch (e) { cancellationToken = nullCancellationToken; @@ -930,13 +949,13 @@ namespace ts.server { const localeStr = findArgument("--locale"); if (localeStr) { - validateLocaleAndSetLanguage(localeStr, sys); + validateLocaleAndSetLanguage(localeStr, system); } setStackTraceLimit(); const typingSafeListLocation = findArgument(Arguments.TypingSafeListLocation)!; // TODO: GH#18217 - const typesMapLocation = findArgument(Arguments.TypesMapLocation) || combinePaths(getDirectoryPath(sys.getExecutingFilePath()), "typesMap.json"); + const typesMapLocation = findArgument(Arguments.TypesMapLocation) || combinePaths(getDirectoryPath(system.getExecutingFilePath()), "typesMap.json"); const npmLocation = findArgument(Arguments.NpmLocation); const validateDefaultNpmLocation = hasArgument(Arguments.ValidateDefaultNpmLocation); @@ -963,7 +982,7 @@ namespace ts.server { logger.info(`Starting TS Server`); logger.info(`Version: ${version}`); logger.info(`Arguments: ${process.argv.join(" ")}`); - logger.info(`Platform: ${os.platform()} NodeVersion: ${nodeVersion} CaseSensitive: ${sys.useCaseSensitiveFileNames}`); + logger.info(`Platform: ${os.platform()} NodeVersion: ${nodeVersion} CaseSensitive: ${system.useCaseSensitiveFileNames}`); const ioSession = new IOSession(); process.on("uncaughtException", err => { @@ -978,8 +997,8 @@ namespace ts.server { Debug.enableDebugInfo(); } - if (ts.sys.tryEnableSourceMapsForHost && /^development$/i.test(ts.sys.getEnvironmentVariable("NODE_ENV"))) { - ts.sys.tryEnableSourceMapsForHost(); + if (sys.tryEnableSourceMapsForHost && /^development$/i.test(sys.getEnvironmentVariable("NODE_ENV"))) { + sys.tryEnableSourceMapsForHost(); } // Overwrites the current console messages to instead write to @@ -989,4 +1008,4 @@ namespace ts.server { console.log = (...args) => logger.msg(args.length === 1 ? args[0] : args.join(", "), Msg.Info); console.warn = (...args) => logger.msg(args.length === 1 ? args[0] : args.join(", "), Msg.Err); console.error = (...args) => logger.msg(args.length === 1 ? args[0] : args.join(", "), Msg.Err); -} + diff --git a/src/typingsInstaller/nodeTypingsInstaller.ts b/src/typingsInstaller/nodeTypingsInstaller.ts index cac11df704336..b39cc38e1d176 100644 --- a/src/typingsInstaller/nodeTypingsInstaller.ts +++ b/src/typingsInstaller/nodeTypingsInstaller.ts @@ -1,4 +1,12 @@ -namespace ts.server.typingsInstaller { +import { Log, TypingsInstaller, RequestCompletedAction, installNpmPackages } from "../../built/local/typingsInstallerCore"; +import { nowString, Arguments, EventTypesRegistry, ActionPackageInstalled, findArgument, hasArgument } from "../jsTyping/shared"; +import { sys } from "../compiler/sys"; +import { InstallTypingHost, InitializationFailedResponse, TypingInstallerRequestUnion, TypesRegistryResponse, PackageInstalledResponse, TypingInstallerResponseUnion } from "../jsTyping/types"; +import { MapLike } from "../compiler/corePublic"; +import { createMap, createMapFromTemplate, createGetCanonicalFileName, stringContains } from "../compiler/core"; +import { combinePaths, normalizeSlashes, toPath, forEachAncestorDirectory, getDirectoryPath } from "../compiler/path"; +import { Debug } from "../compiler/debug"; + const fs: { appendFileSync(file: string, content: string): void } = require("fs"); @@ -252,4 +260,4 @@ namespace ts.server.typingsInstaller { ? `${newline} ` + str.replace(/\r?\n/, `${newline} `) : ""; } -} + diff --git a/src/typingsInstallerCore/typingsInstaller.ts b/src/typingsInstallerCore/typingsInstaller.ts index 75aa4b58cad94..c3eeec08b1ea7 100644 --- a/src/typingsInstallerCore/typingsInstaller.ts +++ b/src/typingsInstallerCore/typingsInstaller.ts @@ -1,4 +1,14 @@ -namespace ts.server.typingsInstaller { +import { MapLike, Comparison, versionMajorMinor, version } from "../compiler/corePublic"; +import { noop, compareStringsCaseInsensitive, createMap, GetCanonicalFileName, createGetCanonicalFileName, hasProperty, getProperty, mapDefined } from "../compiler/core"; +import { InstallTypingHost, CloseProject, DiscoverTypings, BeginInstallTypes, EndInstallTypes, SetTypings, InvalidateCachedTypings } from "../jsTyping/types"; +import { resolveModuleName, mangleScopedPackageName } from "../../built/local/compiler"; +import { combinePaths, getBaseFileName, getDirectoryPath, fileExtensionIs, containsPath, directorySeparator } from "../compiler/path"; +import { ModuleResolutionKind, Path, WatchOptions, Extension } from "../compiler/types"; +import { FileWatcher, FileWatcherEventKind } from "../compiler/sys"; +import { clearMap, closeFileWatcher, copyEntries } from "../compiler/utilities"; +import { Version } from "../compiler/semver"; +import { EventBeginInstallTypes, EventEndInstallTypes, ActionInvalidate, ActionSet } from "../jsTyping/shared"; + interface NpmConfig { devDependencies: MapLike; } @@ -331,7 +341,7 @@ namespace ts.server.typingsInstaller { eventId: requestId, // qualified explicitly to prevent occasional shadowing // eslint-disable-next-line @typescript-eslint/no-unnecessary-qualifier - typingsInstallerVersion: ts.version, + typingsInstallerVersion: version, projectName: req.projectName }); @@ -382,7 +392,7 @@ namespace ts.server.typingsInstaller { installSuccess: ok, // qualified explicitly to prevent occasional shadowing // eslint-disable-next-line @typescript-eslint/no-unnecessary-qualifier - typingsInstallerVersion: ts.version + typingsInstallerVersion: version }; this.sendResponse(response); } @@ -540,4 +550,4 @@ namespace ts.server.typingsInstaller { export function typingsName(packageName: string): string { return `@types/${packageName}@ts${versionMajorMinor}`; } -} + diff --git a/tests/baselines/reference/textChanges/deleteNodeInList4.js b/tests/baselines/reference/textChanges/deleteNodeInList4.js index 61bdf9159cb67..5be08b206d514 100644 --- a/tests/baselines/reference/textChanges/deleteNodeInList4.js +++ b/tests/baselines/reference/textChanges/deleteNodeInList4.js @@ -1,12 +1,10 @@ ===ORIGINAL=== - namespace M { var a = 1, b = 2, c = 3; } ===MODIFIED=== - namespace M { var b = 2, c = 3; diff --git a/tests/baselines/reference/textChanges/deleteNodeInList4_1.js b/tests/baselines/reference/textChanges/deleteNodeInList4_1.js index 19ff5475d1a10..ac9cc87d0cb07 100644 --- a/tests/baselines/reference/textChanges/deleteNodeInList4_1.js +++ b/tests/baselines/reference/textChanges/deleteNodeInList4_1.js @@ -1,5 +1,4 @@ ===ORIGINAL=== - namespace M { var a = 1, // comment 1 // comment 2 @@ -8,7 +7,6 @@ namespace M { c = 3; // comment 5 } ===MODIFIED=== - namespace M { var // comment 2 b = 2, // comment 3 diff --git a/tests/baselines/reference/textChanges/deleteNodeInList5.js b/tests/baselines/reference/textChanges/deleteNodeInList5.js index 0ed65877d2702..f248f08dbbb3e 100644 --- a/tests/baselines/reference/textChanges/deleteNodeInList5.js +++ b/tests/baselines/reference/textChanges/deleteNodeInList5.js @@ -1,12 +1,10 @@ ===ORIGINAL=== - namespace M { var a = 1, b = 2, c = 3; } ===MODIFIED=== - namespace M { var a = 1, c = 3; diff --git a/tests/baselines/reference/textChanges/deleteNodeInList5_1.js b/tests/baselines/reference/textChanges/deleteNodeInList5_1.js index 224b92481d3c9..e27a39a7dc089 100644 --- a/tests/baselines/reference/textChanges/deleteNodeInList5_1.js +++ b/tests/baselines/reference/textChanges/deleteNodeInList5_1.js @@ -1,5 +1,4 @@ ===ORIGINAL=== - namespace M { var a = 1, // comment 1 // comment 2 @@ -8,7 +7,6 @@ namespace M { c = 3; // comment 5 } ===MODIFIED=== - namespace M { var a = 1, // comment 1 // comment 4 diff --git a/tests/baselines/reference/textChanges/deleteNodeInList6.js b/tests/baselines/reference/textChanges/deleteNodeInList6.js index 4093329023fce..dd374b7f15a83 100644 --- a/tests/baselines/reference/textChanges/deleteNodeInList6.js +++ b/tests/baselines/reference/textChanges/deleteNodeInList6.js @@ -1,12 +1,10 @@ ===ORIGINAL=== - namespace M { var a = 1, b = 2, c = 3; } ===MODIFIED=== - namespace M { var a = 1, b = 2; diff --git a/tests/baselines/reference/textChanges/deleteNodeInList6_1.js b/tests/baselines/reference/textChanges/deleteNodeInList6_1.js index 6acc20aa826ee..573a3c4d3e3b6 100644 --- a/tests/baselines/reference/textChanges/deleteNodeInList6_1.js +++ b/tests/baselines/reference/textChanges/deleteNodeInList6_1.js @@ -1,5 +1,4 @@ ===ORIGINAL=== - namespace M { var a = 1, // comment 1 // comment 2 @@ -8,7 +7,6 @@ namespace M { c = 3; // comment 5 } ===MODIFIED=== - namespace M { var a = 1, // comment 1 // comment 2 diff --git a/tests/baselines/reference/textChanges/extractMethodLike.js b/tests/baselines/reference/textChanges/extractMethodLike.js index a566f76b8ed80..ad2968188e066 100644 --- a/tests/baselines/reference/textChanges/extractMethodLike.js +++ b/tests/baselines/reference/textChanges/extractMethodLike.js @@ -1,5 +1,4 @@ ===ORIGINAL=== - namespace M { namespace M2 @@ -21,7 +20,6 @@ namespace M } } ===MODIFIED=== - namespace M { function bar(): any diff --git a/tests/baselines/reference/textChanges/insertNodeAfter1.js b/tests/baselines/reference/textChanges/insertNodeAfter1.js index e6d7387f6bc89..3233a4bb60604 100644 --- a/tests/baselines/reference/textChanges/insertNodeAfter1.js +++ b/tests/baselines/reference/textChanges/insertNodeAfter1.js @@ -1,5 +1,4 @@ ===ORIGINAL=== - namespace M { // comment 1 var x = 1; // comment 2 @@ -10,7 +9,6 @@ namespace M { var a = 4; // comment 7 } ===MODIFIED=== - namespace M { // comment 1 var x = 1; // comment 2 diff --git a/tests/baselines/reference/textChanges/insertNodeAfter2.js b/tests/baselines/reference/textChanges/insertNodeAfter2.js index 47907322fe9d2..c3fe9710c34a2 100644 --- a/tests/baselines/reference/textChanges/insertNodeAfter2.js +++ b/tests/baselines/reference/textChanges/insertNodeAfter2.js @@ -1,5 +1,4 @@ ===ORIGINAL=== - namespace M { // comment 1 var x = 1; // comment 2 @@ -10,7 +9,6 @@ namespace M { var a = 4; // comment 7 } ===MODIFIED=== - namespace M { // comment 1 var x = 1; // comment 2 diff --git a/tests/baselines/reference/textChanges/insertNodeBefore1.js b/tests/baselines/reference/textChanges/insertNodeBefore1.js index deebe10b69480..2ad241247525e 100644 --- a/tests/baselines/reference/textChanges/insertNodeBefore1.js +++ b/tests/baselines/reference/textChanges/insertNodeBefore1.js @@ -1,5 +1,4 @@ ===ORIGINAL=== - namespace M { // comment 1 var x = 1; // comment 2 @@ -10,7 +9,6 @@ namespace M { var a = 4; // comment 7 } ===MODIFIED=== - namespace M { // comment 1 var x = 1; // comment 2 diff --git a/tests/baselines/reference/textChanges/insertNodeBefore2.js b/tests/baselines/reference/textChanges/insertNodeBefore2.js index 1792cd5e69c5b..26cb48f6e7788 100644 --- a/tests/baselines/reference/textChanges/insertNodeBefore2.js +++ b/tests/baselines/reference/textChanges/insertNodeBefore2.js @@ -1,5 +1,4 @@ ===ORIGINAL=== - namespace M { // comment 1 var x = 1; // comment 2 @@ -10,7 +9,6 @@ namespace M { var a = 4; // comment 7 } ===MODIFIED=== - public class class1 implements interface1 { property1: boolean; diff --git a/tests/baselines/reference/textChanges/replaceNode1NoLineBreakBefore.js b/tests/baselines/reference/textChanges/replaceNode1NoLineBreakBefore.js index 44183d402ab44..d985c9f332a80 100644 --- a/tests/baselines/reference/textChanges/replaceNode1NoLineBreakBefore.js +++ b/tests/baselines/reference/textChanges/replaceNode1NoLineBreakBefore.js @@ -1,13 +1,10 @@ ===ORIGINAL=== - namespace A { const x = 1, y = "2"; } - ===MODIFIED=== - namespace A { const x = 1, z1 = { p1: 1 }; -} +} \ No newline at end of file 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 7fe09ee9e3445..f5c71c5a1a59d 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 @@ -124,7 +124,7 @@ declare class C { //# 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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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"} +{"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;AAEG,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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;ACpC/C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -313,12 +313,12 @@ sourceFile:../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + SourceIndex(2) --- >>> constructor(); >>> prop: string; @@ -329,27 +329,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ + > /*@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) +1 >Emitted(15, 5) Source(15, 23) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 27) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 29) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 35) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 36) + SourceIndex(2) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +1->Emitted(16, 5) Source(16, 23) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 29) + SourceIndex(2) --- >>> get c(): number; 1->^^^^ @@ -360,19 +360,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /*@internal*/ + > /*@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /*@internal*/ set c(val: + > /*@internal*/ set c(val: 5 > number 6 > -1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) +1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 27) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 28) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 34) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 40) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 45) + SourceIndex(2) --- >>> set c(val: number); 1->^^^^ @@ -383,27 +383,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) +1->Emitted(18, 5) Source(18, 23) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 27) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 28) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 29) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 34) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 40) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 45) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) + > } +1 >Emitted(19, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -411,32 +411,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +1->Emitted(20, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 23) + SourceIndex(2) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /*@internal*/ + > /*@internal*/ 2 > export class 3 > C -1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) +1 >Emitted(21, 5) Source(21, 23) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 36) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 37) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) +1 >Emitted(22, 6) Source(21, 41) + SourceIndex(2) --- >>> function foo(): void; 1->^^^^ @@ -445,14 +445,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) +1->Emitted(23, 5) Source(22, 23) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 39) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 42) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 47) + SourceIndex(2) --- >>> namespace someNamespace { 1->^^^^ @@ -460,14 +460,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) +1->Emitted(24, 5) Source(23, 23) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 40) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 53) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 54) + SourceIndex(2) --- >>> class C { 1 >^^^^^^^^ @@ -476,20 +476,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) +1 >Emitted(25, 9) Source(23, 56) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 69) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 70) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) +1 >Emitted(26, 10) Source(23, 73) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) +1 >Emitted(27, 6) Source(23, 75) + SourceIndex(2) --- >>> namespace someOther.something { 1->^^^^ @@ -499,18 +499,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) +1->Emitted(28, 5) Source(24, 23) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 40) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 49) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 50) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 59) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 60) + SourceIndex(2) --- >>> class someClass { 1 >^^^^^^^^ @@ -519,20 +519,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) +1 >Emitted(29, 9) Source(24, 62) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 75) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 84) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) +1 >Emitted(30, 10) Source(24, 87) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) +1 >Emitted(31, 6) Source(24, 89) + SourceIndex(2) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -545,7 +545,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export 3 > import 4 > someImport @@ -554,15 +554,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(32, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) +1->Emitted(32, 5) Source(25, 23) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 29) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 37) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 47) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 50) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 63) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 64) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 65) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 66) + SourceIndex(2) --- >>> type internalType = internalC; 1 >^^^^ @@ -572,18 +572,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) +1 >Emitted(33, 5) Source(26, 23) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 35) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 47) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 50) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 59) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 60) + SourceIndex(2) --- >>> const internalConst = 10; 1 >^^^^ @@ -592,28 +592,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /*@internal*/ export + > /*@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) +1 >Emitted(34, 5) Source(27, 30) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 36) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 49) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 54) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 55) + SourceIndex(2) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) +1 >Emitted(35, 5) Source(28, 23) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 35) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 47) + SourceIndex(2) --- >>> a = 0, 1 >^^^^^^^^ @@ -623,9 +623,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^^^^^ @@ -635,9 +635,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^^^^^ @@ -646,39 +646,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) +1->Emitted(38, 9) Source(28, 56) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 57) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 57) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) +1 >Emitted(39, 6) Source(28, 59) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) + > } +1 >Emitted(40, 2) Source(29, 6) + SourceIndex(2) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >class 3 > internalC -1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) +1->Emitted(41, 1) Source(30, 19) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 25) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 34) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) +1 >Emitted(42, 2) Source(30, 37) + SourceIndex(2) --- >>>declare function internalfoo(): void; 1-> @@ -687,14 +687,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/*@internal*/ + > /*@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) +1->Emitted(43, 1) Source(31, 19) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 28) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 39) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 44) + SourceIndex(2) --- >>>declare namespace internalNamespace { 1-> @@ -702,14 +702,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) +1->Emitted(44, 1) Source(32, 19) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 29) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 46) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 47) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -718,20 +718,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) +1 >Emitted(45, 5) Source(32, 49) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 62) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 71) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) +1 >Emitted(46, 6) Source(32, 74) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) +1 >Emitted(47, 2) Source(32, 76) + SourceIndex(2) --- >>>declare namespace internalOther.something { 1-> @@ -741,18 +741,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) +1->Emitted(48, 1) Source(33, 19) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 29) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 42) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 43) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 52) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 53) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -761,20 +761,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) +1 >Emitted(49, 5) Source(33, 55) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 68) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 77) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) +1 >Emitted(50, 6) Source(33, 80) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) +1 >Emitted(51, 2) Source(33, 82) + SourceIndex(2) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -786,7 +786,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -794,14 +794,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) +1->Emitted(52, 1) Source(34, 19) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 26) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 40) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 43) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 60) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 61) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 70) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 71) + SourceIndex(2) --- >>>declare type internalType = internalC; 1 > @@ -811,18 +811,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +1 >Emitted(53, 1) Source(35, 19) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 24) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 36) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 39) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 48) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 49) + SourceIndex(2) --- >>>declare const internalConst = 10; 1 > @@ -832,30 +832,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) +1 >Emitted(54, 1) Source(36, 19) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 19) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 25) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 38) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 43) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 44) + SourceIndex(2) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) +1 >Emitted(55, 1) Source(37, 19) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 24) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 36) + SourceIndex(2) --- >>> a = 0, 1 >^^^^ @@ -865,9 +865,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^ @@ -877,9 +877,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^ @@ -888,15 +888,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) +1->Emitted(58, 5) Source(37, 45) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 46) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 46) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) +1 >Emitted(59, 2) Source(37, 48) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1046,7 +1046,7 @@ var C = (function () { //# 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -1334,15 +1334,15 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(15, 5) Source(14, 23) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1350,8 +1350,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +1->Emitted(16, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 40) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -1361,29 +1361,29 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(17, 5) Source(16, 23) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 29) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 23) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 34) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(18, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 28) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -1400,13 +1400,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(19, 14) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 33) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 40) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 42) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 43) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 44) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 45) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -1415,16 +1415,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(20, 14) Source(18, 23) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 29) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 40) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 44) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -1432,17 +1432,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -1454,16 +1454,16 @@ sourceFile:../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -1472,23 +1472,23 @@ sourceFile:../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -1498,22 +1498,22 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(28, 5) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1521,16 +1521,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 41) + 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->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1542,10 +1542,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -1557,10 +1557,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 41) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -1570,16 +1570,16 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(34, 5) Source(22, 23) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 39) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 42) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 46) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -1591,10 +1591,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -1603,14 +1603,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(36, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 40) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 53) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -1620,21 +1620,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1642,16 +1642,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 73) + 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->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1663,10 +1663,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1678,10 +1678,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1702,15 +1702,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 75) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -1719,14 +1719,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(45, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 40) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 49) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -1735,9 +1735,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -1749,10 +1749,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -1762,21 +1762,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1784,16 +1784,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 87) + 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->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1805,10 +1805,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1820,10 +1820,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1844,15 +1844,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1873,15 +1873,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 89) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1892,20 +1892,20 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(57, 5) Source(25, 37) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 47) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 50) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 63) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 64) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 65) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 66) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -1914,17 +1914,17 @@ sourceFile:../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(58, 5) Source(27, 36) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 49) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 52) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 54) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 55) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -1932,12 +1932,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(59, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 35) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -1947,9 +1947,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1959,9 +1959,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 51) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1971,9 +1971,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 54) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1983,9 +1983,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -2006,15 +2006,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -2026,42 +2026,42 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) + > /*@internal*/ +1->Emitted(66, 1) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2069,16 +2069,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 37) + 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->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -2090,10 +2090,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 37) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -2102,16 +2102,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(71, 1) Source(31, 19) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 28) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 39) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 43) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 44) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -2120,14 +2120,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(72, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 29) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 46) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -2137,21 +2137,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -2159,16 +2159,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 74) + 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->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -2180,10 +2180,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -2195,10 +2195,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -2215,13 +2215,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 76) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -2230,14 +2230,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(81, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 29) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 42) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -2246,9 +2246,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -2260,10 +2260,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -2273,21 +2273,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -2295,16 +2295,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 80) + 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->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -2316,10 +2316,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2331,10 +2331,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2355,15 +2355,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2381,13 +2381,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 82) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -2399,7 +2399,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -2407,14 +2407,14 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 19) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 26) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 40) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 43) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 60) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 61) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 70) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 71) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -2424,19 +2424,19 @@ sourceFile:../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(94, 1) Source(36, 19) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 25) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 38) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 41) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 43) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 44) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -2444,12 +2444,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(95, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 24) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -2459,9 +2459,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2471,9 +2471,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 40) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2483,9 +2483,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 43) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2494,9 +2494,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2513,13 +2513,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -3318,7 +3318,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -3473,24 +3473,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3498,29 +3498,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3697,7 +3697,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -3985,15 +3985,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(15, 5) Source(14, 23) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4001,8 +4001,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +1->Emitted(16, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 40) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -4012,29 +4012,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(17, 5) Source(16, 23) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 29) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 23) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 34) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(18, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 28) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -4051,13 +4051,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(19, 14) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 33) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 40) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 42) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 43) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 44) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 45) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -4066,16 +4066,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(20, 14) Source(18, 23) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 29) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 40) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 44) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -4083,17 +4083,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -4105,16 +4105,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -4123,23 +4123,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -4149,22 +4149,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(28, 5) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4172,16 +4172,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 41) + 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->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4193,10 +4193,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -4208,10 +4208,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 41) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -4221,16 +4221,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(34, 5) Source(22, 23) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 39) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 42) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 46) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -4242,10 +4242,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -4254,14 +4254,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(36, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 40) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 53) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -4271,21 +4271,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4293,16 +4293,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 73) + 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->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4314,10 +4314,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -4329,10 +4329,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -4353,15 +4353,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 75) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -4370,14 +4370,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(45, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 40) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 49) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -4386,9 +4386,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -4400,10 +4400,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -4413,21 +4413,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -4435,16 +4435,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 87) + 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->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -4456,10 +4456,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -4471,10 +4471,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -4495,15 +4495,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -4524,15 +4524,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 89) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -4543,20 +4543,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(57, 5) Source(25, 37) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 47) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 50) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 63) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 64) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 65) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 66) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -4565,17 +4565,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(58, 5) Source(27, 36) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 49) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 52) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 54) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 55) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -4583,12 +4583,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(59, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 35) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -4598,9 +4598,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -4610,9 +4610,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 51) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -4622,9 +4622,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 54) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -4634,9 +4634,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -4657,15 +4657,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -4677,42 +4677,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) + > /*@internal*/ +1->Emitted(66, 1) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4720,16 +4720,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 37) + 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->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -4741,10 +4741,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 37) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -4753,16 +4753,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(71, 1) Source(31, 19) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 28) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 39) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 43) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 44) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -4771,14 +4771,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(72, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 29) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 46) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -4788,21 +4788,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4810,16 +4810,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 74) + 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->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4831,10 +4831,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -4846,10 +4846,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -4866,13 +4866,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 76) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -4881,14 +4881,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(81, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 29) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 42) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -4897,9 +4897,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -4911,10 +4911,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -4924,21 +4924,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4946,16 +4946,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 80) + 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->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4967,10 +4967,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -4982,10 +4982,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -5006,15 +5006,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -5032,13 +5032,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 82) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -5050,7 +5050,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -5058,14 +5058,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 19) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 26) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 40) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 43) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 60) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 61) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 70) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 71) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -5075,19 +5075,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(94, 1) Source(36, 19) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 25) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 38) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 41) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 43) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 44) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -5095,12 +5095,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(95, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 24) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -5110,9 +5110,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -5122,9 +5122,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 40) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -5134,9 +5134,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 43) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -5145,9 +5145,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -5164,13 +5164,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 3e7036f487431..1de5b0474b46f 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 @@ -441,7 +441,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -596,24 +596,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -621,29 +621,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -820,7 +820,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -1108,15 +1108,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(15, 5) Source(14, 23) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1124,8 +1124,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +1->Emitted(16, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 40) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -1135,29 +1135,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(17, 5) Source(16, 23) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 29) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 23) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 34) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(18, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 28) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -1174,13 +1174,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(19, 14) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 33) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 40) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 42) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 43) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 44) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 45) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -1189,16 +1189,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(20, 14) Source(18, 23) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 29) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 40) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 44) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -1206,17 +1206,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -1228,16 +1228,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -1246,23 +1246,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -1272,22 +1272,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(28, 5) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1295,16 +1295,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 41) + 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->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1316,10 +1316,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -1331,10 +1331,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 41) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -1344,16 +1344,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(34, 5) Source(22, 23) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 39) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 42) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 46) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -1365,10 +1365,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -1377,14 +1377,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(36, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 40) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 53) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -1394,21 +1394,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1416,16 +1416,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 73) + 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->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1437,10 +1437,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1452,10 +1452,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1476,15 +1476,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 75) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -1493,14 +1493,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(45, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 40) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 49) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -1509,9 +1509,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -1523,10 +1523,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -1536,21 +1536,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1558,16 +1558,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 87) + 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->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1579,10 +1579,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1594,10 +1594,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1618,15 +1618,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1647,15 +1647,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 89) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1666,20 +1666,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(57, 5) Source(25, 37) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 47) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 50) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 63) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 64) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 65) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 66) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -1688,17 +1688,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(58, 5) Source(27, 36) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 49) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 52) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 54) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 55) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -1706,12 +1706,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(59, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 35) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -1721,9 +1721,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1733,9 +1733,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 51) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1745,9 +1745,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 54) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1757,9 +1757,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1780,15 +1780,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -1800,42 +1800,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) + > /*@internal*/ +1->Emitted(66, 1) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1843,16 +1843,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 37) + 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->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -1864,10 +1864,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 37) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -1876,16 +1876,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(71, 1) Source(31, 19) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 28) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 39) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 43) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 44) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -1894,14 +1894,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(72, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 29) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 46) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -1911,21 +1911,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1933,16 +1933,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 74) + 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->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1954,10 +1954,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -1969,10 +1969,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -1989,13 +1989,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 76) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -2004,14 +2004,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(81, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 29) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 42) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -2020,9 +2020,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -2034,10 +2034,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -2047,21 +2047,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -2069,16 +2069,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 80) + 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->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -2090,10 +2090,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2105,10 +2105,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2129,15 +2129,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2155,13 +2155,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 82) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -2173,7 +2173,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -2181,14 +2181,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 19) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 26) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 40) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 43) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 60) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 61) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 70) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 71) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -2198,19 +2198,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(94, 1) Source(36, 19) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 25) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 38) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 41) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 43) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 44) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -2218,12 +2218,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(95, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 24) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -2233,9 +2233,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2245,9 +2245,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 40) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2257,9 +2257,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 43) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2268,9 +2268,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2287,13 +2287,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 92e1b523086d0..296ea80471c75 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 @@ -154,7 +154,7 @@ var C = (function () { //# 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -470,15 +470,15 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /**@internal*/ -1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(16, 5) Source(14, 24) + SourceIndex(3) --- >>> } 1->^^^^ @@ -486,8 +486,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +1->Emitted(17, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 41) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -497,29 +497,29 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /**@internal*/ prop: string; - > /**@internal*/ + > /**@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) +1->Emitted(18, 5) Source(16, 24) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 30) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 24) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 35) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /**@internal*/ + > /**@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) +1->Emitted(19, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 29) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -536,13 +536,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(20, 14) Source(17, 24) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 34) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 41) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 43) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 44) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 45) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 46) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -551,16 +551,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(21, 14) Source(18, 24) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 30) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 41) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 45) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -568,17 +568,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -590,16 +590,16 @@ sourceFile:../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -608,23 +608,23 @@ sourceFile:../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -634,22 +634,22 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /**@internal*/ -1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(29, 5) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -657,16 +657,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 42) + 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->Emitted(32, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -678,10 +678,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -693,10 +693,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 42) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -706,16 +706,16 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(35, 5) Source(22, 24) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 40) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -727,10 +727,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(36, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 48) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -739,14 +739,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(37, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 41) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 54) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -756,21 +756,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -778,16 +778,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 74) + 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->Emitted(42, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -799,10 +799,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -814,10 +814,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -838,15 +838,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 76) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -855,14 +855,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(46, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 41) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 50) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -871,9 +871,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(47, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -885,10 +885,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -898,21 +898,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -920,16 +920,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 88) + 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->Emitted(53, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -941,10 +941,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -956,10 +956,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -980,15 +980,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1009,15 +1009,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 90) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1028,20 +1028,20 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /**@internal*/ export import + > /**@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) +1 >Emitted(58, 5) Source(25, 38) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 48) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 51) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 64) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 65) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 66) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 67) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -1050,17 +1050,17 @@ sourceFile:../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const + > /**@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) +1 >Emitted(59, 5) Source(27, 37) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 50) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 53) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 55) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 56) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -1068,12 +1068,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(60, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 36) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -1083,9 +1083,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(61, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1095,9 +1095,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1107,9 +1107,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1119,9 +1119,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1142,15 +1142,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -1162,42 +1162,42 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/**@internal*/ -1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) + > /**@internal*/ +1->Emitted(67, 1) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1205,16 +1205,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 38) + 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->Emitted(70, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -1226,10 +1226,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 38) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -1238,16 +1238,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/**@internal*/ + > /**@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) +1->Emitted(72, 1) Source(31, 20) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 29) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 40) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 44) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 45) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -1256,14 +1256,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(73, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 30) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 47) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -1273,21 +1273,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1295,16 +1295,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 75) + 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->Emitted(78, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1316,10 +1316,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -1331,10 +1331,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -1351,13 +1351,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 77) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -1366,14 +1366,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(82, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 30) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 43) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -1382,9 +1382,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(83, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -1396,10 +1396,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -1409,21 +1409,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1431,16 +1431,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 81) + 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->Emitted(89, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1452,10 +1452,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -1467,10 +1467,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -1491,15 +1491,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -1517,13 +1517,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 83) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -1535,7 +1535,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -1543,14 +1543,14 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 20) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 27) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 41) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 44) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 61) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 62) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 71) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 72) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -1560,19 +1560,19 @@ sourceFile:../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ + > /**@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) +1 >Emitted(95, 1) Source(36, 20) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 26) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 39) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 42) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 44) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 45) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -1580,12 +1580,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(96, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 25) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -1595,9 +1595,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(97, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -1607,9 +1607,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -1619,9 +1619,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -1630,9 +1630,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -1649,13 +1649,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -2438,7 +2438,7 @@ 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -2754,15 +2754,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /**@internal*/ -1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(16, 5) Source(14, 24) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2770,8 +2770,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +1->Emitted(17, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 41) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -2781,29 +2781,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /**@internal*/ prop: string; - > /**@internal*/ + > /**@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) +1->Emitted(18, 5) Source(16, 24) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 30) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 24) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 35) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /**@internal*/ + > /**@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) +1->Emitted(19, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 29) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -2820,13 +2820,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(20, 14) Source(17, 24) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 34) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 41) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 43) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 44) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 45) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 46) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -2835,16 +2835,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(21, 14) Source(18, 24) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 30) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 41) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 45) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -2852,17 +2852,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -2874,16 +2874,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -2892,23 +2892,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -2918,22 +2918,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /**@internal*/ -1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(29, 5) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -2941,16 +2941,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 42) + 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->Emitted(32, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -2962,10 +2962,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -2977,10 +2977,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 42) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -2990,16 +2990,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(35, 5) Source(22, 24) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 40) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -3011,10 +3011,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(36, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 48) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -3023,14 +3023,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(37, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 41) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 54) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -3040,21 +3040,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -3062,16 +3062,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 74) + 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->Emitted(42, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -3083,10 +3083,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -3098,10 +3098,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -3122,15 +3122,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 76) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -3139,14 +3139,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(46, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 41) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 50) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -3155,9 +3155,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(47, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -3169,10 +3169,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -3182,21 +3182,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -3204,16 +3204,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 88) + 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->Emitted(53, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -3225,10 +3225,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -3240,10 +3240,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -3264,15 +3264,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -3293,15 +3293,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 90) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -3312,20 +3312,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /**@internal*/ export import + > /**@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) +1 >Emitted(58, 5) Source(25, 38) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 48) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 51) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 64) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 65) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 66) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 67) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -3334,17 +3334,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const + > /**@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) +1 >Emitted(59, 5) Source(27, 37) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 50) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 53) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 55) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 56) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -3352,12 +3352,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(60, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 36) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -3367,9 +3367,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -3379,9 +3379,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -3391,9 +3391,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -3403,9 +3403,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -3426,15 +3426,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -3446,42 +3446,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/**@internal*/ -1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) + > /**@internal*/ +1->Emitted(67, 1) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -3489,16 +3489,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 38) + 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->Emitted(70, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -3510,10 +3510,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 38) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -3522,16 +3522,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/**@internal*/ + > /**@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) +1->Emitted(72, 1) Source(31, 20) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 29) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 40) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 44) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 45) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -3540,14 +3540,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(73, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 30) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 47) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -3557,21 +3557,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -3579,16 +3579,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 75) + 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->Emitted(78, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -3600,10 +3600,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -3615,10 +3615,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -3635,13 +3635,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 77) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -3650,14 +3650,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(82, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 30) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 43) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -3666,9 +3666,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(83, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -3680,10 +3680,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -3693,21 +3693,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -3715,16 +3715,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 81) + 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->Emitted(89, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -3736,10 +3736,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -3751,10 +3751,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -3775,15 +3775,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -3801,13 +3801,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 83) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -3819,7 +3819,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -3827,14 +3827,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 20) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 27) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 41) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 44) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 61) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 62) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 71) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 72) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -3844,19 +3844,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ + > /**@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) +1 >Emitted(95, 1) Source(36, 20) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 26) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 39) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 42) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 44) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 45) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -3864,12 +3864,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(96, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 25) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -3879,9 +3879,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -3891,9 +3891,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -3903,9 +3903,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -3914,9 +3914,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -3933,13 +3933,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 0767c3a71b080..a0d6ff2fd54da 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 @@ -407,7 +407,7 @@ 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -723,15 +723,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /**@internal*/ -1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(16, 5) Source(14, 24) + SourceIndex(3) --- >>> } 1->^^^^ @@ -739,8 +739,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +1->Emitted(17, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 41) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -750,29 +750,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /**@internal*/ prop: string; - > /**@internal*/ + > /**@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) +1->Emitted(18, 5) Source(16, 24) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 30) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 24) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 35) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /**@internal*/ + > /**@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) +1->Emitted(19, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 29) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -789,13 +789,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(20, 14) Source(17, 24) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 34) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 41) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 43) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 44) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 45) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 46) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -804,16 +804,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(21, 14) Source(18, 24) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 30) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 41) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 45) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -821,17 +821,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -843,16 +843,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -861,23 +861,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -887,22 +887,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /**@internal*/ -1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(29, 5) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -910,16 +910,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 42) + 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->Emitted(32, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -931,10 +931,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -946,10 +946,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 42) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -959,16 +959,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(35, 5) Source(22, 24) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 40) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -980,10 +980,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(36, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 48) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -992,14 +992,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(37, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 41) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 54) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -1009,21 +1009,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1031,16 +1031,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 74) + 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->Emitted(42, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1052,10 +1052,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1067,10 +1067,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1091,15 +1091,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 76) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -1108,14 +1108,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(46, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 41) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 50) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -1124,9 +1124,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(47, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -1138,10 +1138,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -1151,21 +1151,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1173,16 +1173,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 88) + 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->Emitted(53, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1194,10 +1194,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1209,10 +1209,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1233,15 +1233,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1262,15 +1262,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 90) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1281,20 +1281,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /**@internal*/ export import + > /**@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) +1 >Emitted(58, 5) Source(25, 38) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 48) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 51) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 64) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 65) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 66) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 67) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -1303,17 +1303,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const + > /**@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) +1 >Emitted(59, 5) Source(27, 37) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 50) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 53) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 55) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 56) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -1321,12 +1321,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(60, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 36) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -1336,9 +1336,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1348,9 +1348,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1360,9 +1360,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1372,9 +1372,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1395,15 +1395,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -1415,42 +1415,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/**@internal*/ -1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) + > /**@internal*/ +1->Emitted(67, 1) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1458,16 +1458,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 38) + 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->Emitted(70, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -1479,10 +1479,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 38) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -1491,16 +1491,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/**@internal*/ + > /**@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) +1->Emitted(72, 1) Source(31, 20) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 29) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 40) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 44) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 45) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -1509,14 +1509,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(73, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 30) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 47) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -1526,21 +1526,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1548,16 +1548,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 75) + 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->Emitted(78, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1569,10 +1569,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -1584,10 +1584,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -1604,13 +1604,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 77) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -1619,14 +1619,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(82, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 30) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 43) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -1635,9 +1635,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(83, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -1649,10 +1649,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -1662,21 +1662,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1684,16 +1684,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 81) + 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->Emitted(89, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1705,10 +1705,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -1720,10 +1720,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -1744,15 +1744,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -1770,13 +1770,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 83) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -1788,7 +1788,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -1796,14 +1796,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 20) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 27) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 41) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 44) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 61) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 62) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 71) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 72) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -1813,19 +1813,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ + > /**@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) +1 >Emitted(95, 1) Source(36, 20) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 26) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 39) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 42) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 44) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 45) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -1833,12 +1833,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(96, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 25) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -1848,9 +1848,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -1860,9 +1860,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -1872,9 +1872,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -1883,9 +1883,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -1902,13 +1902,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 57e56038845c2..56f11fe3719b1 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 @@ -154,7 +154,7 @@ var C = /** @class */ (function () { //# 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -470,20 +470,20 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + 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->Emitted(16, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(16, 19) Source(14, 23) + SourceIndex(3) +3 >Emitted(16, 20) Source(14, 24) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -491,8 +491,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +1 >Emitted(17, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 41) + SourceIndex(3) --- >>> /**@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -503,21 +503,21 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /**@internal*/ prop: string; - > + > /**@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) +1->Emitted(18, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(18, 19) Source(16, 23) + SourceIndex(3) +3 >Emitted(18, 20) Source(16, 24) + SourceIndex(3) +4 >Emitted(18, 44) Source(16, 30) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 24) + SourceIndex(3) +6 >Emitted(18, 61) Source(16, 35) + SourceIndex(3) +7 >Emitted(18, 62) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -525,12 +525,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(19, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 29) + SourceIndex(3) --- >>> /**@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -551,15 +551,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(20, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(20, 23) Source(17, 23) + SourceIndex(3) +3 >Emitted(20, 29) Source(17, 24) + SourceIndex(3) +4 >Emitted(20, 43) Source(17, 34) + SourceIndex(3) +5 >Emitted(20, 50) Source(17, 41) + SourceIndex(3) +6 >Emitted(20, 52) Source(17, 43) + SourceIndex(3) +7 >Emitted(20, 53) Source(17, 44) + SourceIndex(3) +8 >Emitted(20, 54) Source(17, 45) + SourceIndex(3) +9 >Emitted(20, 55) Source(17, 46) + SourceIndex(3) --- >>> /**@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -570,20 +570,20 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(21, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(21, 23) Source(18, 23) + SourceIndex(3) +3 >Emitted(21, 29) Source(18, 24) + SourceIndex(3) +4 >Emitted(21, 39) Source(18, 30) + SourceIndex(3) +5 >Emitted(21, 42) Source(18, 41) + SourceIndex(3) +6 >Emitted(21, 46) Source(18, 45) + SourceIndex(3) +7 >Emitted(21, 47) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -591,17 +591,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -613,16 +613,16 @@ sourceFile:../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -631,23 +631,23 @@ sourceFile:../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -657,9 +657,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> /**@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -667,18 +667,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(29, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(29, 19) Source(21, 23) + SourceIndex(3) +3 >Emitted(29, 20) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -686,16 +686,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 42) + 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->Emitted(32, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -707,10 +707,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -722,10 +722,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 42) + SourceIndex(3) --- >>> /**@internal*/ function foo() { } 1->^^^^ @@ -736,20 +736,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(35, 19) Source(22, 23) + SourceIndex(3) +3 >Emitted(35, 20) Source(22, 24) + SourceIndex(3) +4 >Emitted(35, 29) Source(22, 40) + SourceIndex(3) +5 >Emitted(35, 32) Source(22, 43) + SourceIndex(3) +6 >Emitted(35, 37) Source(22, 47) + SourceIndex(3) +7 >Emitted(35, 38) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -761,10 +761,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(36, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 48) + SourceIndex(3) --- >>> /**@internal*/ var someNamespace; 1->^^^^ @@ -774,18 +774,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(37, 19) Source(23, 23) + SourceIndex(3) +3 >Emitted(37, 20) Source(23, 24) + SourceIndex(3) +4 >Emitted(37, 24) Source(23, 41) + SourceIndex(3) +5 >Emitted(37, 37) Source(23, 54) + SourceIndex(3) +6 >Emitted(37, 38) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -795,21 +795,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(38, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -817,16 +817,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 74) + 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->Emitted(42, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -838,10 +838,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -853,10 +853,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -877,15 +877,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 76) + SourceIndex(3) --- >>> /**@internal*/ var someOther; 1 >^^^^ @@ -895,18 +895,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(46, 19) Source(24, 23) + SourceIndex(3) +3 >Emitted(46, 20) Source(24, 24) + SourceIndex(3) +4 >Emitted(46, 24) Source(24, 41) + SourceIndex(3) +5 >Emitted(46, 33) Source(24, 50) + SourceIndex(3) +6 >Emitted(46, 34) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -915,9 +915,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -929,10 +929,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -942,21 +942,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -964,16 +964,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 88) + 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->Emitted(53, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -985,10 +985,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1000,10 +1000,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1024,15 +1024,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1053,15 +1053,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 90) + SourceIndex(3) --- >>> /**@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1074,7 +1074,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /**@internal*/ 3 > export import 4 > someImport @@ -1083,15 +1083,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(58, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(58, 19) Source(25, 23) + SourceIndex(3) +3 >Emitted(58, 20) Source(25, 38) + SourceIndex(3) +4 >Emitted(58, 38) Source(25, 48) + SourceIndex(3) +5 >Emitted(58, 41) Source(25, 51) + SourceIndex(3) +6 >Emitted(58, 54) Source(25, 64) + SourceIndex(3) +7 >Emitted(58, 55) Source(25, 65) + SourceIndex(3) +8 >Emitted(58, 56) Source(25, 66) + SourceIndex(3) +9 >Emitted(58, 57) Source(25, 67) + SourceIndex(3) --- >>> /**@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -1102,21 +1102,21 @@ sourceFile:../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > + > /**@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) +1 >Emitted(59, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(59, 19) Source(27, 23) + SourceIndex(3) +3 >Emitted(59, 20) Source(27, 37) + SourceIndex(3) +4 >Emitted(59, 41) Source(27, 50) + SourceIndex(3) +5 >Emitted(59, 44) Source(27, 53) + SourceIndex(3) +6 >Emitted(59, 46) Source(27, 55) + SourceIndex(3) +7 >Emitted(59, 47) Source(27, 56) + SourceIndex(3) --- >>> /**@internal*/ var internalEnum; 1 >^^^^ @@ -1125,16 +1125,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(60, 19) Source(28, 23) + SourceIndex(3) +3 >Emitted(60, 20) Source(28, 24) + SourceIndex(3) +4 >Emitted(60, 24) Source(28, 36) + SourceIndex(3) +5 >Emitted(60, 36) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -1144,9 +1144,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(61, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1156,9 +1156,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1168,9 +1168,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1180,9 +1180,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1203,15 +1203,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -1223,29 +1223,29 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>/**@internal*/ var internalC = /** @class */ (function () { 1-> @@ -1253,18 +1253,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(67, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(67, 15) Source(30, 19) + SourceIndex(3) +3 >Emitted(67, 16) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1272,16 +1272,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 38) + 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->Emitted(70, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -1293,10 +1293,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 38) + SourceIndex(3) --- >>>/**@internal*/ function internalfoo() { } 1-> @@ -1307,20 +1307,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(72, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(72, 15) Source(31, 19) + SourceIndex(3) +3 >Emitted(72, 16) Source(31, 20) + SourceIndex(3) +4 >Emitted(72, 25) Source(31, 29) + SourceIndex(3) +5 >Emitted(72, 36) Source(31, 40) + SourceIndex(3) +6 >Emitted(72, 41) Source(31, 44) + SourceIndex(3) +7 >Emitted(72, 42) Source(31, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalNamespace; 1 > @@ -1330,18 +1330,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(73, 15) Source(32, 19) + SourceIndex(3) +3 >Emitted(73, 16) Source(32, 20) + SourceIndex(3) +4 >Emitted(73, 20) Source(32, 30) + SourceIndex(3) +5 >Emitted(73, 37) Source(32, 47) + SourceIndex(3) +6 >Emitted(73, 38) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -1351,21 +1351,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(74, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1373,16 +1373,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 75) + 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->Emitted(78, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1394,10 +1394,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -1409,10 +1409,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -1429,13 +1429,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 77) + SourceIndex(3) --- >>>/**@internal*/ var internalOther; 1 > @@ -1445,18 +1445,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(82, 15) Source(33, 19) + SourceIndex(3) +3 >Emitted(82, 16) Source(33, 20) + SourceIndex(3) +4 >Emitted(82, 20) Source(33, 30) + SourceIndex(3) +5 >Emitted(82, 33) Source(33, 43) + SourceIndex(3) +6 >Emitted(82, 34) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -1465,9 +1465,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -1479,10 +1479,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -1492,21 +1492,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1514,16 +1514,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 81) + 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->Emitted(89, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1535,10 +1535,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -1550,10 +1550,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -1574,15 +1574,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -1600,13 +1600,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 83) + SourceIndex(3) --- >>>/**@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -1620,7 +1620,7 @@ sourceFile:../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > import @@ -1630,16 +1630,16 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(94, 15) Source(34, 19) + SourceIndex(3) +3 >Emitted(94, 16) Source(34, 20) + SourceIndex(3) +4 >Emitted(94, 20) Source(34, 27) + SourceIndex(3) +5 >Emitted(94, 34) Source(34, 41) + SourceIndex(3) +6 >Emitted(94, 37) Source(34, 44) + SourceIndex(3) +7 >Emitted(94, 54) Source(34, 61) + SourceIndex(3) +8 >Emitted(94, 55) Source(34, 62) + SourceIndex(3) +9 >Emitted(94, 64) Source(34, 71) + SourceIndex(3) +10>Emitted(94, 65) Source(34, 72) + SourceIndex(3) --- >>>/**@internal*/ var internalConst = 10; 1 > @@ -1651,8 +1651,8 @@ sourceFile:../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/**@internal*/ type internalType = internalC; - > + > /**@internal*/ type internalType = internalC; + > 2 >/**@internal*/ 3 > 4 > const @@ -1660,14 +1660,14 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(95, 15) Source(36, 19) + SourceIndex(3) +3 >Emitted(95, 16) Source(36, 20) + SourceIndex(3) +4 >Emitted(95, 20) Source(36, 26) + SourceIndex(3) +5 >Emitted(95, 33) Source(36, 39) + SourceIndex(3) +6 >Emitted(95, 36) Source(36, 42) + SourceIndex(3) +7 >Emitted(95, 38) Source(36, 44) + SourceIndex(3) +8 >Emitted(95, 39) Source(36, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalEnum; 1 > @@ -1676,16 +1676,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(96, 15) Source(37, 19) + SourceIndex(3) +3 >Emitted(96, 16) Source(37, 20) + SourceIndex(3) +4 >Emitted(96, 20) Source(37, 25) + SourceIndex(3) +5 >Emitted(96, 32) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -1695,9 +1695,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(97, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -1707,9 +1707,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -1719,9 +1719,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -1730,9 +1730,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -1749,13 +1749,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -2538,7 +2538,7 @@ 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -2854,20 +2854,20 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + 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->Emitted(16, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(16, 19) Source(14, 23) + SourceIndex(3) +3 >Emitted(16, 20) Source(14, 24) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -2875,8 +2875,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +1 >Emitted(17, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 41) + SourceIndex(3) --- >>> /**@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -2887,21 +2887,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /**@internal*/ prop: string; - > + > /**@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) +1->Emitted(18, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(18, 19) Source(16, 23) + SourceIndex(3) +3 >Emitted(18, 20) Source(16, 24) + SourceIndex(3) +4 >Emitted(18, 44) Source(16, 30) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 24) + SourceIndex(3) +6 >Emitted(18, 61) Source(16, 35) + SourceIndex(3) +7 >Emitted(18, 62) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -2909,12 +2909,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(19, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 29) + SourceIndex(3) --- >>> /**@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -2935,15 +2935,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(20, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(20, 23) Source(17, 23) + SourceIndex(3) +3 >Emitted(20, 29) Source(17, 24) + SourceIndex(3) +4 >Emitted(20, 43) Source(17, 34) + SourceIndex(3) +5 >Emitted(20, 50) Source(17, 41) + SourceIndex(3) +6 >Emitted(20, 52) Source(17, 43) + SourceIndex(3) +7 >Emitted(20, 53) Source(17, 44) + SourceIndex(3) +8 >Emitted(20, 54) Source(17, 45) + SourceIndex(3) +9 >Emitted(20, 55) Source(17, 46) + SourceIndex(3) --- >>> /**@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -2954,20 +2954,20 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(21, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(21, 23) Source(18, 23) + SourceIndex(3) +3 >Emitted(21, 29) Source(18, 24) + SourceIndex(3) +4 >Emitted(21, 39) Source(18, 30) + SourceIndex(3) +5 >Emitted(21, 42) Source(18, 41) + SourceIndex(3) +6 >Emitted(21, 46) Source(18, 45) + SourceIndex(3) +7 >Emitted(21, 47) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -2975,17 +2975,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -2997,16 +2997,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -3015,23 +3015,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -3041,9 +3041,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> /**@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -3051,18 +3051,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(29, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(29, 19) Source(21, 23) + SourceIndex(3) +3 >Emitted(29, 20) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -3070,16 +3070,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 42) + 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->Emitted(32, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -3091,10 +3091,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -3106,10 +3106,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 42) + SourceIndex(3) --- >>> /**@internal*/ function foo() { } 1->^^^^ @@ -3120,20 +3120,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(35, 19) Source(22, 23) + SourceIndex(3) +3 >Emitted(35, 20) Source(22, 24) + SourceIndex(3) +4 >Emitted(35, 29) Source(22, 40) + SourceIndex(3) +5 >Emitted(35, 32) Source(22, 43) + SourceIndex(3) +6 >Emitted(35, 37) Source(22, 47) + SourceIndex(3) +7 >Emitted(35, 38) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -3145,10 +3145,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(36, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 48) + SourceIndex(3) --- >>> /**@internal*/ var someNamespace; 1->^^^^ @@ -3158,18 +3158,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(37, 19) Source(23, 23) + SourceIndex(3) +3 >Emitted(37, 20) Source(23, 24) + SourceIndex(3) +4 >Emitted(37, 24) Source(23, 41) + SourceIndex(3) +5 >Emitted(37, 37) Source(23, 54) + SourceIndex(3) +6 >Emitted(37, 38) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -3179,21 +3179,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(38, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -3201,16 +3201,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 74) + 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->Emitted(42, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -3222,10 +3222,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -3237,10 +3237,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -3261,15 +3261,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 76) + SourceIndex(3) --- >>> /**@internal*/ var someOther; 1 >^^^^ @@ -3279,18 +3279,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(46, 19) Source(24, 23) + SourceIndex(3) +3 >Emitted(46, 20) Source(24, 24) + SourceIndex(3) +4 >Emitted(46, 24) Source(24, 41) + SourceIndex(3) +5 >Emitted(46, 33) Source(24, 50) + SourceIndex(3) +6 >Emitted(46, 34) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -3299,9 +3299,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -3313,10 +3313,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -3326,21 +3326,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -3348,16 +3348,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 88) + 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->Emitted(53, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -3369,10 +3369,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -3384,10 +3384,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -3408,15 +3408,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -3437,15 +3437,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 90) + SourceIndex(3) --- >>> /**@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -3458,7 +3458,7 @@ sourceFile:../../../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /**@internal*/ 3 > export import 4 > someImport @@ -3467,15 +3467,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(58, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(58, 19) Source(25, 23) + SourceIndex(3) +3 >Emitted(58, 20) Source(25, 38) + SourceIndex(3) +4 >Emitted(58, 38) Source(25, 48) + SourceIndex(3) +5 >Emitted(58, 41) Source(25, 51) + SourceIndex(3) +6 >Emitted(58, 54) Source(25, 64) + SourceIndex(3) +7 >Emitted(58, 55) Source(25, 65) + SourceIndex(3) +8 >Emitted(58, 56) Source(25, 66) + SourceIndex(3) +9 >Emitted(58, 57) Source(25, 67) + SourceIndex(3) --- >>> /**@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -3486,21 +3486,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > + > /**@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) +1 >Emitted(59, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(59, 19) Source(27, 23) + SourceIndex(3) +3 >Emitted(59, 20) Source(27, 37) + SourceIndex(3) +4 >Emitted(59, 41) Source(27, 50) + SourceIndex(3) +5 >Emitted(59, 44) Source(27, 53) + SourceIndex(3) +6 >Emitted(59, 46) Source(27, 55) + SourceIndex(3) +7 >Emitted(59, 47) Source(27, 56) + SourceIndex(3) --- >>> /**@internal*/ var internalEnum; 1 >^^^^ @@ -3509,16 +3509,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(60, 19) Source(28, 23) + SourceIndex(3) +3 >Emitted(60, 20) Source(28, 24) + SourceIndex(3) +4 >Emitted(60, 24) Source(28, 36) + SourceIndex(3) +5 >Emitted(60, 36) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -3528,9 +3528,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(61, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -3540,9 +3540,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -3552,9 +3552,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -3564,9 +3564,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -3587,15 +3587,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -3607,29 +3607,29 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>/**@internal*/ var internalC = /** @class */ (function () { 1-> @@ -3637,18 +3637,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(67, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(67, 15) Source(30, 19) + SourceIndex(3) +3 >Emitted(67, 16) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -3656,16 +3656,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 38) + 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->Emitted(70, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -3677,10 +3677,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 38) + SourceIndex(3) --- >>>/**@internal*/ function internalfoo() { } 1-> @@ -3691,20 +3691,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(72, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(72, 15) Source(31, 19) + SourceIndex(3) +3 >Emitted(72, 16) Source(31, 20) + SourceIndex(3) +4 >Emitted(72, 25) Source(31, 29) + SourceIndex(3) +5 >Emitted(72, 36) Source(31, 40) + SourceIndex(3) +6 >Emitted(72, 41) Source(31, 44) + SourceIndex(3) +7 >Emitted(72, 42) Source(31, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalNamespace; 1 > @@ -3714,18 +3714,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(73, 15) Source(32, 19) + SourceIndex(3) +3 >Emitted(73, 16) Source(32, 20) + SourceIndex(3) +4 >Emitted(73, 20) Source(32, 30) + SourceIndex(3) +5 >Emitted(73, 37) Source(32, 47) + SourceIndex(3) +6 >Emitted(73, 38) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -3735,21 +3735,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(74, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -3757,16 +3757,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 75) + 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->Emitted(78, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -3778,10 +3778,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -3793,10 +3793,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -3813,13 +3813,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 77) + SourceIndex(3) --- >>>/**@internal*/ var internalOther; 1 > @@ -3829,18 +3829,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(82, 15) Source(33, 19) + SourceIndex(3) +3 >Emitted(82, 16) Source(33, 20) + SourceIndex(3) +4 >Emitted(82, 20) Source(33, 30) + SourceIndex(3) +5 >Emitted(82, 33) Source(33, 43) + SourceIndex(3) +6 >Emitted(82, 34) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -3849,9 +3849,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -3863,10 +3863,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -3876,21 +3876,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -3898,16 +3898,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 81) + 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->Emitted(89, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -3919,10 +3919,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -3934,10 +3934,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -3958,15 +3958,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -3984,13 +3984,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 83) + SourceIndex(3) --- >>>/**@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -4004,7 +4004,7 @@ sourceFile:../../../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > import @@ -4014,16 +4014,16 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(94, 15) Source(34, 19) + SourceIndex(3) +3 >Emitted(94, 16) Source(34, 20) + SourceIndex(3) +4 >Emitted(94, 20) Source(34, 27) + SourceIndex(3) +5 >Emitted(94, 34) Source(34, 41) + SourceIndex(3) +6 >Emitted(94, 37) Source(34, 44) + SourceIndex(3) +7 >Emitted(94, 54) Source(34, 61) + SourceIndex(3) +8 >Emitted(94, 55) Source(34, 62) + SourceIndex(3) +9 >Emitted(94, 64) Source(34, 71) + SourceIndex(3) +10>Emitted(94, 65) Source(34, 72) + SourceIndex(3) --- >>>/**@internal*/ var internalConst = 10; 1 > @@ -4035,8 +4035,8 @@ sourceFile:../../../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/**@internal*/ type internalType = internalC; - > + > /**@internal*/ type internalType = internalC; + > 2 >/**@internal*/ 3 > 4 > const @@ -4044,14 +4044,14 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(95, 15) Source(36, 19) + SourceIndex(3) +3 >Emitted(95, 16) Source(36, 20) + SourceIndex(3) +4 >Emitted(95, 20) Source(36, 26) + SourceIndex(3) +5 >Emitted(95, 33) Source(36, 39) + SourceIndex(3) +6 >Emitted(95, 36) Source(36, 42) + SourceIndex(3) +7 >Emitted(95, 38) Source(36, 44) + SourceIndex(3) +8 >Emitted(95, 39) Source(36, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalEnum; 1 > @@ -4060,16 +4060,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(96, 15) Source(37, 19) + SourceIndex(3) +3 >Emitted(96, 16) Source(37, 20) + SourceIndex(3) +4 >Emitted(96, 20) Source(37, 25) + SourceIndex(3) +5 >Emitted(96, 32) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -4079,9 +4079,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(97, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -4091,9 +4091,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -4103,9 +4103,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -4114,9 +4114,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -4133,13 +4133,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 134c1ad2a1599..5c0b81561cb38 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 @@ -407,7 +407,7 @@ 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -723,20 +723,20 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + 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->Emitted(16, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(16, 19) Source(14, 23) + SourceIndex(3) +3 >Emitted(16, 20) Source(14, 24) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -744,8 +744,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +1 >Emitted(17, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 41) + SourceIndex(3) --- >>> /**@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -756,21 +756,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /**@internal*/ prop: string; - > + > /**@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) +1->Emitted(18, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(18, 19) Source(16, 23) + SourceIndex(3) +3 >Emitted(18, 20) Source(16, 24) + SourceIndex(3) +4 >Emitted(18, 44) Source(16, 30) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 24) + SourceIndex(3) +6 >Emitted(18, 61) Source(16, 35) + SourceIndex(3) +7 >Emitted(18, 62) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -778,12 +778,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(19, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 29) + SourceIndex(3) --- >>> /**@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -804,15 +804,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(20, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(20, 23) Source(17, 23) + SourceIndex(3) +3 >Emitted(20, 29) Source(17, 24) + SourceIndex(3) +4 >Emitted(20, 43) Source(17, 34) + SourceIndex(3) +5 >Emitted(20, 50) Source(17, 41) + SourceIndex(3) +6 >Emitted(20, 52) Source(17, 43) + SourceIndex(3) +7 >Emitted(20, 53) Source(17, 44) + SourceIndex(3) +8 >Emitted(20, 54) Source(17, 45) + SourceIndex(3) +9 >Emitted(20, 55) Source(17, 46) + SourceIndex(3) --- >>> /**@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -823,20 +823,20 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(21, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(21, 23) Source(18, 23) + SourceIndex(3) +3 >Emitted(21, 29) Source(18, 24) + SourceIndex(3) +4 >Emitted(21, 39) Source(18, 30) + SourceIndex(3) +5 >Emitted(21, 42) Source(18, 41) + SourceIndex(3) +6 >Emitted(21, 46) Source(18, 45) + SourceIndex(3) +7 >Emitted(21, 47) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -844,17 +844,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -866,16 +866,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -884,23 +884,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -910,9 +910,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> /**@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -920,18 +920,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(29, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(29, 19) Source(21, 23) + SourceIndex(3) +3 >Emitted(29, 20) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -939,16 +939,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 42) + 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->Emitted(32, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -960,10 +960,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -975,10 +975,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 42) + SourceIndex(3) --- >>> /**@internal*/ function foo() { } 1->^^^^ @@ -989,20 +989,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(35, 19) Source(22, 23) + SourceIndex(3) +3 >Emitted(35, 20) Source(22, 24) + SourceIndex(3) +4 >Emitted(35, 29) Source(22, 40) + SourceIndex(3) +5 >Emitted(35, 32) Source(22, 43) + SourceIndex(3) +6 >Emitted(35, 37) Source(22, 47) + SourceIndex(3) +7 >Emitted(35, 38) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -1014,10 +1014,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(36, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 48) + SourceIndex(3) --- >>> /**@internal*/ var someNamespace; 1->^^^^ @@ -1027,18 +1027,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(37, 19) Source(23, 23) + SourceIndex(3) +3 >Emitted(37, 20) Source(23, 24) + SourceIndex(3) +4 >Emitted(37, 24) Source(23, 41) + SourceIndex(3) +5 >Emitted(37, 37) Source(23, 54) + SourceIndex(3) +6 >Emitted(37, 38) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -1048,21 +1048,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(38, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1070,16 +1070,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 74) + 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->Emitted(42, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1091,10 +1091,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1106,10 +1106,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1130,15 +1130,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 76) + SourceIndex(3) --- >>> /**@internal*/ var someOther; 1 >^^^^ @@ -1148,18 +1148,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(46, 19) Source(24, 23) + SourceIndex(3) +3 >Emitted(46, 20) Source(24, 24) + SourceIndex(3) +4 >Emitted(46, 24) Source(24, 41) + SourceIndex(3) +5 >Emitted(46, 33) Source(24, 50) + SourceIndex(3) +6 >Emitted(46, 34) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -1168,9 +1168,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -1182,10 +1182,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -1195,21 +1195,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1217,16 +1217,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 88) + 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->Emitted(53, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1238,10 +1238,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1253,10 +1253,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1277,15 +1277,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1306,15 +1306,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 90) + SourceIndex(3) --- >>> /**@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1327,7 +1327,7 @@ sourceFile:../../../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /**@internal*/ 3 > export import 4 > someImport @@ -1336,15 +1336,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(58, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(58, 19) Source(25, 23) + SourceIndex(3) +3 >Emitted(58, 20) Source(25, 38) + SourceIndex(3) +4 >Emitted(58, 38) Source(25, 48) + SourceIndex(3) +5 >Emitted(58, 41) Source(25, 51) + SourceIndex(3) +6 >Emitted(58, 54) Source(25, 64) + SourceIndex(3) +7 >Emitted(58, 55) Source(25, 65) + SourceIndex(3) +8 >Emitted(58, 56) Source(25, 66) + SourceIndex(3) +9 >Emitted(58, 57) Source(25, 67) + SourceIndex(3) --- >>> /**@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -1355,21 +1355,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > + > /**@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) +1 >Emitted(59, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(59, 19) Source(27, 23) + SourceIndex(3) +3 >Emitted(59, 20) Source(27, 37) + SourceIndex(3) +4 >Emitted(59, 41) Source(27, 50) + SourceIndex(3) +5 >Emitted(59, 44) Source(27, 53) + SourceIndex(3) +6 >Emitted(59, 46) Source(27, 55) + SourceIndex(3) +7 >Emitted(59, 47) Source(27, 56) + SourceIndex(3) --- >>> /**@internal*/ var internalEnum; 1 >^^^^ @@ -1378,16 +1378,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(60, 19) Source(28, 23) + SourceIndex(3) +3 >Emitted(60, 20) Source(28, 24) + SourceIndex(3) +4 >Emitted(60, 24) Source(28, 36) + SourceIndex(3) +5 >Emitted(60, 36) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -1397,9 +1397,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(61, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1409,9 +1409,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1421,9 +1421,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1433,9 +1433,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1456,15 +1456,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -1476,29 +1476,29 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>/**@internal*/ var internalC = /** @class */ (function () { 1-> @@ -1506,18 +1506,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(67, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(67, 15) Source(30, 19) + SourceIndex(3) +3 >Emitted(67, 16) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1525,16 +1525,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 38) + 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->Emitted(70, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -1546,10 +1546,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 38) + SourceIndex(3) --- >>>/**@internal*/ function internalfoo() { } 1-> @@ -1560,20 +1560,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(72, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(72, 15) Source(31, 19) + SourceIndex(3) +3 >Emitted(72, 16) Source(31, 20) + SourceIndex(3) +4 >Emitted(72, 25) Source(31, 29) + SourceIndex(3) +5 >Emitted(72, 36) Source(31, 40) + SourceIndex(3) +6 >Emitted(72, 41) Source(31, 44) + SourceIndex(3) +7 >Emitted(72, 42) Source(31, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalNamespace; 1 > @@ -1583,18 +1583,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(73, 15) Source(32, 19) + SourceIndex(3) +3 >Emitted(73, 16) Source(32, 20) + SourceIndex(3) +4 >Emitted(73, 20) Source(32, 30) + SourceIndex(3) +5 >Emitted(73, 37) Source(32, 47) + SourceIndex(3) +6 >Emitted(73, 38) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -1604,21 +1604,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(74, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1626,16 +1626,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 75) + 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->Emitted(78, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1647,10 +1647,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -1662,10 +1662,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -1682,13 +1682,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 77) + SourceIndex(3) --- >>>/**@internal*/ var internalOther; 1 > @@ -1698,18 +1698,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(82, 15) Source(33, 19) + SourceIndex(3) +3 >Emitted(82, 16) Source(33, 20) + SourceIndex(3) +4 >Emitted(82, 20) Source(33, 30) + SourceIndex(3) +5 >Emitted(82, 33) Source(33, 43) + SourceIndex(3) +6 >Emitted(82, 34) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -1718,9 +1718,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -1732,10 +1732,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -1745,21 +1745,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1767,16 +1767,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 81) + 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->Emitted(89, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1788,10 +1788,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -1803,10 +1803,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -1827,15 +1827,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -1853,13 +1853,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 83) + SourceIndex(3) --- >>>/**@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -1873,7 +1873,7 @@ sourceFile:../../../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > import @@ -1883,16 +1883,16 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(94, 15) Source(34, 19) + SourceIndex(3) +3 >Emitted(94, 16) Source(34, 20) + SourceIndex(3) +4 >Emitted(94, 20) Source(34, 27) + SourceIndex(3) +5 >Emitted(94, 34) Source(34, 41) + SourceIndex(3) +6 >Emitted(94, 37) Source(34, 44) + SourceIndex(3) +7 >Emitted(94, 54) Source(34, 61) + SourceIndex(3) +8 >Emitted(94, 55) Source(34, 62) + SourceIndex(3) +9 >Emitted(94, 64) Source(34, 71) + SourceIndex(3) +10>Emitted(94, 65) Source(34, 72) + SourceIndex(3) --- >>>/**@internal*/ var internalConst = 10; 1 > @@ -1904,8 +1904,8 @@ sourceFile:../../../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/**@internal*/ type internalType = internalC; - > + > /**@internal*/ type internalType = internalC; + > 2 >/**@internal*/ 3 > 4 > const @@ -1913,14 +1913,14 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(95, 15) Source(36, 19) + SourceIndex(3) +3 >Emitted(95, 16) Source(36, 20) + SourceIndex(3) +4 >Emitted(95, 20) Source(36, 26) + SourceIndex(3) +5 >Emitted(95, 33) Source(36, 39) + SourceIndex(3) +6 >Emitted(95, 36) Source(36, 42) + SourceIndex(3) +7 >Emitted(95, 38) Source(36, 44) + SourceIndex(3) +8 >Emitted(95, 39) Source(36, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalEnum; 1 > @@ -1929,16 +1929,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(96, 15) Source(37, 19) + SourceIndex(3) +3 >Emitted(96, 16) Source(37, 20) + SourceIndex(3) +4 >Emitted(96, 20) Source(37, 25) + SourceIndex(3) +5 >Emitted(96, 32) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -1948,9 +1948,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(97, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -1960,9 +1960,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -1972,9 +1972,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -1983,9 +1983,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2002,13 +2002,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 3a3f6c7438345..ef38a6849ccea 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 @@ -176,7 +176,7 @@ var C = (function () { //# 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -492,15 +492,15 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(16, 5) Source(14, 23) + SourceIndex(3) --- >>> } 1->^^^^ @@ -508,8 +508,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +1->Emitted(17, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 40) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -519,29 +519,29 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(18, 5) Source(16, 23) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 29) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 23) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 34) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(19, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 28) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -558,13 +558,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(20, 14) Source(17, 23) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 33) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 40) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 42) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 43) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 44) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 45) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -573,16 +573,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(21, 14) Source(18, 23) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 29) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 40) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 44) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -590,17 +590,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -612,16 +612,16 @@ sourceFile:../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -630,23 +630,23 @@ sourceFile:../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -656,22 +656,22 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(29, 5) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -679,16 +679,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 41) + 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->Emitted(32, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -700,10 +700,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -715,10 +715,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 41) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -728,16 +728,16 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(35, 5) Source(22, 23) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 39) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 42) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 46) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -749,10 +749,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(36, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 47) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -761,14 +761,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 53) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -778,21 +778,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -800,16 +800,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 73) + 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->Emitted(42, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -821,10 +821,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -836,10 +836,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -860,15 +860,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 75) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -877,14 +877,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 49) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -893,9 +893,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(47, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -907,10 +907,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -920,21 +920,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -942,16 +942,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 87) + 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->Emitted(53, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -963,10 +963,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -978,10 +978,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1002,15 +1002,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1031,15 +1031,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 89) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1050,20 +1050,20 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(58, 5) Source(25, 37) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 47) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 50) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 63) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 64) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 65) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 66) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -1072,17 +1072,17 @@ sourceFile:../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(59, 5) Source(27, 36) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 49) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 52) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 54) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 55) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -1090,12 +1090,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -1105,9 +1105,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(61, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1117,9 +1117,9 @@ sourceFile:../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1129,9 +1129,9 @@ sourceFile:../second/second_part1.ts 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) +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[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1141,9 +1141,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1164,15 +1164,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -1184,42 +1184,42 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) + > /*@internal*/ +1->Emitted(67, 1) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1227,16 +1227,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 37) + 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->Emitted(70, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -1248,10 +1248,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 37) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -1260,16 +1260,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(72, 1) Source(31, 19) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 28) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 39) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 43) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 44) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -1278,14 +1278,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 46) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -1295,21 +1295,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1317,16 +1317,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 74) + 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->Emitted(78, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1338,10 +1338,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -1353,10 +1353,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -1373,13 +1373,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 76) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -1388,14 +1388,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 42) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -1404,9 +1404,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(83, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -1418,10 +1418,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -1431,21 +1431,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1453,16 +1453,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 80) + 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->Emitted(89, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1474,10 +1474,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -1489,10 +1489,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -1513,15 +1513,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -1539,13 +1539,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 82) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -1557,7 +1557,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -1565,14 +1565,14 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 19) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 26) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 40) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 43) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 60) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 61) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 70) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 71) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -1582,19 +1582,19 @@ sourceFile:../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(95, 1) Source(36, 19) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 25) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 38) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 41) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 43) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 44) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -1602,12 +1602,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -1617,9 +1617,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(97, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -1629,9 +1629,9 @@ sourceFile:../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^ @@ -1641,9 +1641,9 @@ sourceFile:../second/second_part1.ts 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) +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["c"] = 2] = "c"; 1->^^^^ @@ -1652,9 +1652,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -1671,13 +1671,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -2460,7 +2460,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -2776,15 +2776,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(16, 5) Source(14, 23) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2792,8 +2792,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +1->Emitted(17, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 40) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -2803,29 +2803,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(18, 5) Source(16, 23) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 29) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 23) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 34) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(19, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 28) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -2842,13 +2842,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(20, 14) Source(17, 23) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 33) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 40) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 42) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 43) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 44) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 45) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -2857,16 +2857,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(21, 14) Source(18, 23) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 29) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 40) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 44) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -2874,17 +2874,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -2896,16 +2896,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -2914,23 +2914,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -2940,22 +2940,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(29, 5) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -2963,16 +2963,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 41) + 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->Emitted(32, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -2984,10 +2984,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -2999,10 +2999,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 41) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -3012,16 +3012,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(35, 5) Source(22, 23) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 39) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 42) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 46) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -3033,10 +3033,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(36, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 47) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -3045,14 +3045,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 53) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -3062,21 +3062,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -3084,16 +3084,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 73) + 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->Emitted(42, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -3105,10 +3105,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -3120,10 +3120,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -3144,15 +3144,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 75) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -3161,14 +3161,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 49) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -3177,9 +3177,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(47, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -3191,10 +3191,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -3204,21 +3204,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -3226,16 +3226,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 87) + 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->Emitted(53, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -3247,10 +3247,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -3262,10 +3262,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -3286,15 +3286,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -3315,15 +3315,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 89) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -3334,20 +3334,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(58, 5) Source(25, 37) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 47) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 50) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 63) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 64) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 65) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 66) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -3356,17 +3356,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(59, 5) Source(27, 36) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 49) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 52) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 54) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 55) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -3374,12 +3374,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -3389,9 +3389,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -3401,9 +3401,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^^^^^ @@ -3413,9 +3413,9 @@ sourceFile:../../../second/second_part1.ts 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) +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[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -3425,9 +3425,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -3448,15 +3448,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -3468,42 +3468,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) + > /*@internal*/ +1->Emitted(67, 1) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -3511,16 +3511,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 37) + 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->Emitted(70, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -3532,10 +3532,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 37) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -3544,16 +3544,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(72, 1) Source(31, 19) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 28) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 39) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 43) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 44) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -3562,14 +3562,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 46) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -3579,21 +3579,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -3601,16 +3601,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 74) + 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->Emitted(78, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -3622,10 +3622,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -3637,10 +3637,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -3657,13 +3657,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 76) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -3672,14 +3672,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 42) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -3688,9 +3688,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(83, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -3702,10 +3702,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -3715,21 +3715,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -3737,16 +3737,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 80) + 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->Emitted(89, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -3758,10 +3758,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -3773,10 +3773,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -3797,15 +3797,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -3823,13 +3823,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 82) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -3841,7 +3841,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -3849,14 +3849,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 19) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 26) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 40) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 43) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 60) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 61) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 70) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 71) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -3866,19 +3866,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(95, 1) Source(36, 19) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 25) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 38) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 41) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 43) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 44) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -3886,12 +3886,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -3901,9 +3901,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -3913,9 +3913,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^ @@ -3925,9 +3925,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["c"] = 2] = "c"; 1->^^^^ @@ -3936,9 +3936,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -3955,13 +3955,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 c0127ea74f0e2..98f660958f82b 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 @@ -154,7 +154,7 @@ var C = /** @class */ (function () { //# 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -470,20 +470,20 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + 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->Emitted(16, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(16, 18) Source(14, 22) + SourceIndex(3) +3 >Emitted(16, 19) Source(14, 23) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -491,8 +491,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +1 >Emitted(17, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 40) + SourceIndex(3) --- >>> /*@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -503,21 +503,21 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /*@internal*/ prop: string; - > + > /*@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) +1->Emitted(18, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(18, 18) Source(16, 22) + SourceIndex(3) +3 >Emitted(18, 19) Source(16, 23) + SourceIndex(3) +4 >Emitted(18, 43) Source(16, 29) + SourceIndex(3) +5 >Emitted(18, 46) Source(16, 23) + SourceIndex(3) +6 >Emitted(18, 60) Source(16, 34) + SourceIndex(3) +7 >Emitted(18, 61) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -525,12 +525,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(19, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 28) + SourceIndex(3) --- >>> /*@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -551,15 +551,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(20, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(20, 22) Source(17, 22) + SourceIndex(3) +3 >Emitted(20, 28) Source(17, 23) + SourceIndex(3) +4 >Emitted(20, 42) Source(17, 33) + SourceIndex(3) +5 >Emitted(20, 49) Source(17, 40) + SourceIndex(3) +6 >Emitted(20, 51) Source(17, 42) + SourceIndex(3) +7 >Emitted(20, 52) Source(17, 43) + SourceIndex(3) +8 >Emitted(20, 53) Source(17, 44) + SourceIndex(3) +9 >Emitted(20, 54) Source(17, 45) + SourceIndex(3) --- >>> /*@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -570,20 +570,20 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(21, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(21, 22) Source(18, 22) + SourceIndex(3) +3 >Emitted(21, 28) Source(18, 23) + SourceIndex(3) +4 >Emitted(21, 38) Source(18, 29) + SourceIndex(3) +5 >Emitted(21, 41) Source(18, 40) + SourceIndex(3) +6 >Emitted(21, 45) Source(18, 44) + SourceIndex(3) +7 >Emitted(21, 46) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -591,17 +591,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -613,16 +613,16 @@ sourceFile:../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -631,23 +631,23 @@ sourceFile:../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -657,9 +657,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> /*@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -667,18 +667,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(29, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(29, 18) Source(21, 22) + SourceIndex(3) +3 >Emitted(29, 19) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -686,16 +686,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 41) + 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->Emitted(32, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -707,10 +707,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -722,10 +722,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 41) + SourceIndex(3) --- >>> /*@internal*/ function foo() { } 1->^^^^ @@ -736,20 +736,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(35, 18) Source(22, 22) + SourceIndex(3) +3 >Emitted(35, 19) Source(22, 23) + SourceIndex(3) +4 >Emitted(35, 28) Source(22, 39) + SourceIndex(3) +5 >Emitted(35, 31) Source(22, 42) + SourceIndex(3) +6 >Emitted(35, 36) Source(22, 46) + SourceIndex(3) +7 >Emitted(35, 37) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -761,10 +761,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(36, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 47) + SourceIndex(3) --- >>> /*@internal*/ var someNamespace; 1->^^^^ @@ -774,18 +774,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(37, 18) Source(23, 22) + SourceIndex(3) +3 >Emitted(37, 19) Source(23, 23) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 40) + SourceIndex(3) +5 >Emitted(37, 36) Source(23, 53) + SourceIndex(3) +6 >Emitted(37, 37) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -795,21 +795,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(38, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -817,16 +817,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 73) + 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->Emitted(42, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -838,10 +838,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -853,10 +853,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -877,15 +877,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 75) + SourceIndex(3) --- >>> /*@internal*/ var someOther; 1 >^^^^ @@ -895,18 +895,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(46, 18) Source(24, 22) + SourceIndex(3) +3 >Emitted(46, 19) Source(24, 23) + SourceIndex(3) +4 >Emitted(46, 23) Source(24, 40) + SourceIndex(3) +5 >Emitted(46, 32) Source(24, 49) + SourceIndex(3) +6 >Emitted(46, 33) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -915,9 +915,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -929,10 +929,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -942,21 +942,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -964,16 +964,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 87) + 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->Emitted(53, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -985,10 +985,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1000,10 +1000,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1024,15 +1024,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1053,15 +1053,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 89) + SourceIndex(3) --- >>> /*@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1074,7 +1074,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /*@internal*/ 3 > export import 4 > someImport @@ -1083,15 +1083,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(58, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(58, 18) Source(25, 22) + SourceIndex(3) +3 >Emitted(58, 19) Source(25, 37) + SourceIndex(3) +4 >Emitted(58, 37) Source(25, 47) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 50) + SourceIndex(3) +6 >Emitted(58, 53) Source(25, 63) + SourceIndex(3) +7 >Emitted(58, 54) Source(25, 64) + SourceIndex(3) +8 >Emitted(58, 55) Source(25, 65) + SourceIndex(3) +9 >Emitted(58, 56) Source(25, 66) + SourceIndex(3) --- >>> /*@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -1102,21 +1102,21 @@ sourceFile:../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > + > /*@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) +1 >Emitted(59, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(59, 18) Source(27, 22) + SourceIndex(3) +3 >Emitted(59, 19) Source(27, 36) + SourceIndex(3) +4 >Emitted(59, 40) Source(27, 49) + SourceIndex(3) +5 >Emitted(59, 43) Source(27, 52) + SourceIndex(3) +6 >Emitted(59, 45) Source(27, 54) + SourceIndex(3) +7 >Emitted(59, 46) Source(27, 55) + SourceIndex(3) --- >>> /*@internal*/ var internalEnum; 1 >^^^^ @@ -1125,16 +1125,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(60, 18) Source(28, 22) + SourceIndex(3) +3 >Emitted(60, 19) Source(28, 23) + SourceIndex(3) +4 >Emitted(60, 23) Source(28, 35) + SourceIndex(3) +5 >Emitted(60, 35) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -1144,9 +1144,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(61, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1156,9 +1156,9 @@ sourceFile:../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1168,9 +1168,9 @@ sourceFile:../second/second_part1.ts 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) +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[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1180,9 +1180,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1203,15 +1203,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -1223,29 +1223,29 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>/*@internal*/ var internalC = /** @class */ (function () { 1-> @@ -1253,18 +1253,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(67, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(67, 14) Source(30, 18) + SourceIndex(3) +3 >Emitted(67, 15) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1272,16 +1272,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 37) + 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->Emitted(70, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -1293,10 +1293,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 37) + SourceIndex(3) --- >>>/*@internal*/ function internalfoo() { } 1-> @@ -1307,20 +1307,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(72, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(72, 14) Source(31, 18) + SourceIndex(3) +3 >Emitted(72, 15) Source(31, 19) + SourceIndex(3) +4 >Emitted(72, 24) Source(31, 28) + SourceIndex(3) +5 >Emitted(72, 35) Source(31, 39) + SourceIndex(3) +6 >Emitted(72, 40) Source(31, 43) + SourceIndex(3) +7 >Emitted(72, 41) Source(31, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalNamespace; 1 > @@ -1330,18 +1330,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(73, 14) Source(32, 18) + SourceIndex(3) +3 >Emitted(73, 15) Source(32, 19) + SourceIndex(3) +4 >Emitted(73, 19) Source(32, 29) + SourceIndex(3) +5 >Emitted(73, 36) Source(32, 46) + SourceIndex(3) +6 >Emitted(73, 37) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -1351,21 +1351,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(74, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1373,16 +1373,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 74) + 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->Emitted(78, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1394,10 +1394,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -1409,10 +1409,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -1429,13 +1429,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 76) + SourceIndex(3) --- >>>/*@internal*/ var internalOther; 1 > @@ -1445,18 +1445,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(82, 14) Source(33, 18) + SourceIndex(3) +3 >Emitted(82, 15) Source(33, 19) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 29) + SourceIndex(3) +5 >Emitted(82, 32) Source(33, 42) + SourceIndex(3) +6 >Emitted(82, 33) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -1465,9 +1465,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -1479,10 +1479,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -1492,21 +1492,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1514,16 +1514,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 80) + 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->Emitted(89, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1535,10 +1535,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -1550,10 +1550,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -1574,15 +1574,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -1600,13 +1600,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 82) + SourceIndex(3) --- >>>/*@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -1620,7 +1620,7 @@ sourceFile:../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/*@internal*/ 3 > 4 > import @@ -1630,16 +1630,16 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(94, 14) Source(34, 18) + SourceIndex(3) +3 >Emitted(94, 15) Source(34, 19) + SourceIndex(3) +4 >Emitted(94, 19) Source(34, 26) + SourceIndex(3) +5 >Emitted(94, 33) Source(34, 40) + SourceIndex(3) +6 >Emitted(94, 36) Source(34, 43) + SourceIndex(3) +7 >Emitted(94, 53) Source(34, 60) + SourceIndex(3) +8 >Emitted(94, 54) Source(34, 61) + SourceIndex(3) +9 >Emitted(94, 63) Source(34, 70) + SourceIndex(3) +10>Emitted(94, 64) Source(34, 71) + SourceIndex(3) --- >>>/*@internal*/ var internalConst = 10; 1 > @@ -1651,8 +1651,8 @@ sourceFile:../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/*@internal*/ type internalType = internalC; - > + > /*@internal*/ type internalType = internalC; + > 2 >/*@internal*/ 3 > 4 > const @@ -1660,14 +1660,14 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(95, 14) Source(36, 18) + SourceIndex(3) +3 >Emitted(95, 15) Source(36, 19) + SourceIndex(3) +4 >Emitted(95, 19) Source(36, 25) + SourceIndex(3) +5 >Emitted(95, 32) Source(36, 38) + SourceIndex(3) +6 >Emitted(95, 35) Source(36, 41) + SourceIndex(3) +7 >Emitted(95, 37) Source(36, 43) + SourceIndex(3) +8 >Emitted(95, 38) Source(36, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalEnum; 1 > @@ -1676,16 +1676,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(96, 14) Source(37, 18) + SourceIndex(3) +3 >Emitted(96, 15) Source(37, 19) + SourceIndex(3) +4 >Emitted(96, 19) Source(37, 24) + SourceIndex(3) +5 >Emitted(96, 31) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -1695,9 +1695,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(97, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -1707,9 +1707,9 @@ sourceFile:../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^ @@ -1719,9 +1719,9 @@ sourceFile:../second/second_part1.ts 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) +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["c"] = 2] = "c"; 1->^^^^ @@ -1730,9 +1730,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -1749,13 +1749,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -2538,7 +2538,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -2854,20 +2854,20 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + 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->Emitted(16, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(16, 18) Source(14, 22) + SourceIndex(3) +3 >Emitted(16, 19) Source(14, 23) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -2875,8 +2875,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +1 >Emitted(17, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 40) + SourceIndex(3) --- >>> /*@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -2887,21 +2887,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /*@internal*/ prop: string; - > + > /*@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) +1->Emitted(18, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(18, 18) Source(16, 22) + SourceIndex(3) +3 >Emitted(18, 19) Source(16, 23) + SourceIndex(3) +4 >Emitted(18, 43) Source(16, 29) + SourceIndex(3) +5 >Emitted(18, 46) Source(16, 23) + SourceIndex(3) +6 >Emitted(18, 60) Source(16, 34) + SourceIndex(3) +7 >Emitted(18, 61) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -2909,12 +2909,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(19, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 28) + SourceIndex(3) --- >>> /*@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -2935,15 +2935,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(20, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(20, 22) Source(17, 22) + SourceIndex(3) +3 >Emitted(20, 28) Source(17, 23) + SourceIndex(3) +4 >Emitted(20, 42) Source(17, 33) + SourceIndex(3) +5 >Emitted(20, 49) Source(17, 40) + SourceIndex(3) +6 >Emitted(20, 51) Source(17, 42) + SourceIndex(3) +7 >Emitted(20, 52) Source(17, 43) + SourceIndex(3) +8 >Emitted(20, 53) Source(17, 44) + SourceIndex(3) +9 >Emitted(20, 54) Source(17, 45) + SourceIndex(3) --- >>> /*@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -2954,20 +2954,20 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(21, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(21, 22) Source(18, 22) + SourceIndex(3) +3 >Emitted(21, 28) Source(18, 23) + SourceIndex(3) +4 >Emitted(21, 38) Source(18, 29) + SourceIndex(3) +5 >Emitted(21, 41) Source(18, 40) + SourceIndex(3) +6 >Emitted(21, 45) Source(18, 44) + SourceIndex(3) +7 >Emitted(21, 46) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -2975,17 +2975,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -2997,16 +2997,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -3015,23 +3015,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -3041,9 +3041,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> /*@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -3051,18 +3051,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(29, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(29, 18) Source(21, 22) + SourceIndex(3) +3 >Emitted(29, 19) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -3070,16 +3070,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 41) + 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->Emitted(32, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -3091,10 +3091,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -3106,10 +3106,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 41) + SourceIndex(3) --- >>> /*@internal*/ function foo() { } 1->^^^^ @@ -3120,20 +3120,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(35, 18) Source(22, 22) + SourceIndex(3) +3 >Emitted(35, 19) Source(22, 23) + SourceIndex(3) +4 >Emitted(35, 28) Source(22, 39) + SourceIndex(3) +5 >Emitted(35, 31) Source(22, 42) + SourceIndex(3) +6 >Emitted(35, 36) Source(22, 46) + SourceIndex(3) +7 >Emitted(35, 37) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -3145,10 +3145,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(36, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 47) + SourceIndex(3) --- >>> /*@internal*/ var someNamespace; 1->^^^^ @@ -3158,18 +3158,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(37, 18) Source(23, 22) + SourceIndex(3) +3 >Emitted(37, 19) Source(23, 23) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 40) + SourceIndex(3) +5 >Emitted(37, 36) Source(23, 53) + SourceIndex(3) +6 >Emitted(37, 37) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -3179,21 +3179,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(38, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -3201,16 +3201,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 73) + 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->Emitted(42, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -3222,10 +3222,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -3237,10 +3237,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -3261,15 +3261,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 75) + SourceIndex(3) --- >>> /*@internal*/ var someOther; 1 >^^^^ @@ -3279,18 +3279,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(46, 18) Source(24, 22) + SourceIndex(3) +3 >Emitted(46, 19) Source(24, 23) + SourceIndex(3) +4 >Emitted(46, 23) Source(24, 40) + SourceIndex(3) +5 >Emitted(46, 32) Source(24, 49) + SourceIndex(3) +6 >Emitted(46, 33) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -3299,9 +3299,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -3313,10 +3313,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -3326,21 +3326,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -3348,16 +3348,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 87) + 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->Emitted(53, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -3369,10 +3369,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -3384,10 +3384,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -3408,15 +3408,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -3437,15 +3437,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 89) + SourceIndex(3) --- >>> /*@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -3458,7 +3458,7 @@ sourceFile:../../../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /*@internal*/ 3 > export import 4 > someImport @@ -3467,15 +3467,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(58, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(58, 18) Source(25, 22) + SourceIndex(3) +3 >Emitted(58, 19) Source(25, 37) + SourceIndex(3) +4 >Emitted(58, 37) Source(25, 47) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 50) + SourceIndex(3) +6 >Emitted(58, 53) Source(25, 63) + SourceIndex(3) +7 >Emitted(58, 54) Source(25, 64) + SourceIndex(3) +8 >Emitted(58, 55) Source(25, 65) + SourceIndex(3) +9 >Emitted(58, 56) Source(25, 66) + SourceIndex(3) --- >>> /*@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -3486,21 +3486,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > + > /*@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) +1 >Emitted(59, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(59, 18) Source(27, 22) + SourceIndex(3) +3 >Emitted(59, 19) Source(27, 36) + SourceIndex(3) +4 >Emitted(59, 40) Source(27, 49) + SourceIndex(3) +5 >Emitted(59, 43) Source(27, 52) + SourceIndex(3) +6 >Emitted(59, 45) Source(27, 54) + SourceIndex(3) +7 >Emitted(59, 46) Source(27, 55) + SourceIndex(3) --- >>> /*@internal*/ var internalEnum; 1 >^^^^ @@ -3509,16 +3509,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(60, 18) Source(28, 22) + SourceIndex(3) +3 >Emitted(60, 19) Source(28, 23) + SourceIndex(3) +4 >Emitted(60, 23) Source(28, 35) + SourceIndex(3) +5 >Emitted(60, 35) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -3528,9 +3528,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(61, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -3540,9 +3540,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^^^^^ @@ -3552,9 +3552,9 @@ sourceFile:../../../second/second_part1.ts 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) +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[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -3564,9 +3564,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -3587,15 +3587,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -3607,29 +3607,29 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>/*@internal*/ var internalC = /** @class */ (function () { 1-> @@ -3637,18 +3637,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(67, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(67, 14) Source(30, 18) + SourceIndex(3) +3 >Emitted(67, 15) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -3656,16 +3656,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 37) + 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->Emitted(70, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -3677,10 +3677,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 37) + SourceIndex(3) --- >>>/*@internal*/ function internalfoo() { } 1-> @@ -3691,20 +3691,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(72, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(72, 14) Source(31, 18) + SourceIndex(3) +3 >Emitted(72, 15) Source(31, 19) + SourceIndex(3) +4 >Emitted(72, 24) Source(31, 28) + SourceIndex(3) +5 >Emitted(72, 35) Source(31, 39) + SourceIndex(3) +6 >Emitted(72, 40) Source(31, 43) + SourceIndex(3) +7 >Emitted(72, 41) Source(31, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalNamespace; 1 > @@ -3714,18 +3714,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(73, 14) Source(32, 18) + SourceIndex(3) +3 >Emitted(73, 15) Source(32, 19) + SourceIndex(3) +4 >Emitted(73, 19) Source(32, 29) + SourceIndex(3) +5 >Emitted(73, 36) Source(32, 46) + SourceIndex(3) +6 >Emitted(73, 37) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -3735,21 +3735,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(74, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -3757,16 +3757,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 74) + 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->Emitted(78, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -3778,10 +3778,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -3793,10 +3793,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -3813,13 +3813,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 76) + SourceIndex(3) --- >>>/*@internal*/ var internalOther; 1 > @@ -3829,18 +3829,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(82, 14) Source(33, 18) + SourceIndex(3) +3 >Emitted(82, 15) Source(33, 19) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 29) + SourceIndex(3) +5 >Emitted(82, 32) Source(33, 42) + SourceIndex(3) +6 >Emitted(82, 33) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -3849,9 +3849,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -3863,10 +3863,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -3876,21 +3876,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -3898,16 +3898,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 80) + 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->Emitted(89, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -3919,10 +3919,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -3934,10 +3934,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -3958,15 +3958,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -3984,13 +3984,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 82) + SourceIndex(3) --- >>>/*@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -4004,7 +4004,7 @@ sourceFile:../../../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/*@internal*/ 3 > 4 > import @@ -4014,16 +4014,16 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(94, 14) Source(34, 18) + SourceIndex(3) +3 >Emitted(94, 15) Source(34, 19) + SourceIndex(3) +4 >Emitted(94, 19) Source(34, 26) + SourceIndex(3) +5 >Emitted(94, 33) Source(34, 40) + SourceIndex(3) +6 >Emitted(94, 36) Source(34, 43) + SourceIndex(3) +7 >Emitted(94, 53) Source(34, 60) + SourceIndex(3) +8 >Emitted(94, 54) Source(34, 61) + SourceIndex(3) +9 >Emitted(94, 63) Source(34, 70) + SourceIndex(3) +10>Emitted(94, 64) Source(34, 71) + SourceIndex(3) --- >>>/*@internal*/ var internalConst = 10; 1 > @@ -4035,8 +4035,8 @@ sourceFile:../../../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/*@internal*/ type internalType = internalC; - > + > /*@internal*/ type internalType = internalC; + > 2 >/*@internal*/ 3 > 4 > const @@ -4044,14 +4044,14 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(95, 14) Source(36, 18) + SourceIndex(3) +3 >Emitted(95, 15) Source(36, 19) + SourceIndex(3) +4 >Emitted(95, 19) Source(36, 25) + SourceIndex(3) +5 >Emitted(95, 32) Source(36, 38) + SourceIndex(3) +6 >Emitted(95, 35) Source(36, 41) + SourceIndex(3) +7 >Emitted(95, 37) Source(36, 43) + SourceIndex(3) +8 >Emitted(95, 38) Source(36, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalEnum; 1 > @@ -4060,16 +4060,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(96, 14) Source(37, 18) + SourceIndex(3) +3 >Emitted(96, 15) Source(37, 19) + SourceIndex(3) +4 >Emitted(96, 19) Source(37, 24) + SourceIndex(3) +5 >Emitted(96, 31) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -4079,9 +4079,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(97, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -4091,9 +4091,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^ @@ -4103,9 +4103,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["c"] = 2] = "c"; 1->^^^^ @@ -4114,9 +4114,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -4133,13 +4133,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 a701eb86ea86f..9711d7145be22 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 @@ -407,7 +407,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -723,20 +723,20 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + 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->Emitted(16, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(16, 18) Source(14, 22) + SourceIndex(3) +3 >Emitted(16, 19) Source(14, 23) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -744,8 +744,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +1 >Emitted(17, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 40) + SourceIndex(3) --- >>> /*@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -756,21 +756,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /*@internal*/ prop: string; - > + > /*@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) +1->Emitted(18, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(18, 18) Source(16, 22) + SourceIndex(3) +3 >Emitted(18, 19) Source(16, 23) + SourceIndex(3) +4 >Emitted(18, 43) Source(16, 29) + SourceIndex(3) +5 >Emitted(18, 46) Source(16, 23) + SourceIndex(3) +6 >Emitted(18, 60) Source(16, 34) + SourceIndex(3) +7 >Emitted(18, 61) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -778,12 +778,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(19, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 28) + SourceIndex(3) --- >>> /*@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -804,15 +804,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(20, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(20, 22) Source(17, 22) + SourceIndex(3) +3 >Emitted(20, 28) Source(17, 23) + SourceIndex(3) +4 >Emitted(20, 42) Source(17, 33) + SourceIndex(3) +5 >Emitted(20, 49) Source(17, 40) + SourceIndex(3) +6 >Emitted(20, 51) Source(17, 42) + SourceIndex(3) +7 >Emitted(20, 52) Source(17, 43) + SourceIndex(3) +8 >Emitted(20, 53) Source(17, 44) + SourceIndex(3) +9 >Emitted(20, 54) Source(17, 45) + SourceIndex(3) --- >>> /*@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -823,20 +823,20 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(21, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(21, 22) Source(18, 22) + SourceIndex(3) +3 >Emitted(21, 28) Source(18, 23) + SourceIndex(3) +4 >Emitted(21, 38) Source(18, 29) + SourceIndex(3) +5 >Emitted(21, 41) Source(18, 40) + SourceIndex(3) +6 >Emitted(21, 45) Source(18, 44) + SourceIndex(3) +7 >Emitted(21, 46) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -844,17 +844,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -866,16 +866,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -884,23 +884,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -910,9 +910,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> /*@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -920,18 +920,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(29, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(29, 18) Source(21, 22) + SourceIndex(3) +3 >Emitted(29, 19) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -939,16 +939,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 41) + 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->Emitted(32, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -960,10 +960,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -975,10 +975,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 41) + SourceIndex(3) --- >>> /*@internal*/ function foo() { } 1->^^^^ @@ -989,20 +989,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(35, 18) Source(22, 22) + SourceIndex(3) +3 >Emitted(35, 19) Source(22, 23) + SourceIndex(3) +4 >Emitted(35, 28) Source(22, 39) + SourceIndex(3) +5 >Emitted(35, 31) Source(22, 42) + SourceIndex(3) +6 >Emitted(35, 36) Source(22, 46) + SourceIndex(3) +7 >Emitted(35, 37) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -1014,10 +1014,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(36, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 47) + SourceIndex(3) --- >>> /*@internal*/ var someNamespace; 1->^^^^ @@ -1027,18 +1027,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(37, 18) Source(23, 22) + SourceIndex(3) +3 >Emitted(37, 19) Source(23, 23) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 40) + SourceIndex(3) +5 >Emitted(37, 36) Source(23, 53) + SourceIndex(3) +6 >Emitted(37, 37) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -1048,21 +1048,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(38, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1070,16 +1070,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 73) + 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->Emitted(42, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1091,10 +1091,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1106,10 +1106,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1130,15 +1130,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 75) + SourceIndex(3) --- >>> /*@internal*/ var someOther; 1 >^^^^ @@ -1148,18 +1148,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(46, 18) Source(24, 22) + SourceIndex(3) +3 >Emitted(46, 19) Source(24, 23) + SourceIndex(3) +4 >Emitted(46, 23) Source(24, 40) + SourceIndex(3) +5 >Emitted(46, 32) Source(24, 49) + SourceIndex(3) +6 >Emitted(46, 33) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -1168,9 +1168,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -1182,10 +1182,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -1195,21 +1195,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1217,16 +1217,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 87) + 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->Emitted(53, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1238,10 +1238,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1253,10 +1253,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1277,15 +1277,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1306,15 +1306,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 89) + SourceIndex(3) --- >>> /*@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1327,7 +1327,7 @@ sourceFile:../../../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /*@internal*/ 3 > export import 4 > someImport @@ -1336,15 +1336,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(58, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(58, 18) Source(25, 22) + SourceIndex(3) +3 >Emitted(58, 19) Source(25, 37) + SourceIndex(3) +4 >Emitted(58, 37) Source(25, 47) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 50) + SourceIndex(3) +6 >Emitted(58, 53) Source(25, 63) + SourceIndex(3) +7 >Emitted(58, 54) Source(25, 64) + SourceIndex(3) +8 >Emitted(58, 55) Source(25, 65) + SourceIndex(3) +9 >Emitted(58, 56) Source(25, 66) + SourceIndex(3) --- >>> /*@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -1355,21 +1355,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > + > /*@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) +1 >Emitted(59, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(59, 18) Source(27, 22) + SourceIndex(3) +3 >Emitted(59, 19) Source(27, 36) + SourceIndex(3) +4 >Emitted(59, 40) Source(27, 49) + SourceIndex(3) +5 >Emitted(59, 43) Source(27, 52) + SourceIndex(3) +6 >Emitted(59, 45) Source(27, 54) + SourceIndex(3) +7 >Emitted(59, 46) Source(27, 55) + SourceIndex(3) --- >>> /*@internal*/ var internalEnum; 1 >^^^^ @@ -1378,16 +1378,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(60, 18) Source(28, 22) + SourceIndex(3) +3 >Emitted(60, 19) Source(28, 23) + SourceIndex(3) +4 >Emitted(60, 23) Source(28, 35) + SourceIndex(3) +5 >Emitted(60, 35) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -1397,9 +1397,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(61, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1409,9 +1409,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1421,9 +1421,9 @@ sourceFile:../../../second/second_part1.ts 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) +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[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1433,9 +1433,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1456,15 +1456,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -1476,29 +1476,29 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>/*@internal*/ var internalC = /** @class */ (function () { 1-> @@ -1506,18 +1506,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(67, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(67, 14) Source(30, 18) + SourceIndex(3) +3 >Emitted(67, 15) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1525,16 +1525,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 37) + 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->Emitted(70, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -1546,10 +1546,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 37) + SourceIndex(3) --- >>>/*@internal*/ function internalfoo() { } 1-> @@ -1560,20 +1560,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(72, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(72, 14) Source(31, 18) + SourceIndex(3) +3 >Emitted(72, 15) Source(31, 19) + SourceIndex(3) +4 >Emitted(72, 24) Source(31, 28) + SourceIndex(3) +5 >Emitted(72, 35) Source(31, 39) + SourceIndex(3) +6 >Emitted(72, 40) Source(31, 43) + SourceIndex(3) +7 >Emitted(72, 41) Source(31, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalNamespace; 1 > @@ -1583,18 +1583,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(73, 14) Source(32, 18) + SourceIndex(3) +3 >Emitted(73, 15) Source(32, 19) + SourceIndex(3) +4 >Emitted(73, 19) Source(32, 29) + SourceIndex(3) +5 >Emitted(73, 36) Source(32, 46) + SourceIndex(3) +6 >Emitted(73, 37) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -1604,21 +1604,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(74, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1626,16 +1626,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 74) + 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->Emitted(78, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1647,10 +1647,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -1662,10 +1662,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -1682,13 +1682,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 76) + SourceIndex(3) --- >>>/*@internal*/ var internalOther; 1 > @@ -1698,18 +1698,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(82, 14) Source(33, 18) + SourceIndex(3) +3 >Emitted(82, 15) Source(33, 19) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 29) + SourceIndex(3) +5 >Emitted(82, 32) Source(33, 42) + SourceIndex(3) +6 >Emitted(82, 33) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -1718,9 +1718,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -1732,10 +1732,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -1745,21 +1745,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1767,16 +1767,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 80) + 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->Emitted(89, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1788,10 +1788,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -1803,10 +1803,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -1827,15 +1827,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -1853,13 +1853,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 82) + SourceIndex(3) --- >>>/*@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -1873,7 +1873,7 @@ sourceFile:../../../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/*@internal*/ 3 > 4 > import @@ -1883,16 +1883,16 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(94, 14) Source(34, 18) + SourceIndex(3) +3 >Emitted(94, 15) Source(34, 19) + SourceIndex(3) +4 >Emitted(94, 19) Source(34, 26) + SourceIndex(3) +5 >Emitted(94, 33) Source(34, 40) + SourceIndex(3) +6 >Emitted(94, 36) Source(34, 43) + SourceIndex(3) +7 >Emitted(94, 53) Source(34, 60) + SourceIndex(3) +8 >Emitted(94, 54) Source(34, 61) + SourceIndex(3) +9 >Emitted(94, 63) Source(34, 70) + SourceIndex(3) +10>Emitted(94, 64) Source(34, 71) + SourceIndex(3) --- >>>/*@internal*/ var internalConst = 10; 1 > @@ -1904,8 +1904,8 @@ sourceFile:../../../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/*@internal*/ type internalType = internalC; - > + > /*@internal*/ type internalType = internalC; + > 2 >/*@internal*/ 3 > 4 > const @@ -1913,14 +1913,14 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(95, 14) Source(36, 18) + SourceIndex(3) +3 >Emitted(95, 15) Source(36, 19) + SourceIndex(3) +4 >Emitted(95, 19) Source(36, 25) + SourceIndex(3) +5 >Emitted(95, 32) Source(36, 38) + SourceIndex(3) +6 >Emitted(95, 35) Source(36, 41) + SourceIndex(3) +7 >Emitted(95, 37) Source(36, 43) + SourceIndex(3) +8 >Emitted(95, 38) Source(36, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalEnum; 1 > @@ -1929,16 +1929,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(96, 14) Source(37, 18) + SourceIndex(3) +3 >Emitted(96, 15) Source(37, 19) + SourceIndex(3) +4 >Emitted(96, 19) Source(37, 24) + SourceIndex(3) +5 >Emitted(96, 31) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -1948,9 +1948,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(97, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -1960,9 +1960,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^ @@ -1972,9 +1972,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["c"] = 2] = "c"; 1->^^^^ @@ -1983,9 +1983,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2002,13 +2002,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 e6dcbd14cbc63..47143540ccbef 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 @@ -429,7 +429,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -745,15 +745,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(15, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(16, 5) Source(14, 23) + SourceIndex(3) --- >>> } 1->^^^^ @@ -761,8 +761,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +1->Emitted(17, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 40) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -772,29 +772,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(18, 5) Source(16, 23) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 29) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 23) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 34) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(19, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 28) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -811,13 +811,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(20, 14) Source(17, 23) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 33) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 40) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 42) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 43) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 44) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 45) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -826,16 +826,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(21, 14) Source(18, 23) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 29) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 40) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 44) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -843,17 +843,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(24, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(25, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -865,16 +865,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -883,23 +883,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -909,22 +909,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(29, 5) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -932,16 +932,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 41) + 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->Emitted(32, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -953,10 +953,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(33, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -968,10 +968,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 41) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -981,16 +981,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(35, 5) Source(22, 23) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 39) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 42) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 46) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -1002,10 +1002,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(36, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 47) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -1014,14 +1014,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 53) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -1031,21 +1031,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1053,16 +1053,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 73) + 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->Emitted(42, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1074,10 +1074,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(43, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1089,10 +1089,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1113,15 +1113,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(45, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 75) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -1130,14 +1130,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 49) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -1146,9 +1146,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(47, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -1160,10 +1160,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -1173,21 +1173,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1195,16 +1195,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 87) + 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->Emitted(53, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1216,10 +1216,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(54, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1231,10 +1231,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1255,15 +1255,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(56, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1284,15 +1284,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 89) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1303,20 +1303,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(58, 5) Source(25, 37) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 47) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 50) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 63) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 64) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 65) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 66) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -1325,17 +1325,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(59, 5) Source(27, 36) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 49) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 52) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 54) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 55) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -1343,12 +1343,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -1358,9 +1358,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1370,9 +1370,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1382,9 +1382,9 @@ sourceFile:../../../second/second_part1.ts 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) +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[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1394,9 +1394,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1417,15 +1417,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(65, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -1437,42 +1437,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) + > /*@internal*/ +1->Emitted(67, 1) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1480,16 +1480,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 37) + 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->Emitted(70, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -1501,10 +1501,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(71, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 37) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -1513,16 +1513,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(72, 1) Source(31, 19) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 28) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 39) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 43) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 44) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -1531,14 +1531,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 46) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -1548,21 +1548,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1570,16 +1570,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 74) + 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->Emitted(78, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1591,10 +1591,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(79, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -1606,10 +1606,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -1626,13 +1626,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(81, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 76) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -1641,14 +1641,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 42) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -1657,9 +1657,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(83, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -1671,10 +1671,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -1684,21 +1684,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1706,16 +1706,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 80) + 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->Emitted(89, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1727,10 +1727,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(90, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -1742,10 +1742,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -1766,15 +1766,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(92, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -1792,13 +1792,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(93, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 82) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -1810,7 +1810,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -1818,14 +1818,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(94, 1) Source(34, 19) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 26) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 40) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 43) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 60) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 61) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 70) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 71) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -1835,19 +1835,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(95, 1) Source(36, 19) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 25) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 38) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 41) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 43) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 44) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -1855,12 +1855,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -1870,9 +1870,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -1882,9 +1882,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["b"] = 1] = "b"; 1->^^^^ @@ -1894,9 +1894,9 @@ sourceFile:../../../second/second_part1.ts 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) +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["c"] = 2] = "c"; 1->^^^^ @@ -1905,9 +1905,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(100, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -1924,13 +1924,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(101, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 acec88a3aff46..1f63b5954265f 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 @@ -42,7 +42,7 @@ exitCode:: ExitStatus.Success //// [/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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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"} +{"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;AAEG,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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;ACpChD,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -231,12 +231,12 @@ sourceFile:../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + SourceIndex(2) --- >>> constructor(); >>> prop: string; @@ -247,27 +247,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ + > /**@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) +1 >Emitted(15, 5) Source(15, 24) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 28) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 30) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 36) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 37) + SourceIndex(2) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@internal*/ 2 > method -1->Emitted(16, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 26) + SourceIndex(2) +1->Emitted(16, 5) Source(16, 24) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 30) + SourceIndex(2) --- >>> get c(): number; 1->^^^^ @@ -278,19 +278,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /**@internal*/ + > /**@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /**@internal*/ set c(val: + > /**@internal*/ set c(val: 5 > number 6 > -1->Emitted(17, 5) Source(17, 20) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 24) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 25) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 31) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 37) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 42) + SourceIndex(2) +1->Emitted(17, 5) Source(17, 24) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 28) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 29) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 35) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 41) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 46) + SourceIndex(2) --- >>> set c(val: number); 1->^^^^ @@ -301,27 +301,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(18, 5) Source(18, 20) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 24) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 25) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 26) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 31) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 37) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 42) + SourceIndex(2) +1->Emitted(18, 5) Source(18, 24) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 28) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 29) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 30) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 35) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 41) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 46) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) + > } +1 >Emitted(19, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -329,32 +329,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +1->Emitted(20, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 23) + SourceIndex(2) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /**@internal*/ + > /**@internal*/ 2 > export class 3 > C -1 >Emitted(21, 5) Source(21, 20) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 33) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 34) + SourceIndex(2) +1 >Emitted(21, 5) Source(21, 24) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 37) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 38) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(22, 6) Source(21, 38) + SourceIndex(2) +1 >Emitted(22, 6) Source(21, 42) + SourceIndex(2) --- >>> function foo(): void; 1->^^^^ @@ -363,14 +363,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /**@internal*/ + > /**@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(23, 5) Source(22, 20) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 36) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 39) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 44) + SourceIndex(2) +1->Emitted(23, 5) Source(22, 24) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 40) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 43) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 48) + SourceIndex(2) --- >>> namespace someNamespace { 1->^^^^ @@ -378,14 +378,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(24, 5) Source(23, 20) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 37) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 50) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 51) + SourceIndex(2) +1->Emitted(24, 5) Source(23, 24) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 41) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 54) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 55) + SourceIndex(2) --- >>> class C { 1 >^^^^^^^^ @@ -394,20 +394,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(25, 9) Source(23, 53) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 66) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 67) + SourceIndex(2) +1 >Emitted(25, 9) Source(23, 57) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 70) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 71) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(26, 10) Source(23, 70) + SourceIndex(2) +1 >Emitted(26, 10) Source(23, 74) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(27, 6) Source(23, 72) + SourceIndex(2) +1 >Emitted(27, 6) Source(23, 76) + SourceIndex(2) --- >>> namespace someOther.something { 1->^^^^ @@ -417,18 +417,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(28, 5) Source(24, 20) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 37) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 46) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 47) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 56) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 57) + SourceIndex(2) +1->Emitted(28, 5) Source(24, 24) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 41) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 50) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 51) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 60) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 61) + SourceIndex(2) --- >>> class someClass { 1 >^^^^^^^^ @@ -437,20 +437,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(29, 9) Source(24, 59) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 72) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 81) + SourceIndex(2) +1 >Emitted(29, 9) Source(24, 63) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 76) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 85) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(30, 10) Source(24, 84) + SourceIndex(2) +1 >Emitted(30, 10) Source(24, 88) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(31, 6) Source(24, 86) + SourceIndex(2) +1 >Emitted(31, 6) Source(24, 90) + SourceIndex(2) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -463,7 +463,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > export 3 > import 4 > someImport @@ -472,15 +472,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(32, 5) Source(25, 20) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 26) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 34) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 44) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 47) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 60) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 61) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 62) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 63) + SourceIndex(2) +1->Emitted(32, 5) Source(25, 24) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 30) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 38) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 48) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 51) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 64) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 65) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 66) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 67) + SourceIndex(2) --- >>> type internalType = internalC; 1 >^^^^ @@ -490,18 +490,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /**@internal*/ + > /**@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(33, 5) Source(26, 20) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 32) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 44) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 47) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 56) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 57) + SourceIndex(2) +1 >Emitted(33, 5) Source(26, 24) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 36) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 48) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 51) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 60) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 61) + SourceIndex(2) --- >>> const internalConst = 10; 1 >^^^^ @@ -510,28 +510,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /**@internal*/ export + > /**@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(34, 5) Source(27, 27) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 33) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 46) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 51) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 52) + SourceIndex(2) +1 >Emitted(34, 5) Source(27, 31) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 37) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 50) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 55) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 56) + SourceIndex(2) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /**@internal*/ + > /**@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(35, 5) Source(28, 20) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 32) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 44) + SourceIndex(2) +1 >Emitted(35, 5) Source(28, 24) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 36) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 48) + SourceIndex(2) --- >>> a = 0, 1 >^^^^^^^^ @@ -541,9 +541,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(36, 9) Source(28, 47) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 48) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 48) + SourceIndex(2) +1 >Emitted(36, 9) Source(28, 51) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 52) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 52) + SourceIndex(2) --- >>> b = 1, 1->^^^^^^^^ @@ -553,9 +553,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(37, 9) Source(28, 50) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 51) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 51) + SourceIndex(2) +1->Emitted(37, 9) Source(28, 54) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 55) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 55) + SourceIndex(2) --- >>> c = 2 1->^^^^^^^^ @@ -564,39 +564,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(38, 9) Source(28, 53) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 54) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 54) + SourceIndex(2) +1->Emitted(38, 9) Source(28, 57) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 58) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 58) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(39, 6) Source(28, 56) + SourceIndex(2) +1 >Emitted(39, 6) Source(28, 60) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) + > } +1 >Emitted(40, 2) Source(29, 6) + SourceIndex(2) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >class 3 > internalC -1->Emitted(41, 1) Source(30, 16) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 22) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 31) + SourceIndex(2) +1->Emitted(41, 1) Source(30, 20) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 26) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 35) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(42, 2) Source(30, 34) + SourceIndex(2) +1 >Emitted(42, 2) Source(30, 38) + SourceIndex(2) --- >>>declare function internalfoo(): void; 1-> @@ -605,14 +605,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/**@internal*/ + > /**@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(43, 1) Source(31, 16) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 25) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 36) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 41) + SourceIndex(2) +1->Emitted(43, 1) Source(31, 20) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 29) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 40) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 45) + SourceIndex(2) --- >>>declare namespace internalNamespace { 1-> @@ -620,14 +620,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(44, 1) Source(32, 16) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 26) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 43) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 44) + SourceIndex(2) +1->Emitted(44, 1) Source(32, 20) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 30) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 47) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 48) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -636,20 +636,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(45, 5) Source(32, 46) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 59) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 68) + SourceIndex(2) +1 >Emitted(45, 5) Source(32, 50) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 63) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 72) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(46, 6) Source(32, 71) + SourceIndex(2) +1 >Emitted(46, 6) Source(32, 75) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(47, 2) Source(32, 73) + SourceIndex(2) +1 >Emitted(47, 2) Source(32, 77) + SourceIndex(2) --- >>>declare namespace internalOther.something { 1-> @@ -659,18 +659,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(48, 1) Source(33, 16) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 26) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 39) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 40) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 49) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 50) + SourceIndex(2) +1->Emitted(48, 1) Source(33, 20) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 30) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 43) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 44) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 53) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 54) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -679,20 +679,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(49, 5) Source(33, 52) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 65) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 74) + SourceIndex(2) +1 >Emitted(49, 5) Source(33, 56) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 69) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 78) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(50, 6) Source(33, 77) + SourceIndex(2) +1 >Emitted(50, 6) Source(33, 81) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(33, 79) + SourceIndex(2) +1 >Emitted(51, 2) Source(33, 83) + SourceIndex(2) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -704,7 +704,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -712,14 +712,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(52, 1) Source(34, 16) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 23) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 37) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 40) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 57) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 58) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 67) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 68) + SourceIndex(2) +1->Emitted(52, 1) Source(34, 20) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 27) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 41) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 44) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 61) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 62) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 71) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 72) + SourceIndex(2) --- >>>declare type internalType = internalC; 1 > @@ -729,18 +729,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/**@internal*/ + > /**@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(53, 1) Source(35, 16) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 21) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 33) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 36) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 45) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 46) + SourceIndex(2) +1 >Emitted(53, 1) Source(35, 20) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 25) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 37) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 40) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 49) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 50) + SourceIndex(2) --- >>>declare const internalConst = 10; 1 > @@ -750,30 +750,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/**@internal*/ + > /**@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 16) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 16) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 22) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 35) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 40) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 41) + SourceIndex(2) +1 >Emitted(54, 1) Source(36, 20) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 20) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 26) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 39) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 44) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 45) + SourceIndex(2) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/**@internal*/ + > /**@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(55, 1) Source(37, 16) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 21) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 33) + SourceIndex(2) +1 >Emitted(55, 1) Source(37, 20) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 25) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 37) + SourceIndex(2) --- >>> a = 0, 1 >^^^^ @@ -783,9 +783,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(56, 5) Source(37, 36) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 37) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 37) + SourceIndex(2) +1 >Emitted(56, 5) Source(37, 40) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 41) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 41) + SourceIndex(2) --- >>> b = 1, 1->^^^^ @@ -795,9 +795,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(57, 5) Source(37, 39) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 40) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 40) + SourceIndex(2) +1->Emitted(57, 5) Source(37, 43) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 44) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 44) + SourceIndex(2) --- >>> c = 2 1->^^^^ @@ -806,15 +806,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(58, 5) Source(37, 42) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 43) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 43) + SourceIndex(2) +1->Emitted(58, 5) Source(37, 46) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 47) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 47) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(2) +1 >Emitted(59, 2) Source(37, 49) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1510,7 +1510,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1699,24 +1699,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(14, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -1724,29 +1724,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(15, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 23) + 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) + > /**@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts 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 10f63b9eb0935..05eb33a77ea91 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 @@ -400,7 +400,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -589,24 +589,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(14, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -614,29 +614,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(15, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 23) + 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) + > /**@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts 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 dca90f7005e81..268bc7769ae7f 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 @@ -64,7 +64,7 @@ readFiles:: { } //// [/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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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"} +{"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;AAEG,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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;ACpC/C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -253,12 +253,12 @@ sourceFile:../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + SourceIndex(2) --- >>> constructor(); >>> prop: string; @@ -269,27 +269,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ + > /*@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) +1 >Emitted(15, 5) Source(15, 23) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 27) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 29) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 35) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 36) + SourceIndex(2) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +1->Emitted(16, 5) Source(16, 23) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 29) + SourceIndex(2) --- >>> get c(): number; 1->^^^^ @@ -300,19 +300,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /*@internal*/ + > /*@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /*@internal*/ set c(val: + > /*@internal*/ set c(val: 5 > number 6 > -1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) +1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 27) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 28) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 34) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 40) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 45) + SourceIndex(2) --- >>> set c(val: number); 1->^^^^ @@ -323,27 +323,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) +1->Emitted(18, 5) Source(18, 23) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 27) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 28) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 29) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 34) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 40) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 45) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) + > } +1 >Emitted(19, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -351,32 +351,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +1->Emitted(20, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 23) + SourceIndex(2) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /*@internal*/ + > /*@internal*/ 2 > export class 3 > C -1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) +1 >Emitted(21, 5) Source(21, 23) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 36) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 37) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) +1 >Emitted(22, 6) Source(21, 41) + SourceIndex(2) --- >>> function foo(): void; 1->^^^^ @@ -385,14 +385,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) +1->Emitted(23, 5) Source(22, 23) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 39) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 42) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 47) + SourceIndex(2) --- >>> namespace someNamespace { 1->^^^^ @@ -400,14 +400,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) +1->Emitted(24, 5) Source(23, 23) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 40) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 53) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 54) + SourceIndex(2) --- >>> class C { 1 >^^^^^^^^ @@ -416,20 +416,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) +1 >Emitted(25, 9) Source(23, 56) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 69) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 70) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) +1 >Emitted(26, 10) Source(23, 73) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) +1 >Emitted(27, 6) Source(23, 75) + SourceIndex(2) --- >>> namespace someOther.something { 1->^^^^ @@ -439,18 +439,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) +1->Emitted(28, 5) Source(24, 23) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 40) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 49) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 50) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 59) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 60) + SourceIndex(2) --- >>> class someClass { 1 >^^^^^^^^ @@ -459,20 +459,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) +1 >Emitted(29, 9) Source(24, 62) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 75) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 84) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) +1 >Emitted(30, 10) Source(24, 87) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) +1 >Emitted(31, 6) Source(24, 89) + SourceIndex(2) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -485,7 +485,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export 3 > import 4 > someImport @@ -494,15 +494,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(32, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) +1->Emitted(32, 5) Source(25, 23) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 29) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 37) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 47) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 50) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 63) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 64) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 65) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 66) + SourceIndex(2) --- >>> type internalType = internalC; 1 >^^^^ @@ -512,18 +512,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) +1 >Emitted(33, 5) Source(26, 23) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 35) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 47) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 50) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 59) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 60) + SourceIndex(2) --- >>> const internalConst = 10; 1 >^^^^ @@ -532,28 +532,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /*@internal*/ export + > /*@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) +1 >Emitted(34, 5) Source(27, 30) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 36) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 49) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 54) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 55) + SourceIndex(2) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) +1 >Emitted(35, 5) Source(28, 23) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 35) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 47) + SourceIndex(2) --- >>> a = 0, 1 >^^^^^^^^ @@ -563,9 +563,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^^^^^ @@ -575,9 +575,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^^^^^ @@ -586,39 +586,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) +1->Emitted(38, 9) Source(28, 56) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 57) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 57) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) +1 >Emitted(39, 6) Source(28, 59) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) + > } +1 >Emitted(40, 2) Source(29, 6) + SourceIndex(2) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >class 3 > internalC -1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) +1->Emitted(41, 1) Source(30, 19) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 25) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 34) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) +1 >Emitted(42, 2) Source(30, 37) + SourceIndex(2) --- >>>declare function internalfoo(): void; 1-> @@ -627,14 +627,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/*@internal*/ + > /*@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) +1->Emitted(43, 1) Source(31, 19) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 28) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 39) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 44) + SourceIndex(2) --- >>>declare namespace internalNamespace { 1-> @@ -642,14 +642,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) +1->Emitted(44, 1) Source(32, 19) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 29) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 46) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 47) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -658,20 +658,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) +1 >Emitted(45, 5) Source(32, 49) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 62) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 71) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) +1 >Emitted(46, 6) Source(32, 74) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) +1 >Emitted(47, 2) Source(32, 76) + SourceIndex(2) --- >>>declare namespace internalOther.something { 1-> @@ -681,18 +681,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) +1->Emitted(48, 1) Source(33, 19) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 29) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 42) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 43) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 52) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 53) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -701,20 +701,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) +1 >Emitted(49, 5) Source(33, 55) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 68) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 77) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) +1 >Emitted(50, 6) Source(33, 80) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) +1 >Emitted(51, 2) Source(33, 82) + SourceIndex(2) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -726,7 +726,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -734,14 +734,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) +1->Emitted(52, 1) Source(34, 19) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 26) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 40) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 43) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 60) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 61) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 70) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 71) + SourceIndex(2) --- >>>declare type internalType = internalC; 1 > @@ -751,18 +751,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +1 >Emitted(53, 1) Source(35, 19) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 24) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 36) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 39) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 48) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 49) + SourceIndex(2) --- >>>declare const internalConst = 10; 1 > @@ -772,30 +772,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) +1 >Emitted(54, 1) Source(36, 19) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 19) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 25) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 38) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 43) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 44) + SourceIndex(2) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) +1 >Emitted(55, 1) Source(37, 19) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 24) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 36) + SourceIndex(2) --- >>> a = 0, 1 >^^^^ @@ -805,9 +805,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^ @@ -817,9 +817,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^ @@ -828,15 +828,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) +1->Emitted(58, 5) Source(37, 45) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 46) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 46) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) +1 >Emitted(59, 2) Source(37, 48) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1532,7 +1532,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1721,24 +1721,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(14, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -1746,29 +1746,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(15, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts 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 b60a84801ae04..ed47d593d6eb7 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 @@ -42,7 +42,7 @@ exitCode:: ExitStatus.Success //// [/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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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"} +{"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;AAEG,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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;ACpC/C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -231,12 +231,12 @@ sourceFile:../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + SourceIndex(2) --- >>> constructor(); >>> prop: string; @@ -247,27 +247,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ + > /*@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) +1 >Emitted(15, 5) Source(15, 23) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 27) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 29) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 35) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 36) + SourceIndex(2) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +1->Emitted(16, 5) Source(16, 23) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 29) + SourceIndex(2) --- >>> get c(): number; 1->^^^^ @@ -278,19 +278,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /*@internal*/ + > /*@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /*@internal*/ set c(val: + > /*@internal*/ set c(val: 5 > number 6 > -1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) +1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 27) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 28) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 34) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 40) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 45) + SourceIndex(2) --- >>> set c(val: number); 1->^^^^ @@ -301,27 +301,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) +1->Emitted(18, 5) Source(18, 23) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 27) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 28) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 29) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 34) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 40) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 45) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) + > } +1 >Emitted(19, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -329,32 +329,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +1->Emitted(20, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 23) + SourceIndex(2) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /*@internal*/ + > /*@internal*/ 2 > export class 3 > C -1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) +1 >Emitted(21, 5) Source(21, 23) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 36) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 37) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) +1 >Emitted(22, 6) Source(21, 41) + SourceIndex(2) --- >>> function foo(): void; 1->^^^^ @@ -363,14 +363,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) +1->Emitted(23, 5) Source(22, 23) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 39) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 42) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 47) + SourceIndex(2) --- >>> namespace someNamespace { 1->^^^^ @@ -378,14 +378,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) +1->Emitted(24, 5) Source(23, 23) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 40) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 53) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 54) + SourceIndex(2) --- >>> class C { 1 >^^^^^^^^ @@ -394,20 +394,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) +1 >Emitted(25, 9) Source(23, 56) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 69) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 70) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) +1 >Emitted(26, 10) Source(23, 73) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) +1 >Emitted(27, 6) Source(23, 75) + SourceIndex(2) --- >>> namespace someOther.something { 1->^^^^ @@ -417,18 +417,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) +1->Emitted(28, 5) Source(24, 23) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 40) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 49) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 50) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 59) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 60) + SourceIndex(2) --- >>> class someClass { 1 >^^^^^^^^ @@ -437,20 +437,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) +1 >Emitted(29, 9) Source(24, 62) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 75) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 84) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) +1 >Emitted(30, 10) Source(24, 87) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) +1 >Emitted(31, 6) Source(24, 89) + SourceIndex(2) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -463,7 +463,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export 3 > import 4 > someImport @@ -472,15 +472,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(32, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) +1->Emitted(32, 5) Source(25, 23) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 29) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 37) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 47) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 50) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 63) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 64) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 65) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 66) + SourceIndex(2) --- >>> type internalType = internalC; 1 >^^^^ @@ -490,18 +490,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) +1 >Emitted(33, 5) Source(26, 23) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 35) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 47) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 50) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 59) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 60) + SourceIndex(2) --- >>> const internalConst = 10; 1 >^^^^ @@ -510,28 +510,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /*@internal*/ export + > /*@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) +1 >Emitted(34, 5) Source(27, 30) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 36) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 49) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 54) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 55) + SourceIndex(2) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) +1 >Emitted(35, 5) Source(28, 23) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 35) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 47) + SourceIndex(2) --- >>> a = 0, 1 >^^^^^^^^ @@ -541,9 +541,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^^^^^ @@ -553,9 +553,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^^^^^ @@ -564,39 +564,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) +1->Emitted(38, 9) Source(28, 56) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 57) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 57) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) +1 >Emitted(39, 6) Source(28, 59) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) + > } +1 >Emitted(40, 2) Source(29, 6) + SourceIndex(2) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >class 3 > internalC -1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) +1->Emitted(41, 1) Source(30, 19) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 25) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 34) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) +1 >Emitted(42, 2) Source(30, 37) + SourceIndex(2) --- >>>declare function internalfoo(): void; 1-> @@ -605,14 +605,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/*@internal*/ + > /*@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) +1->Emitted(43, 1) Source(31, 19) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 28) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 39) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 44) + SourceIndex(2) --- >>>declare namespace internalNamespace { 1-> @@ -620,14 +620,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) +1->Emitted(44, 1) Source(32, 19) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 29) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 46) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 47) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -636,20 +636,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) +1 >Emitted(45, 5) Source(32, 49) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 62) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 71) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) +1 >Emitted(46, 6) Source(32, 74) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) +1 >Emitted(47, 2) Source(32, 76) + SourceIndex(2) --- >>>declare namespace internalOther.something { 1-> @@ -659,18 +659,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) +1->Emitted(48, 1) Source(33, 19) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 29) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 42) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 43) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 52) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 53) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -679,20 +679,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) +1 >Emitted(49, 5) Source(33, 55) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 68) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 77) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) +1 >Emitted(50, 6) Source(33, 80) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) +1 >Emitted(51, 2) Source(33, 82) + SourceIndex(2) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -704,7 +704,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -712,14 +712,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) +1->Emitted(52, 1) Source(34, 19) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 26) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 40) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 43) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 60) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 61) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 70) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 71) + SourceIndex(2) --- >>>declare type internalType = internalC; 1 > @@ -729,18 +729,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +1 >Emitted(53, 1) Source(35, 19) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 24) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 36) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 39) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 48) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 49) + SourceIndex(2) --- >>>declare const internalConst = 10; 1 > @@ -750,30 +750,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) +1 >Emitted(54, 1) Source(36, 19) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 19) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 25) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 38) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 43) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 44) + SourceIndex(2) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) +1 >Emitted(55, 1) Source(37, 19) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 24) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 36) + SourceIndex(2) --- >>> a = 0, 1 >^^^^ @@ -783,9 +783,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^ @@ -795,9 +795,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^ @@ -806,15 +806,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) +1->Emitted(58, 5) Source(37, 45) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 46) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 46) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) +1 >Emitted(59, 2) Source(37, 48) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1510,7 +1510,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1699,24 +1699,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(14, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -1724,29 +1724,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(15, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts 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 ba01c95b0602a..3d9d3594d37bc 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 @@ -400,7 +400,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -589,24 +589,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(14, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -614,29 +614,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(15, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts 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 2509f130b7c05..773022bd0ba78 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 @@ -422,7 +422,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -611,24 +611,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(14, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -636,29 +636,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(15, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts 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 0cbe00147124c..c167fd99cde4c 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 @@ -72,31 +72,31 @@ namespace N { 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 } + 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/second_part2.ts] class C { @@ -244,7 +244,7 @@ declare class C { //# 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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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"} +{"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;AAEG,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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;ACpChD,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -433,12 +433,12 @@ sourceFile:../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + SourceIndex(2) --- >>> constructor(); >>> prop: string; @@ -449,27 +449,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ + > /**@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) +1 >Emitted(15, 5) Source(15, 24) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 28) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 30) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 36) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 37) + SourceIndex(2) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@internal*/ 2 > method -1->Emitted(16, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 26) + SourceIndex(2) +1->Emitted(16, 5) Source(16, 24) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 30) + SourceIndex(2) --- >>> get c(): number; 1->^^^^ @@ -480,19 +480,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /**@internal*/ + > /**@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /**@internal*/ set c(val: + > /**@internal*/ set c(val: 5 > number 6 > -1->Emitted(17, 5) Source(17, 20) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 24) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 25) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 31) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 37) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 42) + SourceIndex(2) +1->Emitted(17, 5) Source(17, 24) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 28) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 29) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 35) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 41) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 46) + SourceIndex(2) --- >>> set c(val: number); 1->^^^^ @@ -503,27 +503,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(18, 5) Source(18, 20) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 24) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 25) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 26) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 31) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 37) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 42) + SourceIndex(2) +1->Emitted(18, 5) Source(18, 24) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 28) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 29) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 30) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 35) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 41) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 46) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) + > } +1 >Emitted(19, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -531,32 +531,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +1->Emitted(20, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 23) + SourceIndex(2) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /**@internal*/ + > /**@internal*/ 2 > export class 3 > C -1 >Emitted(21, 5) Source(21, 20) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 33) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 34) + SourceIndex(2) +1 >Emitted(21, 5) Source(21, 24) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 37) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 38) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(22, 6) Source(21, 38) + SourceIndex(2) +1 >Emitted(22, 6) Source(21, 42) + SourceIndex(2) --- >>> function foo(): void; 1->^^^^ @@ -565,14 +565,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /**@internal*/ + > /**@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(23, 5) Source(22, 20) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 36) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 39) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 44) + SourceIndex(2) +1->Emitted(23, 5) Source(22, 24) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 40) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 43) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 48) + SourceIndex(2) --- >>> namespace someNamespace { 1->^^^^ @@ -580,14 +580,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(24, 5) Source(23, 20) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 37) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 50) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 51) + SourceIndex(2) +1->Emitted(24, 5) Source(23, 24) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 41) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 54) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 55) + SourceIndex(2) --- >>> class C { 1 >^^^^^^^^ @@ -596,20 +596,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(25, 9) Source(23, 53) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 66) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 67) + SourceIndex(2) +1 >Emitted(25, 9) Source(23, 57) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 70) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 71) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(26, 10) Source(23, 70) + SourceIndex(2) +1 >Emitted(26, 10) Source(23, 74) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(27, 6) Source(23, 72) + SourceIndex(2) +1 >Emitted(27, 6) Source(23, 76) + SourceIndex(2) --- >>> namespace someOther.something { 1->^^^^ @@ -619,18 +619,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(28, 5) Source(24, 20) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 37) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 46) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 47) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 56) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 57) + SourceIndex(2) +1->Emitted(28, 5) Source(24, 24) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 41) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 50) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 51) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 60) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 61) + SourceIndex(2) --- >>> class someClass { 1 >^^^^^^^^ @@ -639,20 +639,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(29, 9) Source(24, 59) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 72) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 81) + SourceIndex(2) +1 >Emitted(29, 9) Source(24, 63) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 76) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 85) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(30, 10) Source(24, 84) + SourceIndex(2) +1 >Emitted(30, 10) Source(24, 88) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(31, 6) Source(24, 86) + SourceIndex(2) +1 >Emitted(31, 6) Source(24, 90) + SourceIndex(2) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -665,7 +665,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > export 3 > import 4 > someImport @@ -674,15 +674,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(32, 5) Source(25, 20) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 26) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 34) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 44) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 47) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 60) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 61) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 62) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 63) + SourceIndex(2) +1->Emitted(32, 5) Source(25, 24) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 30) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 38) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 48) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 51) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 64) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 65) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 66) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 67) + SourceIndex(2) --- >>> type internalType = internalC; 1 >^^^^ @@ -692,18 +692,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /**@internal*/ + > /**@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(33, 5) Source(26, 20) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 32) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 44) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 47) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 56) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 57) + SourceIndex(2) +1 >Emitted(33, 5) Source(26, 24) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 36) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 48) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 51) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 60) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 61) + SourceIndex(2) --- >>> const internalConst = 10; 1 >^^^^ @@ -712,28 +712,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /**@internal*/ export + > /**@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(34, 5) Source(27, 27) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 33) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 46) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 51) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 52) + SourceIndex(2) +1 >Emitted(34, 5) Source(27, 31) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 37) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 50) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 55) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 56) + SourceIndex(2) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /**@internal*/ + > /**@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(35, 5) Source(28, 20) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 32) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 44) + SourceIndex(2) +1 >Emitted(35, 5) Source(28, 24) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 36) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 48) + SourceIndex(2) --- >>> a = 0, 1 >^^^^^^^^ @@ -743,9 +743,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(36, 9) Source(28, 47) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 48) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 48) + SourceIndex(2) +1 >Emitted(36, 9) Source(28, 51) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 52) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 52) + SourceIndex(2) --- >>> b = 1, 1->^^^^^^^^ @@ -755,9 +755,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(37, 9) Source(28, 50) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 51) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 51) + SourceIndex(2) +1->Emitted(37, 9) Source(28, 54) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 55) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 55) + SourceIndex(2) --- >>> c = 2 1->^^^^^^^^ @@ -766,39 +766,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(38, 9) Source(28, 53) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 54) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 54) + SourceIndex(2) +1->Emitted(38, 9) Source(28, 57) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 58) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 58) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(39, 6) Source(28, 56) + SourceIndex(2) +1 >Emitted(39, 6) Source(28, 60) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) + > } +1 >Emitted(40, 2) Source(29, 6) + SourceIndex(2) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >class 3 > internalC -1->Emitted(41, 1) Source(30, 16) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 22) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 31) + SourceIndex(2) +1->Emitted(41, 1) Source(30, 20) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 26) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 35) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(42, 2) Source(30, 34) + SourceIndex(2) +1 >Emitted(42, 2) Source(30, 38) + SourceIndex(2) --- >>>declare function internalfoo(): void; 1-> @@ -807,14 +807,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/**@internal*/ + > /**@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(43, 1) Source(31, 16) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 25) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 36) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 41) + SourceIndex(2) +1->Emitted(43, 1) Source(31, 20) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 29) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 40) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 45) + SourceIndex(2) --- >>>declare namespace internalNamespace { 1-> @@ -822,14 +822,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(44, 1) Source(32, 16) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 26) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 43) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 44) + SourceIndex(2) +1->Emitted(44, 1) Source(32, 20) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 30) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 47) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 48) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -838,20 +838,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(45, 5) Source(32, 46) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 59) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 68) + SourceIndex(2) +1 >Emitted(45, 5) Source(32, 50) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 63) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 72) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(46, 6) Source(32, 71) + SourceIndex(2) +1 >Emitted(46, 6) Source(32, 75) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(47, 2) Source(32, 73) + SourceIndex(2) +1 >Emitted(47, 2) Source(32, 77) + SourceIndex(2) --- >>>declare namespace internalOther.something { 1-> @@ -861,18 +861,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(48, 1) Source(33, 16) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 26) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 39) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 40) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 49) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 50) + SourceIndex(2) +1->Emitted(48, 1) Source(33, 20) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 30) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 43) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 44) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 53) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 54) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -881,20 +881,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(49, 5) Source(33, 52) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 65) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 74) + SourceIndex(2) +1 >Emitted(49, 5) Source(33, 56) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 69) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 78) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(50, 6) Source(33, 77) + SourceIndex(2) +1 >Emitted(50, 6) Source(33, 81) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(33, 79) + SourceIndex(2) +1 >Emitted(51, 2) Source(33, 83) + SourceIndex(2) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -906,7 +906,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -914,14 +914,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(52, 1) Source(34, 16) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 23) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 37) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 40) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 57) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 58) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 67) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 68) + SourceIndex(2) +1->Emitted(52, 1) Source(34, 20) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 27) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 41) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 44) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 61) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 62) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 71) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 72) + SourceIndex(2) --- >>>declare type internalType = internalC; 1 > @@ -931,18 +931,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/**@internal*/ + > /**@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(53, 1) Source(35, 16) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 21) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 33) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 36) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 45) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 46) + SourceIndex(2) +1 >Emitted(53, 1) Source(35, 20) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 25) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 37) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 40) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 49) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 50) + SourceIndex(2) --- >>>declare const internalConst = 10; 1 > @@ -952,30 +952,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/**@internal*/ + > /**@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 16) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 16) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 22) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 35) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 40) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 41) + SourceIndex(2) +1 >Emitted(54, 1) Source(36, 20) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 20) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 26) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 39) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 44) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 45) + SourceIndex(2) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/**@internal*/ + > /**@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(55, 1) Source(37, 16) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 21) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 33) + SourceIndex(2) +1 >Emitted(55, 1) Source(37, 20) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 25) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 37) + SourceIndex(2) --- >>> a = 0, 1 >^^^^ @@ -985,9 +985,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(56, 5) Source(37, 36) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 37) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 37) + SourceIndex(2) +1 >Emitted(56, 5) Source(37, 40) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 41) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 41) + SourceIndex(2) --- >>> b = 1, 1->^^^^ @@ -997,9 +997,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(57, 5) Source(37, 39) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 40) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 40) + SourceIndex(2) +1->Emitted(57, 5) Source(37, 43) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 44) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 44) + SourceIndex(2) --- >>> c = 2 1->^^^^ @@ -1008,15 +1008,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(58, 5) Source(37, 42) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 43) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 43) + SourceIndex(2) +1->Emitted(58, 5) Source(37, 46) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 47) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 47) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(2) +1 >Emitted(59, 2) Source(37, 49) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1166,7 +1166,7 @@ var C = (function () { //# 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -1454,15 +1454,15 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /**@internal*/ -1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(15, 5) Source(14, 24) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1470,8 +1470,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +1->Emitted(16, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 41) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -1481,29 +1481,29 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /**@internal*/ prop: string; - > /**@internal*/ + > /**@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) +1->Emitted(17, 5) Source(16, 24) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 30) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 24) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 35) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /**@internal*/ + > /**@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) +1->Emitted(18, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 29) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -1520,13 +1520,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(19, 14) Source(17, 24) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 34) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 41) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 43) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 44) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 45) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 46) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -1535,16 +1535,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(20, 14) Source(18, 24) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 30) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 41) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 45) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -1552,17 +1552,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -1574,16 +1574,16 @@ sourceFile:../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -1592,23 +1592,23 @@ sourceFile:../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -1618,22 +1618,22 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /**@internal*/ -1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(28, 5) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1641,16 +1641,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 42) + 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->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1662,10 +1662,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -1677,10 +1677,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 42) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -1690,16 +1690,16 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(34, 5) Source(22, 24) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 40) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 43) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 47) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -1711,10 +1711,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 48) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -1723,14 +1723,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(36, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 41) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 54) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -1740,21 +1740,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1762,16 +1762,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 74) + 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->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1783,10 +1783,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1798,10 +1798,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1822,15 +1822,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 76) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -1839,14 +1839,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(45, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 41) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 50) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -1855,9 +1855,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(46, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -1869,10 +1869,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -1882,21 +1882,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1904,16 +1904,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 88) + 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->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1925,10 +1925,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1940,10 +1940,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1964,15 +1964,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1993,15 +1993,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 90) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -2012,20 +2012,20 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /**@internal*/ export import + > /**@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) +1 >Emitted(57, 5) Source(25, 38) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 48) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 51) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 64) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 65) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 66) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 67) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -2034,17 +2034,17 @@ sourceFile:../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const + > /**@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) +1 >Emitted(58, 5) Source(27, 37) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 50) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 53) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 55) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 56) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -2052,12 +2052,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(59, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 36) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -2067,9 +2067,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(60, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -2079,9 +2079,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -2091,9 +2091,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -2103,9 +2103,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -2126,15 +2126,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -2146,42 +2146,42 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/**@internal*/ -1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) + > /**@internal*/ +1->Emitted(66, 1) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2189,16 +2189,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 38) + 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->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -2210,10 +2210,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 38) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -2222,16 +2222,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/**@internal*/ + > /**@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) +1->Emitted(71, 1) Source(31, 20) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 29) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 40) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 44) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 45) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -2240,14 +2240,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(72, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 30) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 47) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -2257,21 +2257,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(73, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -2279,16 +2279,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 75) + 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->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -2300,10 +2300,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -2315,10 +2315,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -2335,13 +2335,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 77) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -2350,14 +2350,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(81, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 30) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 43) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -2366,9 +2366,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(82, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -2380,10 +2380,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -2393,21 +2393,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -2415,16 +2415,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 81) + 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->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -2436,10 +2436,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2451,10 +2451,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2475,15 +2475,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2501,13 +2501,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 83) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -2519,7 +2519,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -2527,14 +2527,14 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 20) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 27) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 41) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 44) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 61) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 62) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 71) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 72) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -2544,19 +2544,19 @@ sourceFile:../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ + > /**@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) +1 >Emitted(94, 1) Source(36, 20) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 26) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 39) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 42) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 44) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 45) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -2564,12 +2564,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(95, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 25) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -2579,9 +2579,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(96, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2591,9 +2591,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2603,9 +2603,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2614,9 +2614,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2633,13 +2633,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -3438,7 +3438,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -3593,24 +3593,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3618,29 +3618,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /**@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3817,7 +3817,7 @@ 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -4105,15 +4105,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /**@internal*/ -1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(15, 5) Source(14, 24) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4121,8 +4121,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +1->Emitted(16, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 41) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -4132,29 +4132,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /**@internal*/ prop: string; - > /**@internal*/ + > /**@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) +1->Emitted(17, 5) Source(16, 24) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 30) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 24) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 35) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /**@internal*/ + > /**@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) +1->Emitted(18, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 29) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -4171,13 +4171,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(19, 14) Source(17, 24) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 34) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 41) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 43) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 44) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 45) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 46) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -4186,16 +4186,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(20, 14) Source(18, 24) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 30) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 41) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 45) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -4203,17 +4203,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -4225,16 +4225,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -4243,23 +4243,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -4269,22 +4269,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /**@internal*/ -1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(28, 5) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4292,16 +4292,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 42) + 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->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4313,10 +4313,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -4328,10 +4328,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 42) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -4341,16 +4341,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(34, 5) Source(22, 24) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 40) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 43) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 47) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -4362,10 +4362,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 48) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -4374,14 +4374,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(36, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 41) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 54) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -4391,21 +4391,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4413,16 +4413,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 74) + 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->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4434,10 +4434,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -4449,10 +4449,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -4473,15 +4473,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 76) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -4490,14 +4490,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(45, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 41) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 50) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -4506,9 +4506,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(46, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -4520,10 +4520,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -4533,21 +4533,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -4555,16 +4555,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 88) + 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->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -4576,10 +4576,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -4591,10 +4591,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -4615,15 +4615,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -4644,15 +4644,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 90) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -4663,20 +4663,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /**@internal*/ export import + > /**@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) +1 >Emitted(57, 5) Source(25, 38) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 48) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 51) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 64) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 65) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 66) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 67) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -4685,17 +4685,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const + > /**@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) +1 >Emitted(58, 5) Source(27, 37) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 50) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 53) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 55) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 56) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -4703,12 +4703,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(59, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 36) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -4718,9 +4718,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(60, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -4730,9 +4730,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -4742,9 +4742,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -4754,9 +4754,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -4777,15 +4777,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -4797,42 +4797,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/**@internal*/ -1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) + > /**@internal*/ +1->Emitted(66, 1) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4840,16 +4840,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 38) + 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->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -4861,10 +4861,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 38) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -4873,16 +4873,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/**@internal*/ + > /**@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) +1->Emitted(71, 1) Source(31, 20) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 29) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 40) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 44) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 45) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -4891,14 +4891,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(72, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 30) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 47) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -4908,21 +4908,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(73, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4930,16 +4930,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 75) + 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->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4951,10 +4951,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -4966,10 +4966,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -4986,13 +4986,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 77) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -5001,14 +5001,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(81, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 30) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 43) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -5017,9 +5017,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(82, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -5031,10 +5031,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -5044,21 +5044,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -5066,16 +5066,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 81) + 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->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -5087,10 +5087,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -5102,10 +5102,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -5126,15 +5126,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -5152,13 +5152,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 83) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -5170,7 +5170,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -5178,14 +5178,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 20) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 27) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 41) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 44) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 61) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 62) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 71) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 72) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -5195,19 +5195,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ + > /**@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) +1 >Emitted(94, 1) Source(36, 20) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 26) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 39) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 42) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 44) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 45) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -5215,12 +5215,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(95, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 25) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -5230,9 +5230,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(96, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -5242,9 +5242,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -5254,9 +5254,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -5265,9 +5265,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -5284,13 +5284,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 a5bf02c619829..a2d100cf313b3 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 @@ -72,31 +72,31 @@ namespace N { 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 } + 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/second_part2.ts] class C { @@ -235,7 +235,7 @@ declare class C { //# 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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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"} +{"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;AAEG,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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;ACpChD,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -304,12 +304,12 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(5, 1) Source(13, 5) + SourceIndex(0) +2 >Emitted(5, 15) Source(13, 11) + SourceIndex(0) +3 >Emitted(5, 22) Source(13, 18) + SourceIndex(0) --- >>> constructor(); >>> prop: string; @@ -320,27 +320,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ + > /**@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) +1 >Emitted(7, 5) Source(15, 24) + SourceIndex(0) +2 >Emitted(7, 9) Source(15, 28) + SourceIndex(0) +3 >Emitted(7, 11) Source(15, 30) + SourceIndex(0) +4 >Emitted(7, 17) Source(15, 36) + SourceIndex(0) +5 >Emitted(7, 18) Source(15, 37) + SourceIndex(0) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@internal*/ 2 > method -1->Emitted(8, 5) Source(16, 20) + SourceIndex(0) -2 >Emitted(8, 11) Source(16, 26) + SourceIndex(0) +1->Emitted(8, 5) Source(16, 24) + SourceIndex(0) +2 >Emitted(8, 11) Source(16, 30) + SourceIndex(0) --- >>> get c(): number; 1->^^^^ @@ -351,19 +351,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /**@internal*/ + > /**@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /**@internal*/ set c(val: + > /**@internal*/ set c(val: 5 > number 6 > -1->Emitted(9, 5) Source(17, 20) + SourceIndex(0) -2 >Emitted(9, 9) Source(17, 24) + SourceIndex(0) -3 >Emitted(9, 10) Source(17, 25) + SourceIndex(0) -4 >Emitted(9, 14) Source(18, 31) + SourceIndex(0) -5 >Emitted(9, 20) Source(18, 37) + SourceIndex(0) -6 >Emitted(9, 21) Source(17, 42) + SourceIndex(0) +1->Emitted(9, 5) Source(17, 24) + SourceIndex(0) +2 >Emitted(9, 9) Source(17, 28) + SourceIndex(0) +3 >Emitted(9, 10) Source(17, 29) + SourceIndex(0) +4 >Emitted(9, 14) Source(18, 35) + SourceIndex(0) +5 >Emitted(9, 20) Source(18, 41) + SourceIndex(0) +6 >Emitted(9, 21) Source(17, 46) + SourceIndex(0) --- >>> set c(val: number); 1->^^^^ @@ -374,27 +374,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(10, 5) Source(18, 20) + SourceIndex(0) -2 >Emitted(10, 9) Source(18, 24) + SourceIndex(0) -3 >Emitted(10, 10) Source(18, 25) + SourceIndex(0) -4 >Emitted(10, 11) Source(18, 26) + SourceIndex(0) -5 >Emitted(10, 16) Source(18, 31) + SourceIndex(0) -6 >Emitted(10, 22) Source(18, 37) + SourceIndex(0) -7 >Emitted(10, 24) Source(18, 42) + SourceIndex(0) +1->Emitted(10, 5) Source(18, 24) + SourceIndex(0) +2 >Emitted(10, 9) Source(18, 28) + SourceIndex(0) +3 >Emitted(10, 10) Source(18, 29) + SourceIndex(0) +4 >Emitted(10, 11) Source(18, 30) + SourceIndex(0) +5 >Emitted(10, 16) Source(18, 35) + SourceIndex(0) +6 >Emitted(10, 22) Source(18, 41) + SourceIndex(0) +7 >Emitted(10, 24) Source(18, 46) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(0) --- >>>declare namespace normalN { 1-> @@ -402,32 +402,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(0) +1->Emitted(12, 1) Source(20, 5) + SourceIndex(0) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(0) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(0) +4 >Emitted(12, 27) Source(20, 23) + SourceIndex(0) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /**@internal*/ + > /**@internal*/ 2 > export class 3 > C -1 >Emitted(13, 5) Source(21, 20) + SourceIndex(0) -2 >Emitted(13, 11) Source(21, 33) + SourceIndex(0) -3 >Emitted(13, 12) Source(21, 34) + SourceIndex(0) +1 >Emitted(13, 5) Source(21, 24) + SourceIndex(0) +2 >Emitted(13, 11) Source(21, 37) + SourceIndex(0) +3 >Emitted(13, 12) Source(21, 38) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(14, 6) Source(21, 38) + SourceIndex(0) +1 >Emitted(14, 6) Source(21, 42) + SourceIndex(0) --- >>> function foo(): void; 1->^^^^ @@ -436,14 +436,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /**@internal*/ + > /**@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(15, 5) Source(22, 20) + SourceIndex(0) -2 >Emitted(15, 14) Source(22, 36) + SourceIndex(0) -3 >Emitted(15, 17) Source(22, 39) + SourceIndex(0) -4 >Emitted(15, 26) Source(22, 44) + SourceIndex(0) +1->Emitted(15, 5) Source(22, 24) + SourceIndex(0) +2 >Emitted(15, 14) Source(22, 40) + SourceIndex(0) +3 >Emitted(15, 17) Source(22, 43) + SourceIndex(0) +4 >Emitted(15, 26) Source(22, 48) + SourceIndex(0) --- >>> namespace someNamespace { 1->^^^^ @@ -451,14 +451,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(16, 5) Source(23, 20) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 37) + SourceIndex(0) -3 >Emitted(16, 28) Source(23, 50) + SourceIndex(0) -4 >Emitted(16, 29) Source(23, 51) + SourceIndex(0) +1->Emitted(16, 5) Source(23, 24) + SourceIndex(0) +2 >Emitted(16, 15) Source(23, 41) + SourceIndex(0) +3 >Emitted(16, 28) Source(23, 54) + SourceIndex(0) +4 >Emitted(16, 29) Source(23, 55) + SourceIndex(0) --- >>> class C { 1 >^^^^^^^^ @@ -467,20 +467,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(17, 9) Source(23, 53) + SourceIndex(0) -2 >Emitted(17, 15) Source(23, 66) + SourceIndex(0) -3 >Emitted(17, 16) Source(23, 67) + SourceIndex(0) +1 >Emitted(17, 9) Source(23, 57) + SourceIndex(0) +2 >Emitted(17, 15) Source(23, 70) + SourceIndex(0) +3 >Emitted(17, 16) Source(23, 71) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(18, 10) Source(23, 70) + SourceIndex(0) +1 >Emitted(18, 10) Source(23, 74) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(19, 6) Source(23, 72) + SourceIndex(0) +1 >Emitted(19, 6) Source(23, 76) + SourceIndex(0) --- >>> namespace someOther.something { 1->^^^^ @@ -490,18 +490,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(20, 5) Source(24, 20) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 37) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 46) + SourceIndex(0) -4 >Emitted(20, 25) Source(24, 47) + SourceIndex(0) -5 >Emitted(20, 34) Source(24, 56) + SourceIndex(0) -6 >Emitted(20, 35) Source(24, 57) + SourceIndex(0) +1->Emitted(20, 5) Source(24, 24) + SourceIndex(0) +2 >Emitted(20, 15) Source(24, 41) + SourceIndex(0) +3 >Emitted(20, 24) Source(24, 50) + SourceIndex(0) +4 >Emitted(20, 25) Source(24, 51) + SourceIndex(0) +5 >Emitted(20, 34) Source(24, 60) + SourceIndex(0) +6 >Emitted(20, 35) Source(24, 61) + SourceIndex(0) --- >>> class someClass { 1 >^^^^^^^^ @@ -510,20 +510,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(21, 9) Source(24, 59) + SourceIndex(0) -2 >Emitted(21, 15) Source(24, 72) + SourceIndex(0) -3 >Emitted(21, 24) Source(24, 81) + SourceIndex(0) +1 >Emitted(21, 9) Source(24, 63) + SourceIndex(0) +2 >Emitted(21, 15) Source(24, 76) + SourceIndex(0) +3 >Emitted(21, 24) Source(24, 85) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(22, 10) Source(24, 84) + SourceIndex(0) +1 >Emitted(22, 10) Source(24, 88) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(23, 6) Source(24, 86) + SourceIndex(0) +1 >Emitted(23, 6) Source(24, 90) + SourceIndex(0) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -536,7 +536,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /**@internal*/ + > /**@internal*/ 2 > export 3 > import 4 > someImport @@ -545,15 +545,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(24, 5) Source(25, 20) + SourceIndex(0) -2 >Emitted(24, 11) Source(25, 26) + SourceIndex(0) -3 >Emitted(24, 19) Source(25, 34) + SourceIndex(0) -4 >Emitted(24, 29) Source(25, 44) + SourceIndex(0) -5 >Emitted(24, 32) Source(25, 47) + SourceIndex(0) -6 >Emitted(24, 45) Source(25, 60) + SourceIndex(0) -7 >Emitted(24, 46) Source(25, 61) + SourceIndex(0) -8 >Emitted(24, 47) Source(25, 62) + SourceIndex(0) -9 >Emitted(24, 48) Source(25, 63) + SourceIndex(0) +1->Emitted(24, 5) Source(25, 24) + SourceIndex(0) +2 >Emitted(24, 11) Source(25, 30) + SourceIndex(0) +3 >Emitted(24, 19) Source(25, 38) + SourceIndex(0) +4 >Emitted(24, 29) Source(25, 48) + SourceIndex(0) +5 >Emitted(24, 32) Source(25, 51) + SourceIndex(0) +6 >Emitted(24, 45) Source(25, 64) + SourceIndex(0) +7 >Emitted(24, 46) Source(25, 65) + SourceIndex(0) +8 >Emitted(24, 47) Source(25, 66) + SourceIndex(0) +9 >Emitted(24, 48) Source(25, 67) + SourceIndex(0) --- >>> type internalType = internalC; 1 >^^^^ @@ -563,18 +563,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /**@internal*/ + > /**@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(25, 5) Source(26, 20) + SourceIndex(0) -2 >Emitted(25, 10) Source(26, 32) + SourceIndex(0) -3 >Emitted(25, 22) Source(26, 44) + SourceIndex(0) -4 >Emitted(25, 25) Source(26, 47) + SourceIndex(0) -5 >Emitted(25, 34) Source(26, 56) + SourceIndex(0) -6 >Emitted(25, 35) Source(26, 57) + SourceIndex(0) +1 >Emitted(25, 5) Source(26, 24) + SourceIndex(0) +2 >Emitted(25, 10) Source(26, 36) + SourceIndex(0) +3 >Emitted(25, 22) Source(26, 48) + SourceIndex(0) +4 >Emitted(25, 25) Source(26, 51) + SourceIndex(0) +5 >Emitted(25, 34) Source(26, 60) + SourceIndex(0) +6 >Emitted(25, 35) Source(26, 61) + SourceIndex(0) --- >>> const internalConst = 10; 1 >^^^^ @@ -583,28 +583,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /**@internal*/ export + > /**@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(26, 5) Source(27, 27) + SourceIndex(0) -2 >Emitted(26, 11) Source(27, 33) + SourceIndex(0) -3 >Emitted(26, 24) Source(27, 46) + SourceIndex(0) -4 >Emitted(26, 29) Source(27, 51) + SourceIndex(0) -5 >Emitted(26, 30) Source(27, 52) + SourceIndex(0) +1 >Emitted(26, 5) Source(27, 31) + SourceIndex(0) +2 >Emitted(26, 11) Source(27, 37) + SourceIndex(0) +3 >Emitted(26, 24) Source(27, 50) + SourceIndex(0) +4 >Emitted(26, 29) Source(27, 55) + SourceIndex(0) +5 >Emitted(26, 30) Source(27, 56) + SourceIndex(0) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /**@internal*/ + > /**@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(27, 5) Source(28, 20) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 32) + SourceIndex(0) -3 >Emitted(27, 22) Source(28, 44) + SourceIndex(0) +1 >Emitted(27, 5) Source(28, 24) + SourceIndex(0) +2 >Emitted(27, 10) Source(28, 36) + SourceIndex(0) +3 >Emitted(27, 22) Source(28, 48) + SourceIndex(0) --- >>> a = 0, 1 >^^^^^^^^ @@ -614,9 +614,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(28, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 48) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 48) + SourceIndex(0) +1 >Emitted(28, 9) Source(28, 51) + SourceIndex(0) +2 >Emitted(28, 10) Source(28, 52) + SourceIndex(0) +3 >Emitted(28, 14) Source(28, 52) + SourceIndex(0) --- >>> b = 1, 1->^^^^^^^^ @@ -626,9 +626,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(29, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 51) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 51) + SourceIndex(0) +1->Emitted(29, 9) Source(28, 54) + SourceIndex(0) +2 >Emitted(29, 10) Source(28, 55) + SourceIndex(0) +3 >Emitted(29, 14) Source(28, 55) + SourceIndex(0) --- >>> c = 2 1->^^^^^^^^ @@ -637,39 +637,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(30, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(30, 10) Source(28, 54) + SourceIndex(0) -3 >Emitted(30, 14) Source(28, 54) + SourceIndex(0) +1->Emitted(30, 9) Source(28, 57) + SourceIndex(0) +2 >Emitted(30, 10) Source(28, 58) + SourceIndex(0) +3 >Emitted(30, 14) Source(28, 58) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(31, 6) Source(28, 56) + SourceIndex(0) +1 >Emitted(31, 6) Source(28, 60) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(32, 2) Source(29, 2) + SourceIndex(0) + > } +1 >Emitted(32, 2) Source(29, 6) + SourceIndex(0) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >class 3 > internalC -1->Emitted(33, 1) Source(30, 16) + SourceIndex(0) -2 >Emitted(33, 15) Source(30, 22) + SourceIndex(0) -3 >Emitted(33, 24) Source(30, 31) + SourceIndex(0) +1->Emitted(33, 1) Source(30, 20) + SourceIndex(0) +2 >Emitted(33, 15) Source(30, 26) + SourceIndex(0) +3 >Emitted(33, 24) Source(30, 35) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(34, 2) Source(30, 34) + SourceIndex(0) +1 >Emitted(34, 2) Source(30, 38) + SourceIndex(0) --- >>>declare function internalfoo(): void; 1-> @@ -678,14 +678,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/**@internal*/ + > /**@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(35, 1) Source(31, 16) + SourceIndex(0) -2 >Emitted(35, 18) Source(31, 25) + SourceIndex(0) -3 >Emitted(35, 29) Source(31, 36) + SourceIndex(0) -4 >Emitted(35, 38) Source(31, 41) + SourceIndex(0) +1->Emitted(35, 1) Source(31, 20) + SourceIndex(0) +2 >Emitted(35, 18) Source(31, 29) + SourceIndex(0) +3 >Emitted(35, 29) Source(31, 40) + SourceIndex(0) +4 >Emitted(35, 38) Source(31, 45) + SourceIndex(0) --- >>>declare namespace internalNamespace { 1-> @@ -693,14 +693,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(36, 1) Source(32, 16) + SourceIndex(0) -2 >Emitted(36, 19) Source(32, 26) + SourceIndex(0) -3 >Emitted(36, 36) Source(32, 43) + SourceIndex(0) -4 >Emitted(36, 37) Source(32, 44) + SourceIndex(0) +1->Emitted(36, 1) Source(32, 20) + SourceIndex(0) +2 >Emitted(36, 19) Source(32, 30) + SourceIndex(0) +3 >Emitted(36, 36) Source(32, 47) + SourceIndex(0) +4 >Emitted(36, 37) Source(32, 48) + SourceIndex(0) --- >>> class someClass { 1 >^^^^ @@ -709,20 +709,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(37, 5) Source(32, 46) + SourceIndex(0) -2 >Emitted(37, 11) Source(32, 59) + SourceIndex(0) -3 >Emitted(37, 20) Source(32, 68) + SourceIndex(0) +1 >Emitted(37, 5) Source(32, 50) + SourceIndex(0) +2 >Emitted(37, 11) Source(32, 63) + SourceIndex(0) +3 >Emitted(37, 20) Source(32, 72) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(38, 6) Source(32, 71) + SourceIndex(0) +1 >Emitted(38, 6) Source(32, 75) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(39, 2) Source(32, 73) + SourceIndex(0) +1 >Emitted(39, 2) Source(32, 77) + SourceIndex(0) --- >>>declare namespace internalOther.something { 1-> @@ -732,18 +732,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(40, 1) Source(33, 16) + SourceIndex(0) -2 >Emitted(40, 19) Source(33, 26) + SourceIndex(0) -3 >Emitted(40, 32) Source(33, 39) + SourceIndex(0) -4 >Emitted(40, 33) Source(33, 40) + SourceIndex(0) -5 >Emitted(40, 42) Source(33, 49) + SourceIndex(0) -6 >Emitted(40, 43) Source(33, 50) + SourceIndex(0) +1->Emitted(40, 1) Source(33, 20) + SourceIndex(0) +2 >Emitted(40, 19) Source(33, 30) + SourceIndex(0) +3 >Emitted(40, 32) Source(33, 43) + SourceIndex(0) +4 >Emitted(40, 33) Source(33, 44) + SourceIndex(0) +5 >Emitted(40, 42) Source(33, 53) + SourceIndex(0) +6 >Emitted(40, 43) Source(33, 54) + SourceIndex(0) --- >>> class someClass { 1 >^^^^ @@ -752,20 +752,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(41, 5) Source(33, 52) + SourceIndex(0) -2 >Emitted(41, 11) Source(33, 65) + SourceIndex(0) -3 >Emitted(41, 20) Source(33, 74) + SourceIndex(0) +1 >Emitted(41, 5) Source(33, 56) + SourceIndex(0) +2 >Emitted(41, 11) Source(33, 69) + SourceIndex(0) +3 >Emitted(41, 20) Source(33, 78) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(42, 6) Source(33, 77) + SourceIndex(0) +1 >Emitted(42, 6) Source(33, 81) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(43, 2) Source(33, 79) + SourceIndex(0) +1 >Emitted(43, 2) Source(33, 83) + SourceIndex(0) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -777,7 +777,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -785,14 +785,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(44, 1) Source(34, 16) + SourceIndex(0) -2 >Emitted(44, 8) Source(34, 23) + SourceIndex(0) -3 >Emitted(44, 22) Source(34, 37) + SourceIndex(0) -4 >Emitted(44, 25) Source(34, 40) + SourceIndex(0) -5 >Emitted(44, 42) Source(34, 57) + SourceIndex(0) -6 >Emitted(44, 43) Source(34, 58) + SourceIndex(0) -7 >Emitted(44, 52) Source(34, 67) + SourceIndex(0) -8 >Emitted(44, 53) Source(34, 68) + SourceIndex(0) +1->Emitted(44, 1) Source(34, 20) + SourceIndex(0) +2 >Emitted(44, 8) Source(34, 27) + SourceIndex(0) +3 >Emitted(44, 22) Source(34, 41) + SourceIndex(0) +4 >Emitted(44, 25) Source(34, 44) + SourceIndex(0) +5 >Emitted(44, 42) Source(34, 61) + SourceIndex(0) +6 >Emitted(44, 43) Source(34, 62) + SourceIndex(0) +7 >Emitted(44, 52) Source(34, 71) + SourceIndex(0) +8 >Emitted(44, 53) Source(34, 72) + SourceIndex(0) --- >>>declare type internalType = internalC; 1 > @@ -802,18 +802,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/**@internal*/ + > /**@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(45, 1) Source(35, 16) + SourceIndex(0) -2 >Emitted(45, 14) Source(35, 21) + SourceIndex(0) -3 >Emitted(45, 26) Source(35, 33) + SourceIndex(0) -4 >Emitted(45, 29) Source(35, 36) + SourceIndex(0) -5 >Emitted(45, 38) Source(35, 45) + SourceIndex(0) -6 >Emitted(45, 39) Source(35, 46) + SourceIndex(0) +1 >Emitted(45, 1) Source(35, 20) + SourceIndex(0) +2 >Emitted(45, 14) Source(35, 25) + SourceIndex(0) +3 >Emitted(45, 26) Source(35, 37) + SourceIndex(0) +4 >Emitted(45, 29) Source(35, 40) + SourceIndex(0) +5 >Emitted(45, 38) Source(35, 49) + SourceIndex(0) +6 >Emitted(45, 39) Source(35, 50) + SourceIndex(0) --- >>>declare const internalConst = 10; 1 > @@ -823,30 +823,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/**@internal*/ + > /**@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(46, 1) Source(36, 16) + SourceIndex(0) -2 >Emitted(46, 9) Source(36, 16) + SourceIndex(0) -3 >Emitted(46, 15) Source(36, 22) + SourceIndex(0) -4 >Emitted(46, 28) Source(36, 35) + SourceIndex(0) -5 >Emitted(46, 33) Source(36, 40) + SourceIndex(0) -6 >Emitted(46, 34) Source(36, 41) + SourceIndex(0) +1 >Emitted(46, 1) Source(36, 20) + SourceIndex(0) +2 >Emitted(46, 9) Source(36, 20) + SourceIndex(0) +3 >Emitted(46, 15) Source(36, 26) + SourceIndex(0) +4 >Emitted(46, 28) Source(36, 39) + SourceIndex(0) +5 >Emitted(46, 33) Source(36, 44) + SourceIndex(0) +6 >Emitted(46, 34) Source(36, 45) + SourceIndex(0) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/**@internal*/ + > /**@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(47, 1) Source(37, 16) + SourceIndex(0) -2 >Emitted(47, 14) Source(37, 21) + SourceIndex(0) -3 >Emitted(47, 26) Source(37, 33) + SourceIndex(0) +1 >Emitted(47, 1) Source(37, 20) + SourceIndex(0) +2 >Emitted(47, 14) Source(37, 25) + SourceIndex(0) +3 >Emitted(47, 26) Source(37, 37) + SourceIndex(0) --- >>> a = 0, 1 >^^^^ @@ -856,9 +856,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(48, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 37) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 37) + SourceIndex(0) +1 >Emitted(48, 5) Source(37, 40) + SourceIndex(0) +2 >Emitted(48, 6) Source(37, 41) + SourceIndex(0) +3 >Emitted(48, 10) Source(37, 41) + SourceIndex(0) --- >>> b = 1, 1->^^^^ @@ -868,9 +868,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(49, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 40) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 40) + SourceIndex(0) +1->Emitted(49, 5) Source(37, 43) + SourceIndex(0) +2 >Emitted(49, 6) Source(37, 44) + SourceIndex(0) +3 >Emitted(49, 10) Source(37, 44) + SourceIndex(0) --- >>> c = 2 1->^^^^ @@ -879,15 +879,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(50, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(50, 6) Source(37, 43) + SourceIndex(0) -3 >Emitted(50, 10) Source(37, 43) + SourceIndex(0) +1->Emitted(50, 5) Source(37, 46) + SourceIndex(0) +2 >Emitted(50, 6) Source(37, 47) + SourceIndex(0) +3 >Emitted(50, 10) Source(37, 47) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(37, 45) + SourceIndex(0) +1 >Emitted(51, 2) Source(37, 49) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1031,7 +1031,7 @@ var C = (function () { //# 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -1184,15 +1184,15 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) + > +1->Emitted(8, 1) Source(13, 5) + SourceIndex(0) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /**@internal*/ -1->Emitted(9, 5) Source(14, 20) + SourceIndex(0) + > /**@internal*/ +1->Emitted(9, 5) Source(14, 24) + SourceIndex(0) --- >>> } 1->^^^^ @@ -1200,8 +1200,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(10, 5) Source(14, 36) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 37) + SourceIndex(0) +1->Emitted(10, 5) Source(14, 40) + SourceIndex(0) +2 >Emitted(10, 6) Source(14, 41) + SourceIndex(0) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -1211,29 +1211,29 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /**@internal*/ prop: string; - > /**@internal*/ + > /**@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) +1->Emitted(11, 5) Source(16, 24) + SourceIndex(0) +2 >Emitted(11, 29) Source(16, 30) + SourceIndex(0) +3 >Emitted(11, 32) Source(16, 24) + SourceIndex(0) +4 >Emitted(11, 46) Source(16, 35) + SourceIndex(0) +5 >Emitted(11, 47) Source(16, 36) + SourceIndex(0) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /**@internal*/ + > /**@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) +1->Emitted(12, 5) Source(17, 24) + SourceIndex(0) +2 >Emitted(12, 27) Source(17, 28) + SourceIndex(0) +3 >Emitted(12, 49) Source(17, 29) + SourceIndex(0) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -1250,13 +1250,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(13, 14) Source(17, 24) + SourceIndex(0) +2 >Emitted(13, 28) Source(17, 34) + SourceIndex(0) +3 >Emitted(13, 35) Source(17, 41) + SourceIndex(0) +4 >Emitted(13, 37) Source(17, 43) + SourceIndex(0) +5 >Emitted(13, 38) Source(17, 44) + SourceIndex(0) +6 >Emitted(13, 39) Source(17, 45) + SourceIndex(0) +7 >Emitted(13, 40) Source(17, 46) + SourceIndex(0) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -1265,16 +1265,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(14, 14) Source(18, 24) + SourceIndex(0) +2 >Emitted(14, 24) Source(18, 30) + SourceIndex(0) +3 >Emitted(14, 27) Source(18, 41) + SourceIndex(0) +4 >Emitted(14, 31) Source(18, 45) + SourceIndex(0) +5 >Emitted(14, 32) Source(18, 46) + SourceIndex(0) --- >>> enumerable: false, >>> configurable: true @@ -1282,17 +1282,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(17, 8) Source(17, 42) + SourceIndex(0) +1 >Emitted(17, 8) Source(17, 46) + SourceIndex(0) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(18, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(18, 19) Source(19, 6) + SourceIndex(0) --- >>>}()); 1 > @@ -1304,16 +1304,16 @@ sourceFile:../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(19, 1) Source(19, 5) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 6) + SourceIndex(0) +3 >Emitted(19, 2) Source(13, 5) + SourceIndex(0) +4 >Emitted(19, 6) Source(19, 6) + SourceIndex(0) --- >>>var normalN; 1-> @@ -1322,23 +1322,23 @@ sourceFile:../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 15) + SourceIndex(0) +3 >Emitted(20, 12) Source(20, 22) + SourceIndex(0) +4 >Emitted(20, 13) Source(29, 6) + SourceIndex(0) --- >>>(function (normalN) { 1-> @@ -1348,22 +1348,22 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(21, 1) Source(20, 5) + SourceIndex(0) +2 >Emitted(21, 12) Source(20, 15) + SourceIndex(0) +3 >Emitted(21, 19) Source(20, 22) + SourceIndex(0) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /**@internal*/ -1->Emitted(22, 5) Source(21, 20) + SourceIndex(0) + > /**@internal*/ +1->Emitted(22, 5) Source(21, 24) + SourceIndex(0) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(23, 9) Source(21, 20) + SourceIndex(0) +1->Emitted(23, 9) Source(21, 24) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -1371,16 +1371,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(24, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 38) + SourceIndex(0) +1->Emitted(24, 9) Source(21, 41) + SourceIndex(0) +2 >Emitted(24, 10) Source(21, 42) + 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->Emitted(25, 9) Source(21, 41) + SourceIndex(0) +2 >Emitted(25, 17) Source(21, 42) + SourceIndex(0) --- >>> }()); 1 >^^^^ @@ -1392,10 +1392,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(26, 5) Source(21, 41) + SourceIndex(0) +2 >Emitted(26, 6) Source(21, 42) + SourceIndex(0) +3 >Emitted(26, 6) Source(21, 24) + SourceIndex(0) +4 >Emitted(26, 10) Source(21, 42) + SourceIndex(0) --- >>> normalN.C = C; 1->^^^^ @@ -1407,10 +1407,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 5) Source(21, 37) + SourceIndex(0) +2 >Emitted(27, 14) Source(21, 38) + SourceIndex(0) +3 >Emitted(27, 18) Source(21, 42) + SourceIndex(0) +4 >Emitted(27, 19) Source(21, 42) + SourceIndex(0) --- >>> function foo() { } 1->^^^^ @@ -1420,16 +1420,16 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(28, 5) Source(22, 24) + SourceIndex(0) +2 >Emitted(28, 14) Source(22, 40) + SourceIndex(0) +3 >Emitted(28, 17) Source(22, 43) + SourceIndex(0) +4 >Emitted(28, 22) Source(22, 47) + SourceIndex(0) +5 >Emitted(28, 23) Source(22, 48) + SourceIndex(0) --- >>> normalN.foo = foo; 1->^^^^ @@ -1441,10 +1441,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(29, 5) Source(22, 40) + SourceIndex(0) +2 >Emitted(29, 16) Source(22, 43) + SourceIndex(0) +3 >Emitted(29, 22) Source(22, 48) + SourceIndex(0) +4 >Emitted(29, 23) Source(22, 48) + SourceIndex(0) --- >>> var someNamespace; 1->^^^^ @@ -1453,14 +1453,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(30, 5) Source(23, 24) + SourceIndex(0) +2 >Emitted(30, 9) Source(23, 41) + SourceIndex(0) +3 >Emitted(30, 22) Source(23, 54) + SourceIndex(0) +4 >Emitted(30, 23) Source(23, 76) + SourceIndex(0) --- >>> (function (someNamespace) { 1->^^^^ @@ -1470,21 +1470,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(31, 5) Source(23, 24) + SourceIndex(0) +2 >Emitted(31, 16) Source(23, 41) + SourceIndex(0) +3 >Emitted(31, 29) Source(23, 54) + SourceIndex(0) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(32, 9) Source(23, 53) + SourceIndex(0) +1->Emitted(32, 9) Source(23, 57) + SourceIndex(0) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(33, 13) Source(23, 53) + SourceIndex(0) +1->Emitted(33, 13) Source(23, 57) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -1492,16 +1492,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(34, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 70) + SourceIndex(0) +1->Emitted(34, 13) Source(23, 73) + SourceIndex(0) +2 >Emitted(34, 14) Source(23, 74) + 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->Emitted(35, 13) Source(23, 73) + SourceIndex(0) +2 >Emitted(35, 21) Source(23, 74) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -1513,10 +1513,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(36, 9) Source(23, 73) + SourceIndex(0) +2 >Emitted(36, 10) Source(23, 74) + SourceIndex(0) +3 >Emitted(36, 10) Source(23, 57) + SourceIndex(0) +4 >Emitted(36, 14) Source(23, 74) + SourceIndex(0) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1528,10 +1528,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(37, 9) Source(23, 70) + SourceIndex(0) +2 >Emitted(37, 24) Source(23, 71) + SourceIndex(0) +3 >Emitted(37, 28) Source(23, 74) + SourceIndex(0) +4 >Emitted(37, 29) Source(23, 74) + SourceIndex(0) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1552,15 +1552,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 75) + SourceIndex(0) +2 >Emitted(38, 6) Source(23, 76) + SourceIndex(0) +3 >Emitted(38, 8) Source(23, 41) + SourceIndex(0) +4 >Emitted(38, 21) Source(23, 54) + SourceIndex(0) +5 >Emitted(38, 24) Source(23, 41) + SourceIndex(0) +6 >Emitted(38, 45) Source(23, 54) + SourceIndex(0) +7 >Emitted(38, 50) Source(23, 41) + SourceIndex(0) +8 >Emitted(38, 71) Source(23, 54) + SourceIndex(0) +9 >Emitted(38, 79) Source(23, 76) + SourceIndex(0) --- >>> var someOther; 1 >^^^^ @@ -1569,14 +1569,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(39, 5) Source(24, 24) + SourceIndex(0) +2 >Emitted(39, 9) Source(24, 41) + SourceIndex(0) +3 >Emitted(39, 18) Source(24, 50) + SourceIndex(0) +4 >Emitted(39, 19) Source(24, 90) + SourceIndex(0) --- >>> (function (someOther) { 1->^^^^ @@ -1585,9 +1585,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(40, 5) Source(24, 24) + SourceIndex(0) +2 >Emitted(40, 16) Source(24, 41) + SourceIndex(0) +3 >Emitted(40, 25) Source(24, 50) + SourceIndex(0) --- >>> var something; 1 >^^^^^^^^ @@ -1599,10 +1599,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(41, 9) Source(24, 51) + SourceIndex(0) +2 >Emitted(41, 13) Source(24, 51) + SourceIndex(0) +3 >Emitted(41, 22) Source(24, 60) + SourceIndex(0) +4 >Emitted(41, 23) Source(24, 90) + SourceIndex(0) --- >>> (function (something) { 1->^^^^^^^^ @@ -1612,21 +1612,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(42, 9) Source(24, 51) + SourceIndex(0) +2 >Emitted(42, 20) Source(24, 51) + SourceIndex(0) +3 >Emitted(42, 29) Source(24, 60) + SourceIndex(0) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(43, 13) Source(24, 59) + SourceIndex(0) +1->Emitted(43, 13) Source(24, 63) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(44, 17) Source(24, 59) + SourceIndex(0) +1->Emitted(44, 17) Source(24, 63) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1634,16 +1634,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(45, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 84) + SourceIndex(0) +1->Emitted(45, 17) Source(24, 87) + SourceIndex(0) +2 >Emitted(45, 18) Source(24, 88) + 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->Emitted(46, 17) Source(24, 87) + SourceIndex(0) +2 >Emitted(46, 33) Source(24, 88) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1655,10 +1655,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 13) Source(24, 87) + SourceIndex(0) +2 >Emitted(47, 14) Source(24, 88) + SourceIndex(0) +3 >Emitted(47, 14) Source(24, 63) + SourceIndex(0) +4 >Emitted(47, 18) Source(24, 88) + SourceIndex(0) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1670,10 +1670,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(48, 13) Source(24, 76) + SourceIndex(0) +2 >Emitted(48, 32) Source(24, 85) + SourceIndex(0) +3 >Emitted(48, 44) Source(24, 88) + SourceIndex(0) +4 >Emitted(48, 45) Source(24, 88) + SourceIndex(0) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1694,15 +1694,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 89) + SourceIndex(0) +2 >Emitted(49, 10) Source(24, 90) + SourceIndex(0) +3 >Emitted(49, 12) Source(24, 51) + SourceIndex(0) +4 >Emitted(49, 21) Source(24, 60) + SourceIndex(0) +5 >Emitted(49, 24) Source(24, 51) + SourceIndex(0) +6 >Emitted(49, 43) Source(24, 60) + SourceIndex(0) +7 >Emitted(49, 48) Source(24, 51) + SourceIndex(0) +8 >Emitted(49, 67) Source(24, 60) + SourceIndex(0) +9 >Emitted(49, 75) Source(24, 90) + SourceIndex(0) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1723,15 +1723,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(50, 5) Source(24, 89) + SourceIndex(0) +2 >Emitted(50, 6) Source(24, 90) + SourceIndex(0) +3 >Emitted(50, 8) Source(24, 41) + SourceIndex(0) +4 >Emitted(50, 17) Source(24, 50) + SourceIndex(0) +5 >Emitted(50, 20) Source(24, 41) + SourceIndex(0) +6 >Emitted(50, 37) Source(24, 50) + SourceIndex(0) +7 >Emitted(50, 42) Source(24, 41) + SourceIndex(0) +8 >Emitted(50, 59) Source(24, 50) + SourceIndex(0) +9 >Emitted(50, 67) Source(24, 90) + SourceIndex(0) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1742,20 +1742,20 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /**@internal*/ export import + > /**@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) +1 >Emitted(51, 5) Source(25, 38) + SourceIndex(0) +2 >Emitted(51, 23) Source(25, 48) + SourceIndex(0) +3 >Emitted(51, 26) Source(25, 51) + SourceIndex(0) +4 >Emitted(51, 39) Source(25, 64) + SourceIndex(0) +5 >Emitted(51, 40) Source(25, 65) + SourceIndex(0) +6 >Emitted(51, 41) Source(25, 66) + SourceIndex(0) +7 >Emitted(51, 42) Source(25, 67) + SourceIndex(0) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -1764,17 +1764,17 @@ sourceFile:../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const + > /**@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) +1 >Emitted(52, 5) Source(27, 37) + SourceIndex(0) +2 >Emitted(52, 26) Source(27, 50) + SourceIndex(0) +3 >Emitted(52, 29) Source(27, 53) + SourceIndex(0) +4 >Emitted(52, 31) Source(27, 55) + SourceIndex(0) +5 >Emitted(52, 32) Source(27, 56) + SourceIndex(0) --- >>> var internalEnum; 1 >^^^^ @@ -1782,12 +1782,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(53, 5) Source(28, 24) + SourceIndex(0) +2 >Emitted(53, 9) Source(28, 36) + SourceIndex(0) +3 >Emitted(53, 21) Source(28, 60) + SourceIndex(0) --- >>> (function (internalEnum) { 1->^^^^ @@ -1797,9 +1797,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(54, 5) Source(28, 24) + SourceIndex(0) +2 >Emitted(54, 16) Source(28, 36) + SourceIndex(0) +3 >Emitted(54, 28) Source(28, 48) + SourceIndex(0) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1809,9 +1809,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 9) Source(28, 51) + SourceIndex(0) +2 >Emitted(55, 50) Source(28, 52) + SourceIndex(0) +3 >Emitted(55, 51) Source(28, 52) + SourceIndex(0) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1821,9 +1821,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(56, 9) Source(28, 54) + SourceIndex(0) +2 >Emitted(56, 50) Source(28, 55) + SourceIndex(0) +3 >Emitted(56, 51) Source(28, 55) + SourceIndex(0) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1833,9 +1833,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(57, 9) Source(28, 57) + SourceIndex(0) +2 >Emitted(57, 50) Source(28, 58) + SourceIndex(0) +3 >Emitted(57, 51) Source(28, 58) + SourceIndex(0) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1856,15 +1856,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(58, 5) Source(28, 59) + SourceIndex(0) +2 >Emitted(58, 6) Source(28, 60) + SourceIndex(0) +3 >Emitted(58, 8) Source(28, 36) + SourceIndex(0) +4 >Emitted(58, 20) Source(28, 48) + SourceIndex(0) +5 >Emitted(58, 23) Source(28, 36) + SourceIndex(0) +6 >Emitted(58, 43) Source(28, 48) + SourceIndex(0) +7 >Emitted(58, 48) Source(28, 36) + SourceIndex(0) +8 >Emitted(58, 68) Source(28, 48) + SourceIndex(0) +9 >Emitted(58, 76) Source(28, 60) + SourceIndex(0) --- >>>})(normalN || (normalN = {})); 1 > @@ -1876,42 +1876,42 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(0) +2 >Emitted(59, 2) Source(29, 6) + SourceIndex(0) +3 >Emitted(59, 4) Source(20, 15) + SourceIndex(0) +4 >Emitted(59, 11) Source(20, 22) + SourceIndex(0) +5 >Emitted(59, 16) Source(20, 15) + SourceIndex(0) +6 >Emitted(59, 23) Source(20, 22) + SourceIndex(0) +7 >Emitted(59, 31) Source(29, 6) + SourceIndex(0) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/**@internal*/ -1->Emitted(60, 1) Source(30, 16) + SourceIndex(0) + > /**@internal*/ +1->Emitted(60, 1) Source(30, 20) + SourceIndex(0) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(61, 5) Source(30, 16) + SourceIndex(0) +1->Emitted(61, 5) Source(30, 20) + SourceIndex(0) --- >>> } 1->^^^^ @@ -1919,16 +1919,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(62, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 34) + SourceIndex(0) +1->Emitted(62, 5) Source(30, 37) + SourceIndex(0) +2 >Emitted(62, 6) Source(30, 38) + 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->Emitted(63, 5) Source(30, 37) + SourceIndex(0) +2 >Emitted(63, 21) Source(30, 38) + SourceIndex(0) --- >>>}()); 1 > @@ -1940,10 +1940,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(64, 1) Source(30, 37) + SourceIndex(0) +2 >Emitted(64, 2) Source(30, 38) + SourceIndex(0) +3 >Emitted(64, 2) Source(30, 20) + SourceIndex(0) +4 >Emitted(64, 6) Source(30, 38) + SourceIndex(0) --- >>>function internalfoo() { } 1-> @@ -1952,16 +1952,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/**@internal*/ + > /**@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) +1->Emitted(65, 1) Source(31, 20) + SourceIndex(0) +2 >Emitted(65, 10) Source(31, 29) + SourceIndex(0) +3 >Emitted(65, 21) Source(31, 40) + SourceIndex(0) +4 >Emitted(65, 26) Source(31, 44) + SourceIndex(0) +5 >Emitted(65, 27) Source(31, 45) + SourceIndex(0) --- >>>var internalNamespace; 1 > @@ -1970,14 +1970,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(66, 1) Source(32, 20) + SourceIndex(0) +2 >Emitted(66, 5) Source(32, 30) + SourceIndex(0) +3 >Emitted(66, 22) Source(32, 47) + SourceIndex(0) +4 >Emitted(66, 23) Source(32, 77) + SourceIndex(0) --- >>>(function (internalNamespace) { 1-> @@ -1987,21 +1987,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(67, 1) Source(32, 20) + SourceIndex(0) +2 >Emitted(67, 12) Source(32, 30) + SourceIndex(0) +3 >Emitted(67, 29) Source(32, 47) + SourceIndex(0) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(68, 5) Source(32, 46) + SourceIndex(0) +1->Emitted(68, 5) Source(32, 50) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(69, 9) Source(32, 46) + SourceIndex(0) +1->Emitted(69, 9) Source(32, 50) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -2009,16 +2009,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(70, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 71) + SourceIndex(0) +1->Emitted(70, 9) Source(32, 74) + SourceIndex(0) +2 >Emitted(70, 10) Source(32, 75) + 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->Emitted(71, 9) Source(32, 74) + SourceIndex(0) +2 >Emitted(71, 25) Source(32, 75) + SourceIndex(0) --- >>> }()); 1 >^^^^ @@ -2030,10 +2030,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(72, 5) Source(32, 74) + SourceIndex(0) +2 >Emitted(72, 6) Source(32, 75) + SourceIndex(0) +3 >Emitted(72, 6) Source(32, 50) + SourceIndex(0) +4 >Emitted(72, 10) Source(32, 75) + SourceIndex(0) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -2045,10 +2045,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(73, 5) Source(32, 63) + SourceIndex(0) +2 >Emitted(73, 32) Source(32, 72) + SourceIndex(0) +3 >Emitted(73, 44) Source(32, 75) + SourceIndex(0) +4 >Emitted(73, 45) Source(32, 75) + SourceIndex(0) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -2065,13 +2065,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 76) + SourceIndex(0) +2 >Emitted(74, 2) Source(32, 77) + SourceIndex(0) +3 >Emitted(74, 4) Source(32, 30) + SourceIndex(0) +4 >Emitted(74, 21) Source(32, 47) + SourceIndex(0) +5 >Emitted(74, 26) Source(32, 30) + SourceIndex(0) +6 >Emitted(74, 43) Source(32, 47) + SourceIndex(0) +7 >Emitted(74, 51) Source(32, 77) + SourceIndex(0) --- >>>var internalOther; 1 > @@ -2080,14 +2080,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(75, 1) Source(33, 20) + SourceIndex(0) +2 >Emitted(75, 5) Source(33, 30) + SourceIndex(0) +3 >Emitted(75, 18) Source(33, 43) + SourceIndex(0) +4 >Emitted(75, 19) Source(33, 83) + SourceIndex(0) --- >>>(function (internalOther) { 1-> @@ -2096,9 +2096,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(76, 1) Source(33, 20) + SourceIndex(0) +2 >Emitted(76, 12) Source(33, 30) + SourceIndex(0) +3 >Emitted(76, 25) Source(33, 43) + SourceIndex(0) --- >>> var something; 1 >^^^^ @@ -2110,10 +2110,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(77, 5) Source(33, 44) + SourceIndex(0) +2 >Emitted(77, 9) Source(33, 44) + SourceIndex(0) +3 >Emitted(77, 18) Source(33, 53) + SourceIndex(0) +4 >Emitted(77, 19) Source(33, 83) + SourceIndex(0) --- >>> (function (something) { 1->^^^^ @@ -2123,21 +2123,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(78, 5) Source(33, 44) + SourceIndex(0) +2 >Emitted(78, 16) Source(33, 44) + SourceIndex(0) +3 >Emitted(78, 25) Source(33, 53) + SourceIndex(0) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(79, 9) Source(33, 52) + SourceIndex(0) +1->Emitted(79, 9) Source(33, 56) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(80, 13) Source(33, 52) + SourceIndex(0) +1->Emitted(80, 13) Source(33, 56) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -2145,16 +2145,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(81, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 77) + SourceIndex(0) +1->Emitted(81, 13) Source(33, 80) + SourceIndex(0) +2 >Emitted(81, 14) Source(33, 81) + 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->Emitted(82, 13) Source(33, 80) + SourceIndex(0) +2 >Emitted(82, 29) Source(33, 81) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -2166,10 +2166,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 9) Source(33, 80) + SourceIndex(0) +2 >Emitted(83, 10) Source(33, 81) + SourceIndex(0) +3 >Emitted(83, 10) Source(33, 56) + SourceIndex(0) +4 >Emitted(83, 14) Source(33, 81) + SourceIndex(0) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2181,10 +2181,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(84, 9) Source(33, 69) + SourceIndex(0) +2 >Emitted(84, 28) Source(33, 78) + SourceIndex(0) +3 >Emitted(84, 40) Source(33, 81) + SourceIndex(0) +4 >Emitted(84, 41) Source(33, 81) + SourceIndex(0) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2205,15 +2205,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 82) + SourceIndex(0) +2 >Emitted(85, 6) Source(33, 83) + SourceIndex(0) +3 >Emitted(85, 8) Source(33, 44) + SourceIndex(0) +4 >Emitted(85, 17) Source(33, 53) + SourceIndex(0) +5 >Emitted(85, 20) Source(33, 44) + SourceIndex(0) +6 >Emitted(85, 43) Source(33, 53) + SourceIndex(0) +7 >Emitted(85, 48) Source(33, 44) + SourceIndex(0) +8 >Emitted(85, 71) Source(33, 53) + SourceIndex(0) +9 >Emitted(85, 79) Source(33, 83) + SourceIndex(0) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2231,13 +2231,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(86, 1) Source(33, 82) + SourceIndex(0) +2 >Emitted(86, 2) Source(33, 83) + SourceIndex(0) +3 >Emitted(86, 4) Source(33, 30) + SourceIndex(0) +4 >Emitted(86, 17) Source(33, 43) + SourceIndex(0) +5 >Emitted(86, 22) Source(33, 30) + SourceIndex(0) +6 >Emitted(86, 35) Source(33, 43) + SourceIndex(0) +7 >Emitted(86, 43) Source(33, 83) + SourceIndex(0) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -2249,7 +2249,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -2257,14 +2257,14 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(87, 1) Source(34, 20) + SourceIndex(0) +2 >Emitted(87, 5) Source(34, 27) + SourceIndex(0) +3 >Emitted(87, 19) Source(34, 41) + SourceIndex(0) +4 >Emitted(87, 22) Source(34, 44) + SourceIndex(0) +5 >Emitted(87, 39) Source(34, 61) + SourceIndex(0) +6 >Emitted(87, 40) Source(34, 62) + SourceIndex(0) +7 >Emitted(87, 49) Source(34, 71) + SourceIndex(0) +8 >Emitted(87, 50) Source(34, 72) + SourceIndex(0) --- >>>var internalConst = 10; 1 > @@ -2274,19 +2274,19 @@ sourceFile:../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ + > /**@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) +1 >Emitted(88, 1) Source(36, 20) + SourceIndex(0) +2 >Emitted(88, 5) Source(36, 26) + SourceIndex(0) +3 >Emitted(88, 18) Source(36, 39) + SourceIndex(0) +4 >Emitted(88, 21) Source(36, 42) + SourceIndex(0) +5 >Emitted(88, 23) Source(36, 44) + SourceIndex(0) +6 >Emitted(88, 24) Source(36, 45) + SourceIndex(0) --- >>>var internalEnum; 1 > @@ -2294,12 +2294,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(89, 1) Source(37, 20) + SourceIndex(0) +2 >Emitted(89, 5) Source(37, 25) + SourceIndex(0) +3 >Emitted(89, 17) Source(37, 49) + SourceIndex(0) --- >>>(function (internalEnum) { 1-> @@ -2309,9 +2309,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(90, 1) Source(37, 20) + SourceIndex(0) +2 >Emitted(90, 12) Source(37, 25) + SourceIndex(0) +3 >Emitted(90, 24) Source(37, 37) + SourceIndex(0) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2321,9 +2321,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 5) Source(37, 40) + SourceIndex(0) +2 >Emitted(91, 46) Source(37, 41) + SourceIndex(0) +3 >Emitted(91, 47) Source(37, 41) + SourceIndex(0) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2333,9 +2333,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(92, 5) Source(37, 43) + SourceIndex(0) +2 >Emitted(92, 46) Source(37, 44) + SourceIndex(0) +3 >Emitted(92, 47) Source(37, 44) + SourceIndex(0) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2344,9 +2344,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(93, 5) Source(37, 46) + SourceIndex(0) +2 >Emitted(93, 46) Source(37, 47) + SourceIndex(0) +3 >Emitted(93, 47) Source(37, 47) + SourceIndex(0) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2363,13 +2363,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(37, 48) + SourceIndex(0) +2 >Emitted(94, 2) Source(37, 49) + SourceIndex(0) +3 >Emitted(94, 4) Source(37, 25) + SourceIndex(0) +4 >Emitted(94, 16) Source(37, 37) + SourceIndex(0) +5 >Emitted(94, 21) Source(37, 25) + SourceIndex(0) +6 >Emitted(94, 33) Source(37, 37) + SourceIndex(0) +7 >Emitted(94, 41) Source(37, 49) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -3111,7 +3111,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -3266,24 +3266,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3291,29 +3291,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /**@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3490,7 +3490,7 @@ 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -3778,15 +3778,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /**@internal*/ -1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(15, 5) Source(14, 24) + SourceIndex(3) --- >>> } 1->^^^^ @@ -3794,8 +3794,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +1->Emitted(16, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 41) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -3805,29 +3805,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /**@internal*/ prop: string; - > /**@internal*/ + > /**@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) +1->Emitted(17, 5) Source(16, 24) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 30) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 24) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 35) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /**@internal*/ + > /**@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) +1->Emitted(18, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 29) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -3844,13 +3844,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(19, 14) Source(17, 24) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 34) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 41) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 43) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 44) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 45) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 46) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -3859,16 +3859,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(20, 14) Source(18, 24) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 30) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 41) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 45) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -3876,17 +3876,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -3898,16 +3898,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -3916,23 +3916,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -3942,22 +3942,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /**@internal*/ -1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) + > /**@internal*/ +1->Emitted(28, 5) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -3965,16 +3965,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 42) + 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->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -3986,10 +3986,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -4001,10 +4001,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 42) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -4014,16 +4014,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(34, 5) Source(22, 24) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 40) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 43) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 47) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -4035,10 +4035,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 48) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -4047,14 +4047,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /**@internal*/ + > /**@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) +1->Emitted(36, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 41) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 54) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -4064,21 +4064,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4086,16 +4086,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 74) + 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->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4107,10 +4107,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -4122,10 +4122,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -4146,15 +4146,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 76) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -4163,14 +4163,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(45, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 41) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 50) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -4179,9 +4179,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(46, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -4193,10 +4193,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -4206,21 +4206,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -4228,16 +4228,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 88) + 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->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -4249,10 +4249,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -4264,10 +4264,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -4288,15 +4288,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -4317,15 +4317,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 90) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -4336,20 +4336,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /**@internal*/ export import + > /**@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) +1 >Emitted(57, 5) Source(25, 38) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 48) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 51) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 64) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 65) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 66) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 67) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -4358,17 +4358,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const + > /**@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) +1 >Emitted(58, 5) Source(27, 37) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 50) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 53) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 55) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 56) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -4376,12 +4376,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(59, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 36) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -4391,9 +4391,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(60, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -4403,9 +4403,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -4415,9 +4415,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -4427,9 +4427,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -4450,15 +4450,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -4470,42 +4470,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/**@internal*/ -1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) + > /**@internal*/ +1->Emitted(66, 1) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4513,16 +4513,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 38) + 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->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -4534,10 +4534,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 38) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -4546,16 +4546,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/**@internal*/ + > /**@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) +1->Emitted(71, 1) Source(31, 20) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 29) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 40) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 44) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 45) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -4564,14 +4564,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(72, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 30) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 47) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -4581,21 +4581,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(73, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4603,16 +4603,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 75) + 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->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4624,10 +4624,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -4639,10 +4639,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -4659,13 +4659,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 77) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -4674,14 +4674,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(81, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 30) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 43) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -4690,9 +4690,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(82, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -4704,10 +4704,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -4717,21 +4717,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4739,16 +4739,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 81) + 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->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4760,10 +4760,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -4775,10 +4775,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -4799,15 +4799,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -4825,13 +4825,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 83) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -4843,7 +4843,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/**@internal*/ + > /**@internal*/ 2 >import 3 > internalImport 4 > = @@ -4851,14 +4851,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 20) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 27) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 41) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 44) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 61) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 62) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 71) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 72) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -4868,19 +4868,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ + > /**@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) +1 >Emitted(94, 1) Source(36, 20) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 26) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 39) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 42) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 44) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 45) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -4888,12 +4888,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/**@internal*/ + > /**@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) +1 >Emitted(95, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 25) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -4903,9 +4903,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(96, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -4915,9 +4915,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -4927,9 +4927,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -4938,9 +4938,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -4957,13 +4957,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 826b0f65121d6..385e2fcc9ebf3 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 @@ -72,31 +72,31 @@ namespace N { 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 } + 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/second_part2.ts] class C { @@ -244,7 +244,7 @@ declare class C { //# 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,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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"} +{"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;AAEG,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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;ACpChD,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -440,22 +440,22 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + 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) +1->Emitted(14, 5) Source(14, 9) + SourceIndex(2) +2 >Emitted(14, 19) Source(14, 23) + SourceIndex(2) --- >>> /**@internal*/ prop: string; 1->^^^^ @@ -467,20 +467,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(15, 5) Source(15, 9) + SourceIndex(2) +2 >Emitted(15, 19) Source(15, 23) + SourceIndex(2) +3 >Emitted(15, 20) Source(15, 24) + SourceIndex(2) +4 >Emitted(15, 24) Source(15, 28) + SourceIndex(2) +5 >Emitted(15, 26) Source(15, 30) + SourceIndex(2) +6 >Emitted(15, 32) Source(15, 36) + SourceIndex(2) +7 >Emitted(15, 33) Source(15, 37) + SourceIndex(2) --- >>> /**@internal*/ method(): void; 1->^^^^ @@ -489,14 +489,14 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(16, 5) Source(16, 9) + SourceIndex(2) +2 >Emitted(16, 19) Source(16, 23) + SourceIndex(2) +3 >Emitted(16, 20) Source(16, 24) + SourceIndex(2) +4 >Emitted(16, 26) Source(16, 30) + SourceIndex(2) --- >>> /**@internal*/ get c(): number; 1->^^^^ @@ -509,23 +509,23 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^^^^-> 1->() { } - > + > 2 > /**@internal*/ 3 > 4 > get 5 > c 6 > () { return 10; } - > /**@internal*/ set c(val: + > /**@internal*/ set c(val: 7 > number 8 > -1->Emitted(17, 5) Source(17, 5) + SourceIndex(2) -2 >Emitted(17, 19) Source(17, 19) + SourceIndex(2) -3 >Emitted(17, 20) Source(17, 20) + SourceIndex(2) -4 >Emitted(17, 24) Source(17, 24) + SourceIndex(2) -5 >Emitted(17, 25) Source(17, 25) + SourceIndex(2) -6 >Emitted(17, 29) Source(18, 31) + SourceIndex(2) -7 >Emitted(17, 35) Source(18, 37) + SourceIndex(2) -8 >Emitted(17, 36) Source(17, 42) + SourceIndex(2) +1->Emitted(17, 5) Source(17, 9) + SourceIndex(2) +2 >Emitted(17, 19) Source(17, 23) + SourceIndex(2) +3 >Emitted(17, 20) Source(17, 24) + SourceIndex(2) +4 >Emitted(17, 24) Source(17, 28) + SourceIndex(2) +5 >Emitted(17, 25) Source(17, 29) + SourceIndex(2) +6 >Emitted(17, 29) Source(18, 35) + SourceIndex(2) +7 >Emitted(17, 35) Source(18, 41) + SourceIndex(2) +8 >Emitted(17, 36) Source(17, 46) + SourceIndex(2) --- >>> /**@internal*/ set c(val: number); 1->^^^^ @@ -538,7 +538,7 @@ sourceFile:../second/second_part1.ts 8 > ^^^^^^ 9 > ^^ 1-> - > + > 2 > /**@internal*/ 3 > 4 > set @@ -547,22 +547,22 @@ sourceFile:../second/second_part1.ts 7 > val: 8 > number 9 > ) { } -1->Emitted(18, 5) Source(18, 5) + SourceIndex(2) -2 >Emitted(18, 19) Source(18, 19) + SourceIndex(2) -3 >Emitted(18, 20) Source(18, 20) + SourceIndex(2) -4 >Emitted(18, 24) Source(18, 24) + SourceIndex(2) -5 >Emitted(18, 25) Source(18, 25) + SourceIndex(2) -6 >Emitted(18, 26) Source(18, 26) + SourceIndex(2) -7 >Emitted(18, 31) Source(18, 31) + SourceIndex(2) -8 >Emitted(18, 37) Source(18, 37) + SourceIndex(2) -9 >Emitted(18, 39) Source(18, 42) + SourceIndex(2) +1->Emitted(18, 5) Source(18, 9) + SourceIndex(2) +2 >Emitted(18, 19) Source(18, 23) + SourceIndex(2) +3 >Emitted(18, 20) Source(18, 24) + SourceIndex(2) +4 >Emitted(18, 24) Source(18, 28) + SourceIndex(2) +5 >Emitted(18, 25) Source(18, 29) + SourceIndex(2) +6 >Emitted(18, 26) Source(18, 30) + SourceIndex(2) +7 >Emitted(18, 31) Source(18, 35) + SourceIndex(2) +8 >Emitted(18, 37) Source(18, 41) + SourceIndex(2) +9 >Emitted(18, 39) Source(18, 46) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) + > } +1 >Emitted(19, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -571,14 +571,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^-> 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +1->Emitted(20, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 23) + SourceIndex(2) --- >>> /**@internal*/ class C { 1->^^^^ @@ -587,22 +587,22 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^ 5 > ^ 1->{ - > + > 2 > /**@internal*/ 3 > 4 > export class 5 > C -1->Emitted(21, 5) Source(21, 5) + SourceIndex(2) -2 >Emitted(21, 19) Source(21, 19) + SourceIndex(2) -3 >Emitted(21, 20) Source(21, 20) + SourceIndex(2) -4 >Emitted(21, 26) Source(21, 33) + SourceIndex(2) -5 >Emitted(21, 27) Source(21, 34) + SourceIndex(2) +1->Emitted(21, 5) Source(21, 9) + SourceIndex(2) +2 >Emitted(21, 19) Source(21, 23) + SourceIndex(2) +3 >Emitted(21, 20) Source(21, 24) + SourceIndex(2) +4 >Emitted(21, 26) Source(21, 37) + SourceIndex(2) +5 >Emitted(21, 27) Source(21, 38) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(22, 6) Source(21, 38) + SourceIndex(2) +1 >Emitted(22, 6) Source(21, 42) + SourceIndex(2) --- >>> /**@internal*/ function foo(): void; 1->^^^^ @@ -613,18 +613,18 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^^^^^-> 1-> - > + > 2 > /**@internal*/ 3 > 4 > export function 5 > foo 6 > () {} -1->Emitted(23, 5) Source(22, 5) + SourceIndex(2) -2 >Emitted(23, 19) Source(22, 19) + SourceIndex(2) -3 >Emitted(23, 20) Source(22, 20) + SourceIndex(2) -4 >Emitted(23, 29) Source(22, 36) + SourceIndex(2) -5 >Emitted(23, 32) Source(22, 39) + SourceIndex(2) -6 >Emitted(23, 41) Source(22, 44) + SourceIndex(2) +1->Emitted(23, 5) Source(22, 9) + SourceIndex(2) +2 >Emitted(23, 19) Source(22, 23) + SourceIndex(2) +3 >Emitted(23, 20) Source(22, 24) + SourceIndex(2) +4 >Emitted(23, 29) Source(22, 40) + SourceIndex(2) +5 >Emitted(23, 32) Source(22, 43) + SourceIndex(2) +6 >Emitted(23, 41) Source(22, 48) + SourceIndex(2) --- >>> /**@internal*/ namespace someNamespace { 1->^^^^ @@ -634,18 +634,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - > + > 2 > /**@internal*/ 3 > 4 > export namespace 5 > someNamespace 6 > -1->Emitted(24, 5) Source(23, 5) + SourceIndex(2) -2 >Emitted(24, 19) Source(23, 19) + SourceIndex(2) -3 >Emitted(24, 20) Source(23, 20) + SourceIndex(2) -4 >Emitted(24, 30) Source(23, 37) + SourceIndex(2) -5 >Emitted(24, 43) Source(23, 50) + SourceIndex(2) -6 >Emitted(24, 44) Source(23, 51) + SourceIndex(2) +1->Emitted(24, 5) Source(23, 9) + SourceIndex(2) +2 >Emitted(24, 19) Source(23, 23) + SourceIndex(2) +3 >Emitted(24, 20) Source(23, 24) + SourceIndex(2) +4 >Emitted(24, 30) Source(23, 41) + SourceIndex(2) +5 >Emitted(24, 43) Source(23, 54) + SourceIndex(2) +6 >Emitted(24, 44) Source(23, 55) + SourceIndex(2) --- >>> class C { 1 >^^^^^^^^ @@ -654,20 +654,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(25, 9) Source(23, 53) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 66) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 67) + SourceIndex(2) +1 >Emitted(25, 9) Source(23, 57) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 70) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 71) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(26, 10) Source(23, 70) + SourceIndex(2) +1 >Emitted(26, 10) Source(23, 74) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(27, 6) Source(23, 72) + SourceIndex(2) +1 >Emitted(27, 6) Source(23, 76) + SourceIndex(2) --- >>> /**@internal*/ namespace someOther.something { 1->^^^^ @@ -679,7 +679,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - > + > 2 > /**@internal*/ 3 > 4 > export namespace @@ -687,14 +687,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > something 8 > -1->Emitted(28, 5) Source(24, 5) + SourceIndex(2) -2 >Emitted(28, 19) Source(24, 19) + SourceIndex(2) -3 >Emitted(28, 20) Source(24, 20) + SourceIndex(2) -4 >Emitted(28, 30) Source(24, 37) + SourceIndex(2) -5 >Emitted(28, 39) Source(24, 46) + SourceIndex(2) -6 >Emitted(28, 40) Source(24, 47) + SourceIndex(2) -7 >Emitted(28, 49) Source(24, 56) + SourceIndex(2) -8 >Emitted(28, 50) Source(24, 57) + SourceIndex(2) +1->Emitted(28, 5) Source(24, 9) + SourceIndex(2) +2 >Emitted(28, 19) Source(24, 23) + SourceIndex(2) +3 >Emitted(28, 20) Source(24, 24) + SourceIndex(2) +4 >Emitted(28, 30) Source(24, 41) + SourceIndex(2) +5 >Emitted(28, 39) Source(24, 50) + SourceIndex(2) +6 >Emitted(28, 40) Source(24, 51) + SourceIndex(2) +7 >Emitted(28, 49) Source(24, 60) + SourceIndex(2) +8 >Emitted(28, 50) Source(24, 61) + SourceIndex(2) --- >>> class someClass { 1 >^^^^^^^^ @@ -703,20 +703,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(29, 9) Source(24, 59) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 72) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 81) + SourceIndex(2) +1 >Emitted(29, 9) Source(24, 63) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 76) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 85) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(30, 10) Source(24, 84) + SourceIndex(2) +1 >Emitted(30, 10) Source(24, 88) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(31, 6) Source(24, 86) + SourceIndex(2) +1 >Emitted(31, 6) Source(24, 90) + SourceIndex(2) --- >>> /**@internal*/ export import someImport = someNamespace.C; 1->^^^^ @@ -731,7 +731,7 @@ sourceFile:../second/second_part1.ts 10> ^ 11> ^ 1-> - > + > 2 > /**@internal*/ 3 > 4 > export @@ -742,17 +742,17 @@ sourceFile:../second/second_part1.ts 9 > . 10> C 11> ; -1->Emitted(32, 5) Source(25, 5) + SourceIndex(2) -2 >Emitted(32, 19) Source(25, 19) + SourceIndex(2) -3 >Emitted(32, 20) Source(25, 20) + SourceIndex(2) -4 >Emitted(32, 26) Source(25, 26) + SourceIndex(2) -5 >Emitted(32, 34) Source(25, 34) + SourceIndex(2) -6 >Emitted(32, 44) Source(25, 44) + SourceIndex(2) -7 >Emitted(32, 47) Source(25, 47) + SourceIndex(2) -8 >Emitted(32, 60) Source(25, 60) + SourceIndex(2) -9 >Emitted(32, 61) Source(25, 61) + SourceIndex(2) -10>Emitted(32, 62) Source(25, 62) + SourceIndex(2) -11>Emitted(32, 63) Source(25, 63) + SourceIndex(2) +1->Emitted(32, 5) Source(25, 9) + SourceIndex(2) +2 >Emitted(32, 19) Source(25, 23) + SourceIndex(2) +3 >Emitted(32, 20) Source(25, 24) + SourceIndex(2) +4 >Emitted(32, 26) Source(25, 30) + SourceIndex(2) +5 >Emitted(32, 34) Source(25, 38) + SourceIndex(2) +6 >Emitted(32, 44) Source(25, 48) + SourceIndex(2) +7 >Emitted(32, 47) Source(25, 51) + SourceIndex(2) +8 >Emitted(32, 60) Source(25, 64) + SourceIndex(2) +9 >Emitted(32, 61) Source(25, 65) + SourceIndex(2) +10>Emitted(32, 62) Source(25, 66) + SourceIndex(2) +11>Emitted(32, 63) Source(25, 67) + SourceIndex(2) --- >>> /**@internal*/ type internalType = internalC; 1 >^^^^ @@ -764,7 +764,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1 > - > + > 2 > /**@internal*/ 3 > 4 > export type @@ -772,14 +772,14 @@ sourceFile:../second/second_part1.ts 6 > = 7 > internalC 8 > ; -1 >Emitted(33, 5) Source(26, 5) + SourceIndex(2) -2 >Emitted(33, 19) Source(26, 19) + SourceIndex(2) -3 >Emitted(33, 20) Source(26, 20) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 32) + SourceIndex(2) -5 >Emitted(33, 37) Source(26, 44) + SourceIndex(2) -6 >Emitted(33, 40) Source(26, 47) + SourceIndex(2) -7 >Emitted(33, 49) Source(26, 56) + SourceIndex(2) -8 >Emitted(33, 50) Source(26, 57) + SourceIndex(2) +1 >Emitted(33, 5) Source(26, 9) + SourceIndex(2) +2 >Emitted(33, 19) Source(26, 23) + SourceIndex(2) +3 >Emitted(33, 20) Source(26, 24) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 36) + SourceIndex(2) +5 >Emitted(33, 37) Source(26, 48) + SourceIndex(2) +6 >Emitted(33, 40) Source(26, 51) + SourceIndex(2) +7 >Emitted(33, 49) Source(26, 60) + SourceIndex(2) +8 >Emitted(33, 50) Source(26, 61) + SourceIndex(2) --- >>> /**@internal*/ const internalConst = 10; 1 >^^^^ @@ -790,20 +790,20 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^ 7 > ^ 1 > - > + > 2 > /**@internal*/ 3 > export 4 > const 5 > internalConst 6 > = 10 7 > ; -1 >Emitted(34, 5) Source(27, 5) + SourceIndex(2) -2 >Emitted(34, 19) Source(27, 19) + SourceIndex(2) -3 >Emitted(34, 20) Source(27, 27) + SourceIndex(2) -4 >Emitted(34, 26) Source(27, 33) + SourceIndex(2) -5 >Emitted(34, 39) Source(27, 46) + SourceIndex(2) -6 >Emitted(34, 44) Source(27, 51) + SourceIndex(2) -7 >Emitted(34, 45) Source(27, 52) + SourceIndex(2) +1 >Emitted(34, 5) Source(27, 9) + SourceIndex(2) +2 >Emitted(34, 19) Source(27, 23) + SourceIndex(2) +3 >Emitted(34, 20) Source(27, 31) + SourceIndex(2) +4 >Emitted(34, 26) Source(27, 37) + SourceIndex(2) +5 >Emitted(34, 39) Source(27, 50) + SourceIndex(2) +6 >Emitted(34, 44) Source(27, 55) + SourceIndex(2) +7 >Emitted(34, 45) Source(27, 56) + SourceIndex(2) --- >>> /**@internal*/ enum internalEnum { 1 >^^^^ @@ -812,16 +812,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^^^^^^^^^^^^ 1 > - > + > 2 > /**@internal*/ 3 > 4 > export enum 5 > internalEnum -1 >Emitted(35, 5) Source(28, 5) + SourceIndex(2) -2 >Emitted(35, 19) Source(28, 19) + SourceIndex(2) -3 >Emitted(35, 20) Source(28, 20) + SourceIndex(2) -4 >Emitted(35, 25) Source(28, 32) + SourceIndex(2) -5 >Emitted(35, 37) Source(28, 44) + SourceIndex(2) +1 >Emitted(35, 5) Source(28, 9) + SourceIndex(2) +2 >Emitted(35, 19) Source(28, 23) + SourceIndex(2) +3 >Emitted(35, 20) Source(28, 24) + SourceIndex(2) +4 >Emitted(35, 25) Source(28, 36) + SourceIndex(2) +5 >Emitted(35, 37) Source(28, 48) + SourceIndex(2) --- >>> a = 0, 1 >^^^^^^^^ @@ -831,9 +831,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(36, 9) Source(28, 47) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 48) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 48) + SourceIndex(2) +1 >Emitted(36, 9) Source(28, 51) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 52) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 52) + SourceIndex(2) --- >>> b = 1, 1->^^^^^^^^ @@ -843,9 +843,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(37, 9) Source(28, 50) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 51) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 51) + SourceIndex(2) +1->Emitted(37, 9) Source(28, 54) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 55) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 55) + SourceIndex(2) --- >>> c = 2 1->^^^^^^^^ @@ -854,21 +854,21 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(38, 9) Source(28, 53) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 54) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 54) + SourceIndex(2) +1->Emitted(38, 9) Source(28, 57) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 58) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 58) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(39, 6) Source(28, 56) + SourceIndex(2) +1 >Emitted(39, 6) Source(28, 60) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) + > } +1 >Emitted(40, 2) Source(29, 6) + SourceIndex(2) --- >>>/**@internal*/ declare class internalC { 1-> @@ -877,22 +877,22 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^^^^^^ 5 > ^^^^^^^^^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > class 5 > internalC -1->Emitted(41, 1) Source(30, 1) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 15) + SourceIndex(2) -3 >Emitted(41, 16) Source(30, 16) + SourceIndex(2) -4 >Emitted(41, 30) Source(30, 22) + SourceIndex(2) -5 >Emitted(41, 39) Source(30, 31) + SourceIndex(2) +1->Emitted(41, 1) Source(30, 5) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 19) + SourceIndex(2) +3 >Emitted(41, 16) Source(30, 20) + SourceIndex(2) +4 >Emitted(41, 30) Source(30, 26) + SourceIndex(2) +5 >Emitted(41, 39) Source(30, 35) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(42, 2) Source(30, 34) + SourceIndex(2) +1 >Emitted(42, 2) Source(30, 38) + SourceIndex(2) --- >>>/**@internal*/ declare function internalfoo(): void; 1-> @@ -903,18 +903,18 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^-> 1-> - > + > 2 >/**@internal*/ 3 > 4 > function 5 > internalfoo 6 > () {} -1->Emitted(43, 1) Source(31, 1) + SourceIndex(2) -2 >Emitted(43, 15) Source(31, 15) + SourceIndex(2) -3 >Emitted(43, 16) Source(31, 16) + SourceIndex(2) -4 >Emitted(43, 33) Source(31, 25) + SourceIndex(2) -5 >Emitted(43, 44) Source(31, 36) + SourceIndex(2) -6 >Emitted(43, 53) Source(31, 41) + SourceIndex(2) +1->Emitted(43, 1) Source(31, 5) + SourceIndex(2) +2 >Emitted(43, 15) Source(31, 19) + SourceIndex(2) +3 >Emitted(43, 16) Source(31, 20) + SourceIndex(2) +4 >Emitted(43, 33) Source(31, 29) + SourceIndex(2) +5 >Emitted(43, 44) Source(31, 40) + SourceIndex(2) +6 >Emitted(43, 53) Source(31, 45) + SourceIndex(2) --- >>>/**@internal*/ declare namespace internalNamespace { 1-> @@ -924,18 +924,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > namespace 5 > internalNamespace 6 > -1->Emitted(44, 1) Source(32, 1) + SourceIndex(2) -2 >Emitted(44, 15) Source(32, 15) + SourceIndex(2) -3 >Emitted(44, 16) Source(32, 16) + SourceIndex(2) -4 >Emitted(44, 34) Source(32, 26) + SourceIndex(2) -5 >Emitted(44, 51) Source(32, 43) + SourceIndex(2) -6 >Emitted(44, 52) Source(32, 44) + SourceIndex(2) +1->Emitted(44, 1) Source(32, 5) + SourceIndex(2) +2 >Emitted(44, 15) Source(32, 19) + SourceIndex(2) +3 >Emitted(44, 16) Source(32, 20) + SourceIndex(2) +4 >Emitted(44, 34) Source(32, 30) + SourceIndex(2) +5 >Emitted(44, 51) Source(32, 47) + SourceIndex(2) +6 >Emitted(44, 52) Source(32, 48) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -944,20 +944,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(45, 5) Source(32, 46) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 59) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 68) + SourceIndex(2) +1 >Emitted(45, 5) Source(32, 50) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 63) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 72) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(46, 6) Source(32, 71) + SourceIndex(2) +1 >Emitted(46, 6) Source(32, 75) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(47, 2) Source(32, 73) + SourceIndex(2) +1 >Emitted(47, 2) Source(32, 77) + SourceIndex(2) --- >>>/**@internal*/ declare namespace internalOther.something { 1-> @@ -969,7 +969,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > namespace @@ -977,14 +977,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > something 8 > -1->Emitted(48, 1) Source(33, 1) + SourceIndex(2) -2 >Emitted(48, 15) Source(33, 15) + SourceIndex(2) -3 >Emitted(48, 16) Source(33, 16) + SourceIndex(2) -4 >Emitted(48, 34) Source(33, 26) + SourceIndex(2) -5 >Emitted(48, 47) Source(33, 39) + SourceIndex(2) -6 >Emitted(48, 48) Source(33, 40) + SourceIndex(2) -7 >Emitted(48, 57) Source(33, 49) + SourceIndex(2) -8 >Emitted(48, 58) Source(33, 50) + SourceIndex(2) +1->Emitted(48, 1) Source(33, 5) + SourceIndex(2) +2 >Emitted(48, 15) Source(33, 19) + SourceIndex(2) +3 >Emitted(48, 16) Source(33, 20) + SourceIndex(2) +4 >Emitted(48, 34) Source(33, 30) + SourceIndex(2) +5 >Emitted(48, 47) Source(33, 43) + SourceIndex(2) +6 >Emitted(48, 48) Source(33, 44) + SourceIndex(2) +7 >Emitted(48, 57) Source(33, 53) + SourceIndex(2) +8 >Emitted(48, 58) Source(33, 54) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -993,20 +993,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(49, 5) Source(33, 52) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 65) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 74) + SourceIndex(2) +1 >Emitted(49, 5) Source(33, 56) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 69) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 78) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(50, 6) Source(33, 77) + SourceIndex(2) +1 >Emitted(50, 6) Source(33, 81) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(33, 79) + SourceIndex(2) +1 >Emitted(51, 2) Source(33, 83) + SourceIndex(2) --- >>>/**@internal*/ import internalImport = internalNamespace.someClass; 1-> @@ -1020,7 +1020,7 @@ sourceFile:../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > import @@ -1030,16 +1030,16 @@ sourceFile:../second/second_part1.ts 8 > . 9 > someClass 10> ; -1->Emitted(52, 1) Source(34, 1) + SourceIndex(2) -2 >Emitted(52, 15) Source(34, 15) + SourceIndex(2) -3 >Emitted(52, 16) Source(34, 16) + SourceIndex(2) -4 >Emitted(52, 23) Source(34, 23) + SourceIndex(2) -5 >Emitted(52, 37) Source(34, 37) + SourceIndex(2) -6 >Emitted(52, 40) Source(34, 40) + SourceIndex(2) -7 >Emitted(52, 57) Source(34, 57) + SourceIndex(2) -8 >Emitted(52, 58) Source(34, 58) + SourceIndex(2) -9 >Emitted(52, 67) Source(34, 67) + SourceIndex(2) -10>Emitted(52, 68) Source(34, 68) + SourceIndex(2) +1->Emitted(52, 1) Source(34, 5) + SourceIndex(2) +2 >Emitted(52, 15) Source(34, 19) + SourceIndex(2) +3 >Emitted(52, 16) Source(34, 20) + SourceIndex(2) +4 >Emitted(52, 23) Source(34, 27) + SourceIndex(2) +5 >Emitted(52, 37) Source(34, 41) + SourceIndex(2) +6 >Emitted(52, 40) Source(34, 44) + SourceIndex(2) +7 >Emitted(52, 57) Source(34, 61) + SourceIndex(2) +8 >Emitted(52, 58) Source(34, 62) + SourceIndex(2) +9 >Emitted(52, 67) Source(34, 71) + SourceIndex(2) +10>Emitted(52, 68) Source(34, 72) + SourceIndex(2) --- >>>/**@internal*/ declare type internalType = internalC; 1 > @@ -1051,7 +1051,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1 > - > + > 2 >/**@internal*/ 3 > 4 > type @@ -1059,14 +1059,14 @@ sourceFile:../second/second_part1.ts 6 > = 7 > internalC 8 > ; -1 >Emitted(53, 1) Source(35, 1) + SourceIndex(2) -2 >Emitted(53, 15) Source(35, 15) + SourceIndex(2) -3 >Emitted(53, 16) Source(35, 16) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 21) + SourceIndex(2) -5 >Emitted(53, 41) Source(35, 33) + SourceIndex(2) -6 >Emitted(53, 44) Source(35, 36) + SourceIndex(2) -7 >Emitted(53, 53) Source(35, 45) + SourceIndex(2) -8 >Emitted(53, 54) Source(35, 46) + SourceIndex(2) +1 >Emitted(53, 1) Source(35, 5) + SourceIndex(2) +2 >Emitted(53, 15) Source(35, 19) + SourceIndex(2) +3 >Emitted(53, 16) Source(35, 20) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 25) + SourceIndex(2) +5 >Emitted(53, 41) Source(35, 37) + SourceIndex(2) +6 >Emitted(53, 44) Source(35, 40) + SourceIndex(2) +7 >Emitted(53, 53) Source(35, 49) + SourceIndex(2) +8 >Emitted(53, 54) Source(35, 50) + SourceIndex(2) --- >>>/**@internal*/ declare const internalConst = 10; 1 > @@ -1078,7 +1078,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^ 8 > ^ 1 > - > + > 2 >/**@internal*/ 3 > 4 > @@ -1086,14 +1086,14 @@ sourceFile:../second/second_part1.ts 6 > internalConst 7 > = 10 8 > ; -1 >Emitted(54, 1) Source(36, 1) + SourceIndex(2) -2 >Emitted(54, 15) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 16) Source(36, 16) + SourceIndex(2) -4 >Emitted(54, 24) Source(36, 16) + SourceIndex(2) -5 >Emitted(54, 30) Source(36, 22) + SourceIndex(2) -6 >Emitted(54, 43) Source(36, 35) + SourceIndex(2) -7 >Emitted(54, 48) Source(36, 40) + SourceIndex(2) -8 >Emitted(54, 49) Source(36, 41) + SourceIndex(2) +1 >Emitted(54, 1) Source(36, 5) + SourceIndex(2) +2 >Emitted(54, 15) Source(36, 19) + SourceIndex(2) +3 >Emitted(54, 16) Source(36, 20) + SourceIndex(2) +4 >Emitted(54, 24) Source(36, 20) + SourceIndex(2) +5 >Emitted(54, 30) Source(36, 26) + SourceIndex(2) +6 >Emitted(54, 43) Source(36, 39) + SourceIndex(2) +7 >Emitted(54, 48) Source(36, 44) + SourceIndex(2) +8 >Emitted(54, 49) Source(36, 45) + SourceIndex(2) --- >>>/**@internal*/ declare enum internalEnum { 1 > @@ -1102,16 +1102,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^^^^^ 5 > ^^^^^^^^^^^^ 1 > - > + > 2 >/**@internal*/ 3 > 4 > enum 5 > internalEnum -1 >Emitted(55, 1) Source(37, 1) + SourceIndex(2) -2 >Emitted(55, 15) Source(37, 15) + SourceIndex(2) -3 >Emitted(55, 16) Source(37, 16) + SourceIndex(2) -4 >Emitted(55, 29) Source(37, 21) + SourceIndex(2) -5 >Emitted(55, 41) Source(37, 33) + SourceIndex(2) +1 >Emitted(55, 1) Source(37, 5) + SourceIndex(2) +2 >Emitted(55, 15) Source(37, 19) + SourceIndex(2) +3 >Emitted(55, 16) Source(37, 20) + SourceIndex(2) +4 >Emitted(55, 29) Source(37, 25) + SourceIndex(2) +5 >Emitted(55, 41) Source(37, 37) + SourceIndex(2) --- >>> a = 0, 1 >^^^^ @@ -1121,9 +1121,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(56, 5) Source(37, 36) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 37) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 37) + SourceIndex(2) +1 >Emitted(56, 5) Source(37, 40) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 41) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 41) + SourceIndex(2) --- >>> b = 1, 1->^^^^ @@ -1133,9 +1133,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(57, 5) Source(37, 39) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 40) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 40) + SourceIndex(2) +1->Emitted(57, 5) Source(37, 43) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 44) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 44) + SourceIndex(2) --- >>> c = 2 1->^^^^ @@ -1144,15 +1144,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(58, 5) Source(37, 42) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 43) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 43) + SourceIndex(2) +1->Emitted(58, 5) Source(37, 46) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 47) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 47) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(2) +1 >Emitted(59, 2) Source(37, 49) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1302,7 +1302,7 @@ var C = /** @class */ (function () { //# 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -1590,20 +1590,20 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + 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->Emitted(15, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(15, 19) Source(14, 23) + SourceIndex(3) +3 >Emitted(15, 20) Source(14, 24) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1611,8 +1611,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +1 >Emitted(16, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 41) + SourceIndex(3) --- >>> /**@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -1623,21 +1623,21 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /**@internal*/ prop: string; - > + > /**@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) +1->Emitted(17, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(17, 19) Source(16, 23) + SourceIndex(3) +3 >Emitted(17, 20) Source(16, 24) + SourceIndex(3) +4 >Emitted(17, 44) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 24) + SourceIndex(3) +6 >Emitted(17, 61) Source(16, 35) + SourceIndex(3) +7 >Emitted(17, 62) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -1645,12 +1645,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(18, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 29) + SourceIndex(3) --- >>> /**@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -1671,15 +1671,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(19, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(19, 23) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 29) Source(17, 24) + SourceIndex(3) +4 >Emitted(19, 43) Source(17, 34) + SourceIndex(3) +5 >Emitted(19, 50) Source(17, 41) + SourceIndex(3) +6 >Emitted(19, 52) Source(17, 43) + SourceIndex(3) +7 >Emitted(19, 53) Source(17, 44) + SourceIndex(3) +8 >Emitted(19, 54) Source(17, 45) + SourceIndex(3) +9 >Emitted(19, 55) Source(17, 46) + SourceIndex(3) --- >>> /**@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -1690,20 +1690,20 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(20, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(20, 23) Source(18, 23) + SourceIndex(3) +3 >Emitted(20, 29) Source(18, 24) + SourceIndex(3) +4 >Emitted(20, 39) Source(18, 30) + SourceIndex(3) +5 >Emitted(20, 42) Source(18, 41) + SourceIndex(3) +6 >Emitted(20, 46) Source(18, 45) + SourceIndex(3) +7 >Emitted(20, 47) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -1711,17 +1711,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -1733,16 +1733,16 @@ sourceFile:../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -1751,23 +1751,23 @@ sourceFile:../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -1777,9 +1777,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> /**@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -1787,18 +1787,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(28, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(28, 19) Source(21, 23) + SourceIndex(3) +3 >Emitted(28, 20) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1806,16 +1806,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 42) + 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->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1827,10 +1827,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -1842,10 +1842,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 42) + SourceIndex(3) --- >>> /**@internal*/ function foo() { } 1->^^^^ @@ -1856,20 +1856,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(34, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(34, 19) Source(22, 23) + SourceIndex(3) +3 >Emitted(34, 20) Source(22, 24) + SourceIndex(3) +4 >Emitted(34, 29) Source(22, 40) + SourceIndex(3) +5 >Emitted(34, 32) Source(22, 43) + SourceIndex(3) +6 >Emitted(34, 37) Source(22, 47) + SourceIndex(3) +7 >Emitted(34, 38) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -1881,10 +1881,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(35, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 48) + SourceIndex(3) --- >>> /**@internal*/ var someNamespace; 1->^^^^ @@ -1894,18 +1894,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(36, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(36, 19) Source(23, 23) + SourceIndex(3) +3 >Emitted(36, 20) Source(23, 24) + SourceIndex(3) +4 >Emitted(36, 24) Source(23, 41) + SourceIndex(3) +5 >Emitted(36, 37) Source(23, 54) + SourceIndex(3) +6 >Emitted(36, 38) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -1915,21 +1915,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(37, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1937,16 +1937,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 74) + 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->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1958,10 +1958,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1973,10 +1973,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1997,15 +1997,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 76) + SourceIndex(3) --- >>> /**@internal*/ var someOther; 1 >^^^^ @@ -2015,18 +2015,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(45, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(45, 19) Source(24, 23) + SourceIndex(3) +3 >Emitted(45, 20) Source(24, 24) + SourceIndex(3) +4 >Emitted(45, 24) Source(24, 41) + SourceIndex(3) +5 >Emitted(45, 33) Source(24, 50) + SourceIndex(3) +6 >Emitted(45, 34) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -2035,9 +2035,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -2049,10 +2049,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -2062,21 +2062,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -2084,16 +2084,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 88) + 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->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -2105,10 +2105,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -2120,10 +2120,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -2144,15 +2144,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -2173,15 +2173,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 90) + SourceIndex(3) --- >>> /**@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -2194,7 +2194,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /**@internal*/ 3 > export import 4 > someImport @@ -2203,15 +2203,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(57, 19) Source(25, 23) + SourceIndex(3) +3 >Emitted(57, 20) Source(25, 38) + SourceIndex(3) +4 >Emitted(57, 38) Source(25, 48) + SourceIndex(3) +5 >Emitted(57, 41) Source(25, 51) + SourceIndex(3) +6 >Emitted(57, 54) Source(25, 64) + SourceIndex(3) +7 >Emitted(57, 55) Source(25, 65) + SourceIndex(3) +8 >Emitted(57, 56) Source(25, 66) + SourceIndex(3) +9 >Emitted(57, 57) Source(25, 67) + SourceIndex(3) --- >>> /**@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -2222,21 +2222,21 @@ sourceFile:../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > + > /**@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) +1 >Emitted(58, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(58, 19) Source(27, 23) + SourceIndex(3) +3 >Emitted(58, 20) Source(27, 37) + SourceIndex(3) +4 >Emitted(58, 41) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 44) Source(27, 53) + SourceIndex(3) +6 >Emitted(58, 46) Source(27, 55) + SourceIndex(3) +7 >Emitted(58, 47) Source(27, 56) + SourceIndex(3) --- >>> /**@internal*/ var internalEnum; 1 >^^^^ @@ -2245,16 +2245,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(59, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(59, 19) Source(28, 23) + SourceIndex(3) +3 >Emitted(59, 20) Source(28, 24) + SourceIndex(3) +4 >Emitted(59, 24) Source(28, 36) + SourceIndex(3) +5 >Emitted(59, 36) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -2264,9 +2264,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -2276,9 +2276,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -2288,9 +2288,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -2300,9 +2300,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -2323,15 +2323,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -2343,29 +2343,29 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>/**@internal*/ var internalC = /** @class */ (function () { 1-> @@ -2373,18 +2373,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(66, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(66, 15) Source(30, 19) + SourceIndex(3) +3 >Emitted(66, 16) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2392,16 +2392,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 38) + 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->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -2413,10 +2413,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 38) + SourceIndex(3) --- >>>/**@internal*/ function internalfoo() { } 1-> @@ -2427,20 +2427,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(71, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(71, 15) Source(31, 19) + SourceIndex(3) +3 >Emitted(71, 16) Source(31, 20) + SourceIndex(3) +4 >Emitted(71, 25) Source(31, 29) + SourceIndex(3) +5 >Emitted(71, 36) Source(31, 40) + SourceIndex(3) +6 >Emitted(71, 41) Source(31, 44) + SourceIndex(3) +7 >Emitted(71, 42) Source(31, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalNamespace; 1 > @@ -2450,18 +2450,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(72, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(72, 15) Source(32, 19) + SourceIndex(3) +3 >Emitted(72, 16) Source(32, 20) + SourceIndex(3) +4 >Emitted(72, 20) Source(32, 30) + SourceIndex(3) +5 >Emitted(72, 37) Source(32, 47) + SourceIndex(3) +6 >Emitted(72, 38) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -2471,21 +2471,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -2493,16 +2493,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 75) + 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->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -2514,10 +2514,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -2529,10 +2529,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -2549,13 +2549,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 77) + SourceIndex(3) --- >>>/**@internal*/ var internalOther; 1 > @@ -2565,18 +2565,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(81, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(81, 15) Source(33, 19) + SourceIndex(3) +3 >Emitted(81, 16) Source(33, 20) + SourceIndex(3) +4 >Emitted(81, 20) Source(33, 30) + SourceIndex(3) +5 >Emitted(81, 33) Source(33, 43) + SourceIndex(3) +6 >Emitted(81, 34) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -2585,9 +2585,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -2599,10 +2599,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -2612,21 +2612,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -2634,16 +2634,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 81) + 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->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -2655,10 +2655,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2670,10 +2670,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2694,15 +2694,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2720,13 +2720,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 83) + SourceIndex(3) --- >>>/**@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -2740,7 +2740,7 @@ sourceFile:../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > import @@ -2750,16 +2750,16 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(93, 15) Source(34, 19) + SourceIndex(3) +3 >Emitted(93, 16) Source(34, 20) + SourceIndex(3) +4 >Emitted(93, 20) Source(34, 27) + SourceIndex(3) +5 >Emitted(93, 34) Source(34, 41) + SourceIndex(3) +6 >Emitted(93, 37) Source(34, 44) + SourceIndex(3) +7 >Emitted(93, 54) Source(34, 61) + SourceIndex(3) +8 >Emitted(93, 55) Source(34, 62) + SourceIndex(3) +9 >Emitted(93, 64) Source(34, 71) + SourceIndex(3) +10>Emitted(93, 65) Source(34, 72) + SourceIndex(3) --- >>>/**@internal*/ var internalConst = 10; 1 > @@ -2771,8 +2771,8 @@ sourceFile:../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/**@internal*/ type internalType = internalC; - > + > /**@internal*/ type internalType = internalC; + > 2 >/**@internal*/ 3 > 4 > const @@ -2780,14 +2780,14 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(94, 15) Source(36, 19) + SourceIndex(3) +3 >Emitted(94, 16) Source(36, 20) + SourceIndex(3) +4 >Emitted(94, 20) Source(36, 26) + SourceIndex(3) +5 >Emitted(94, 33) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 36) Source(36, 42) + SourceIndex(3) +7 >Emitted(94, 38) Source(36, 44) + SourceIndex(3) +8 >Emitted(94, 39) Source(36, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalEnum; 1 > @@ -2796,16 +2796,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(95, 15) Source(37, 19) + SourceIndex(3) +3 >Emitted(95, 16) Source(37, 20) + SourceIndex(3) +4 >Emitted(95, 20) Source(37, 25) + SourceIndex(3) +5 >Emitted(95, 32) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -2815,9 +2815,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2827,9 +2827,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2839,9 +2839,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2850,9 +2850,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2869,13 +2869,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -3680,7 +3680,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -3835,24 +3835,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3860,29 +3860,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /**@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4059,7 +4059,7 @@ 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -4347,20 +4347,20 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + 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->Emitted(15, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(15, 19) Source(14, 23) + SourceIndex(3) +3 >Emitted(15, 20) Source(14, 24) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -4368,8 +4368,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +1 >Emitted(16, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 41) + SourceIndex(3) --- >>> /**@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -4380,21 +4380,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /**@internal*/ prop: string; - > + > /**@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) +1->Emitted(17, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(17, 19) Source(16, 23) + SourceIndex(3) +3 >Emitted(17, 20) Source(16, 24) + SourceIndex(3) +4 >Emitted(17, 44) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 24) + SourceIndex(3) +6 >Emitted(17, 61) Source(16, 35) + SourceIndex(3) +7 >Emitted(17, 62) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -4402,12 +4402,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(18, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 29) + SourceIndex(3) --- >>> /**@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -4428,15 +4428,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(19, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(19, 23) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 29) Source(17, 24) + SourceIndex(3) +4 >Emitted(19, 43) Source(17, 34) + SourceIndex(3) +5 >Emitted(19, 50) Source(17, 41) + SourceIndex(3) +6 >Emitted(19, 52) Source(17, 43) + SourceIndex(3) +7 >Emitted(19, 53) Source(17, 44) + SourceIndex(3) +8 >Emitted(19, 54) Source(17, 45) + SourceIndex(3) +9 >Emitted(19, 55) Source(17, 46) + SourceIndex(3) --- >>> /**@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -4447,20 +4447,20 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(20, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(20, 23) Source(18, 23) + SourceIndex(3) +3 >Emitted(20, 29) Source(18, 24) + SourceIndex(3) +4 >Emitted(20, 39) Source(18, 30) + SourceIndex(3) +5 >Emitted(20, 42) Source(18, 41) + SourceIndex(3) +6 >Emitted(20, 46) Source(18, 45) + SourceIndex(3) +7 >Emitted(20, 47) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -4468,17 +4468,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -4490,16 +4490,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -4508,23 +4508,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -4534,9 +4534,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> /**@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -4544,18 +4544,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(28, 19) Source(21, 23) + SourceIndex(3) +3 >Emitted(28, 20) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4563,16 +4563,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 42) + 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->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4584,10 +4584,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -4599,10 +4599,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 42) + SourceIndex(3) --- >>> /**@internal*/ function foo() { } 1->^^^^ @@ -4613,20 +4613,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(34, 19) Source(22, 23) + SourceIndex(3) +3 >Emitted(34, 20) Source(22, 24) + SourceIndex(3) +4 >Emitted(34, 29) Source(22, 40) + SourceIndex(3) +5 >Emitted(34, 32) Source(22, 43) + SourceIndex(3) +6 >Emitted(34, 37) Source(22, 47) + SourceIndex(3) +7 >Emitted(34, 38) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -4638,10 +4638,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(35, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 48) + SourceIndex(3) --- >>> /**@internal*/ var someNamespace; 1->^^^^ @@ -4651,18 +4651,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(36, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(36, 19) Source(23, 23) + SourceIndex(3) +3 >Emitted(36, 20) Source(23, 24) + SourceIndex(3) +4 >Emitted(36, 24) Source(23, 41) + SourceIndex(3) +5 >Emitted(36, 37) Source(23, 54) + SourceIndex(3) +6 >Emitted(36, 38) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -4672,21 +4672,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(37, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4694,16 +4694,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 74) + 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->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4715,10 +4715,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -4730,10 +4730,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -4754,15 +4754,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 76) + SourceIndex(3) --- >>> /**@internal*/ var someOther; 1 >^^^^ @@ -4772,18 +4772,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(45, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(45, 19) Source(24, 23) + SourceIndex(3) +3 >Emitted(45, 20) Source(24, 24) + SourceIndex(3) +4 >Emitted(45, 24) Source(24, 41) + SourceIndex(3) +5 >Emitted(45, 33) Source(24, 50) + SourceIndex(3) +6 >Emitted(45, 34) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -4792,9 +4792,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -4806,10 +4806,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -4819,21 +4819,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -4841,16 +4841,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 88) + 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->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -4862,10 +4862,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -4877,10 +4877,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -4901,15 +4901,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -4930,15 +4930,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 90) + SourceIndex(3) --- >>> /**@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -4951,7 +4951,7 @@ sourceFile:../../../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /**@internal*/ 3 > export import 4 > someImport @@ -4960,15 +4960,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(57, 19) Source(25, 23) + SourceIndex(3) +3 >Emitted(57, 20) Source(25, 38) + SourceIndex(3) +4 >Emitted(57, 38) Source(25, 48) + SourceIndex(3) +5 >Emitted(57, 41) Source(25, 51) + SourceIndex(3) +6 >Emitted(57, 54) Source(25, 64) + SourceIndex(3) +7 >Emitted(57, 55) Source(25, 65) + SourceIndex(3) +8 >Emitted(57, 56) Source(25, 66) + SourceIndex(3) +9 >Emitted(57, 57) Source(25, 67) + SourceIndex(3) --- >>> /**@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -4979,21 +4979,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > + > /**@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) +1 >Emitted(58, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(58, 19) Source(27, 23) + SourceIndex(3) +3 >Emitted(58, 20) Source(27, 37) + SourceIndex(3) +4 >Emitted(58, 41) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 44) Source(27, 53) + SourceIndex(3) +6 >Emitted(58, 46) Source(27, 55) + SourceIndex(3) +7 >Emitted(58, 47) Source(27, 56) + SourceIndex(3) --- >>> /**@internal*/ var internalEnum; 1 >^^^^ @@ -5002,16 +5002,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(59, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(59, 19) Source(28, 23) + SourceIndex(3) +3 >Emitted(59, 20) Source(28, 24) + SourceIndex(3) +4 >Emitted(59, 24) Source(28, 36) + SourceIndex(3) +5 >Emitted(59, 36) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -5021,9 +5021,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -5033,9 +5033,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -5045,9 +5045,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -5057,9 +5057,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -5080,15 +5080,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -5100,29 +5100,29 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>/**@internal*/ var internalC = /** @class */ (function () { 1-> @@ -5130,18 +5130,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(66, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(66, 15) Source(30, 19) + SourceIndex(3) +3 >Emitted(66, 16) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -5149,16 +5149,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 38) + 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->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -5170,10 +5170,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 38) + SourceIndex(3) --- >>>/**@internal*/ function internalfoo() { } 1-> @@ -5184,20 +5184,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(71, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(71, 15) Source(31, 19) + SourceIndex(3) +3 >Emitted(71, 16) Source(31, 20) + SourceIndex(3) +4 >Emitted(71, 25) Source(31, 29) + SourceIndex(3) +5 >Emitted(71, 36) Source(31, 40) + SourceIndex(3) +6 >Emitted(71, 41) Source(31, 44) + SourceIndex(3) +7 >Emitted(71, 42) Source(31, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalNamespace; 1 > @@ -5207,18 +5207,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(72, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(72, 15) Source(32, 19) + SourceIndex(3) +3 >Emitted(72, 16) Source(32, 20) + SourceIndex(3) +4 >Emitted(72, 20) Source(32, 30) + SourceIndex(3) +5 >Emitted(72, 37) Source(32, 47) + SourceIndex(3) +6 >Emitted(72, 38) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -5228,21 +5228,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -5250,16 +5250,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 75) + 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->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -5271,10 +5271,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -5286,10 +5286,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -5306,13 +5306,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 77) + SourceIndex(3) --- >>>/**@internal*/ var internalOther; 1 > @@ -5322,18 +5322,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(81, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(81, 15) Source(33, 19) + SourceIndex(3) +3 >Emitted(81, 16) Source(33, 20) + SourceIndex(3) +4 >Emitted(81, 20) Source(33, 30) + SourceIndex(3) +5 >Emitted(81, 33) Source(33, 43) + SourceIndex(3) +6 >Emitted(81, 34) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -5342,9 +5342,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -5356,10 +5356,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -5369,21 +5369,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -5391,16 +5391,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 81) + 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->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -5412,10 +5412,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -5427,10 +5427,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -5451,15 +5451,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -5477,13 +5477,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 83) + SourceIndex(3) --- >>>/**@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -5497,7 +5497,7 @@ sourceFile:../../../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > import @@ -5507,16 +5507,16 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(93, 15) Source(34, 19) + SourceIndex(3) +3 >Emitted(93, 16) Source(34, 20) + SourceIndex(3) +4 >Emitted(93, 20) Source(34, 27) + SourceIndex(3) +5 >Emitted(93, 34) Source(34, 41) + SourceIndex(3) +6 >Emitted(93, 37) Source(34, 44) + SourceIndex(3) +7 >Emitted(93, 54) Source(34, 61) + SourceIndex(3) +8 >Emitted(93, 55) Source(34, 62) + SourceIndex(3) +9 >Emitted(93, 64) Source(34, 71) + SourceIndex(3) +10>Emitted(93, 65) Source(34, 72) + SourceIndex(3) --- >>>/**@internal*/ var internalConst = 10; 1 > @@ -5528,8 +5528,8 @@ sourceFile:../../../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/**@internal*/ type internalType = internalC; - > + > /**@internal*/ type internalType = internalC; + > 2 >/**@internal*/ 3 > 4 > const @@ -5537,14 +5537,14 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(94, 15) Source(36, 19) + SourceIndex(3) +3 >Emitted(94, 16) Source(36, 20) + SourceIndex(3) +4 >Emitted(94, 20) Source(36, 26) + SourceIndex(3) +5 >Emitted(94, 33) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 36) Source(36, 42) + SourceIndex(3) +7 >Emitted(94, 38) Source(36, 44) + SourceIndex(3) +8 >Emitted(94, 39) Source(36, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalEnum; 1 > @@ -5553,16 +5553,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(95, 15) Source(37, 19) + SourceIndex(3) +3 >Emitted(95, 16) Source(37, 20) + SourceIndex(3) +4 >Emitted(95, 20) Source(37, 25) + SourceIndex(3) +5 >Emitted(95, 32) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -5572,9 +5572,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -5584,9 +5584,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -5596,9 +5596,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -5607,9 +5607,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -5626,13 +5626,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 93f781c02b9f8..1287418a28dad 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 @@ -72,31 +72,31 @@ namespace N { 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 } + 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/second_part2.ts] class C { @@ -235,7 +235,7 @@ declare class C { //# 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,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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"} +{"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;AAEG,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,CAAC,IAAI,CAAC,IACM,MAAM,CADK;IACrC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;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;ACpChD,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -305,22 +305,22 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(5, 1) Source(13, 5) + SourceIndex(0) +2 >Emitted(5, 15) Source(13, 11) + SourceIndex(0) +3 >Emitted(5, 22) Source(13, 18) + 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) +1->Emitted(6, 5) Source(14, 9) + SourceIndex(0) +2 >Emitted(6, 19) Source(14, 23) + SourceIndex(0) --- >>> /**@internal*/ prop: string; 1->^^^^ @@ -332,20 +332,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(7, 5) Source(15, 9) + SourceIndex(0) +2 >Emitted(7, 19) Source(15, 23) + SourceIndex(0) +3 >Emitted(7, 20) Source(15, 24) + SourceIndex(0) +4 >Emitted(7, 24) Source(15, 28) + SourceIndex(0) +5 >Emitted(7, 26) Source(15, 30) + SourceIndex(0) +6 >Emitted(7, 32) Source(15, 36) + SourceIndex(0) +7 >Emitted(7, 33) Source(15, 37) + SourceIndex(0) --- >>> /**@internal*/ method(): void; 1->^^^^ @@ -354,14 +354,14 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(8, 5) Source(16, 9) + SourceIndex(0) +2 >Emitted(8, 19) Source(16, 23) + SourceIndex(0) +3 >Emitted(8, 20) Source(16, 24) + SourceIndex(0) +4 >Emitted(8, 26) Source(16, 30) + SourceIndex(0) --- >>> /**@internal*/ get c(): number; 1->^^^^ @@ -374,23 +374,23 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^^^^-> 1->() { } - > + > 2 > /**@internal*/ 3 > 4 > get 5 > c 6 > () { return 10; } - > /**@internal*/ set c(val: + > /**@internal*/ set c(val: 7 > number 8 > -1->Emitted(9, 5) Source(17, 5) + SourceIndex(0) -2 >Emitted(9, 19) Source(17, 19) + SourceIndex(0) -3 >Emitted(9, 20) Source(17, 20) + SourceIndex(0) -4 >Emitted(9, 24) Source(17, 24) + SourceIndex(0) -5 >Emitted(9, 25) Source(17, 25) + SourceIndex(0) -6 >Emitted(9, 29) Source(18, 31) + SourceIndex(0) -7 >Emitted(9, 35) Source(18, 37) + SourceIndex(0) -8 >Emitted(9, 36) Source(17, 42) + SourceIndex(0) +1->Emitted(9, 5) Source(17, 9) + SourceIndex(0) +2 >Emitted(9, 19) Source(17, 23) + SourceIndex(0) +3 >Emitted(9, 20) Source(17, 24) + SourceIndex(0) +4 >Emitted(9, 24) Source(17, 28) + SourceIndex(0) +5 >Emitted(9, 25) Source(17, 29) + SourceIndex(0) +6 >Emitted(9, 29) Source(18, 35) + SourceIndex(0) +7 >Emitted(9, 35) Source(18, 41) + SourceIndex(0) +8 >Emitted(9, 36) Source(17, 46) + SourceIndex(0) --- >>> /**@internal*/ set c(val: number); 1->^^^^ @@ -403,7 +403,7 @@ sourceFile:../second/second_part1.ts 8 > ^^^^^^ 9 > ^^ 1-> - > + > 2 > /**@internal*/ 3 > 4 > set @@ -412,22 +412,22 @@ sourceFile:../second/second_part1.ts 7 > val: 8 > number 9 > ) { } -1->Emitted(10, 5) Source(18, 5) + SourceIndex(0) -2 >Emitted(10, 19) Source(18, 19) + SourceIndex(0) -3 >Emitted(10, 20) Source(18, 20) + SourceIndex(0) -4 >Emitted(10, 24) Source(18, 24) + SourceIndex(0) -5 >Emitted(10, 25) Source(18, 25) + SourceIndex(0) -6 >Emitted(10, 26) Source(18, 26) + SourceIndex(0) -7 >Emitted(10, 31) Source(18, 31) + SourceIndex(0) -8 >Emitted(10, 37) Source(18, 37) + SourceIndex(0) -9 >Emitted(10, 39) Source(18, 42) + SourceIndex(0) +1->Emitted(10, 5) Source(18, 9) + SourceIndex(0) +2 >Emitted(10, 19) Source(18, 23) + SourceIndex(0) +3 >Emitted(10, 20) Source(18, 24) + SourceIndex(0) +4 >Emitted(10, 24) Source(18, 28) + SourceIndex(0) +5 >Emitted(10, 25) Source(18, 29) + SourceIndex(0) +6 >Emitted(10, 26) Source(18, 30) + SourceIndex(0) +7 >Emitted(10, 31) Source(18, 35) + SourceIndex(0) +8 >Emitted(10, 37) Source(18, 41) + SourceIndex(0) +9 >Emitted(10, 39) Source(18, 46) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(0) --- >>>declare namespace normalN { 1-> @@ -436,14 +436,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^-> 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(0) +1->Emitted(12, 1) Source(20, 5) + SourceIndex(0) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(0) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(0) +4 >Emitted(12, 27) Source(20, 23) + SourceIndex(0) --- >>> /**@internal*/ class C { 1->^^^^ @@ -452,22 +452,22 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^ 5 > ^ 1->{ - > + > 2 > /**@internal*/ 3 > 4 > export class 5 > C -1->Emitted(13, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(13, 19) Source(21, 19) + SourceIndex(0) -3 >Emitted(13, 20) Source(21, 20) + SourceIndex(0) -4 >Emitted(13, 26) Source(21, 33) + SourceIndex(0) -5 >Emitted(13, 27) Source(21, 34) + SourceIndex(0) +1->Emitted(13, 5) Source(21, 9) + SourceIndex(0) +2 >Emitted(13, 19) Source(21, 23) + SourceIndex(0) +3 >Emitted(13, 20) Source(21, 24) + SourceIndex(0) +4 >Emitted(13, 26) Source(21, 37) + SourceIndex(0) +5 >Emitted(13, 27) Source(21, 38) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(14, 6) Source(21, 38) + SourceIndex(0) +1 >Emitted(14, 6) Source(21, 42) + SourceIndex(0) --- >>> /**@internal*/ function foo(): void; 1->^^^^ @@ -478,18 +478,18 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^^^^^-> 1-> - > + > 2 > /**@internal*/ 3 > 4 > export function 5 > foo 6 > () {} -1->Emitted(15, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(15, 19) Source(22, 19) + SourceIndex(0) -3 >Emitted(15, 20) Source(22, 20) + SourceIndex(0) -4 >Emitted(15, 29) Source(22, 36) + SourceIndex(0) -5 >Emitted(15, 32) Source(22, 39) + SourceIndex(0) -6 >Emitted(15, 41) Source(22, 44) + SourceIndex(0) +1->Emitted(15, 5) Source(22, 9) + SourceIndex(0) +2 >Emitted(15, 19) Source(22, 23) + SourceIndex(0) +3 >Emitted(15, 20) Source(22, 24) + SourceIndex(0) +4 >Emitted(15, 29) Source(22, 40) + SourceIndex(0) +5 >Emitted(15, 32) Source(22, 43) + SourceIndex(0) +6 >Emitted(15, 41) Source(22, 48) + SourceIndex(0) --- >>> /**@internal*/ namespace someNamespace { 1->^^^^ @@ -499,18 +499,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^^^^^ 6 > ^ 1-> - > + > 2 > /**@internal*/ 3 > 4 > export namespace 5 > someNamespace 6 > -1->Emitted(16, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(16, 19) Source(23, 19) + SourceIndex(0) -3 >Emitted(16, 20) Source(23, 20) + SourceIndex(0) -4 >Emitted(16, 30) Source(23, 37) + SourceIndex(0) -5 >Emitted(16, 43) Source(23, 50) + SourceIndex(0) -6 >Emitted(16, 44) Source(23, 51) + SourceIndex(0) +1->Emitted(16, 5) Source(23, 9) + SourceIndex(0) +2 >Emitted(16, 19) Source(23, 23) + SourceIndex(0) +3 >Emitted(16, 20) Source(23, 24) + SourceIndex(0) +4 >Emitted(16, 30) Source(23, 41) + SourceIndex(0) +5 >Emitted(16, 43) Source(23, 54) + SourceIndex(0) +6 >Emitted(16, 44) Source(23, 55) + SourceIndex(0) --- >>> class C { 1 >^^^^^^^^ @@ -519,20 +519,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(17, 9) Source(23, 53) + SourceIndex(0) -2 >Emitted(17, 15) Source(23, 66) + SourceIndex(0) -3 >Emitted(17, 16) Source(23, 67) + SourceIndex(0) +1 >Emitted(17, 9) Source(23, 57) + SourceIndex(0) +2 >Emitted(17, 15) Source(23, 70) + SourceIndex(0) +3 >Emitted(17, 16) Source(23, 71) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(18, 10) Source(23, 70) + SourceIndex(0) +1 >Emitted(18, 10) Source(23, 74) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(19, 6) Source(23, 72) + SourceIndex(0) +1 >Emitted(19, 6) Source(23, 76) + SourceIndex(0) --- >>> /**@internal*/ namespace someOther.something { 1->^^^^ @@ -544,7 +544,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - > + > 2 > /**@internal*/ 3 > 4 > export namespace @@ -552,14 +552,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > something 8 > -1->Emitted(20, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(20, 19) Source(24, 19) + SourceIndex(0) -3 >Emitted(20, 20) Source(24, 20) + SourceIndex(0) -4 >Emitted(20, 30) Source(24, 37) + SourceIndex(0) -5 >Emitted(20, 39) Source(24, 46) + SourceIndex(0) -6 >Emitted(20, 40) Source(24, 47) + SourceIndex(0) -7 >Emitted(20, 49) Source(24, 56) + SourceIndex(0) -8 >Emitted(20, 50) Source(24, 57) + SourceIndex(0) +1->Emitted(20, 5) Source(24, 9) + SourceIndex(0) +2 >Emitted(20, 19) Source(24, 23) + SourceIndex(0) +3 >Emitted(20, 20) Source(24, 24) + SourceIndex(0) +4 >Emitted(20, 30) Source(24, 41) + SourceIndex(0) +5 >Emitted(20, 39) Source(24, 50) + SourceIndex(0) +6 >Emitted(20, 40) Source(24, 51) + SourceIndex(0) +7 >Emitted(20, 49) Source(24, 60) + SourceIndex(0) +8 >Emitted(20, 50) Source(24, 61) + SourceIndex(0) --- >>> class someClass { 1 >^^^^^^^^ @@ -568,20 +568,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(21, 9) Source(24, 59) + SourceIndex(0) -2 >Emitted(21, 15) Source(24, 72) + SourceIndex(0) -3 >Emitted(21, 24) Source(24, 81) + SourceIndex(0) +1 >Emitted(21, 9) Source(24, 63) + SourceIndex(0) +2 >Emitted(21, 15) Source(24, 76) + SourceIndex(0) +3 >Emitted(21, 24) Source(24, 85) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(22, 10) Source(24, 84) + SourceIndex(0) +1 >Emitted(22, 10) Source(24, 88) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(23, 6) Source(24, 86) + SourceIndex(0) +1 >Emitted(23, 6) Source(24, 90) + SourceIndex(0) --- >>> /**@internal*/ export import someImport = someNamespace.C; 1->^^^^ @@ -596,7 +596,7 @@ sourceFile:../second/second_part1.ts 10> ^ 11> ^ 1-> - > + > 2 > /**@internal*/ 3 > 4 > export @@ -607,17 +607,17 @@ sourceFile:../second/second_part1.ts 9 > . 10> C 11> ; -1->Emitted(24, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(24, 19) Source(25, 19) + SourceIndex(0) -3 >Emitted(24, 20) Source(25, 20) + SourceIndex(0) -4 >Emitted(24, 26) Source(25, 26) + SourceIndex(0) -5 >Emitted(24, 34) Source(25, 34) + SourceIndex(0) -6 >Emitted(24, 44) Source(25, 44) + SourceIndex(0) -7 >Emitted(24, 47) Source(25, 47) + SourceIndex(0) -8 >Emitted(24, 60) Source(25, 60) + SourceIndex(0) -9 >Emitted(24, 61) Source(25, 61) + SourceIndex(0) -10>Emitted(24, 62) Source(25, 62) + SourceIndex(0) -11>Emitted(24, 63) Source(25, 63) + SourceIndex(0) +1->Emitted(24, 5) Source(25, 9) + SourceIndex(0) +2 >Emitted(24, 19) Source(25, 23) + SourceIndex(0) +3 >Emitted(24, 20) Source(25, 24) + SourceIndex(0) +4 >Emitted(24, 26) Source(25, 30) + SourceIndex(0) +5 >Emitted(24, 34) Source(25, 38) + SourceIndex(0) +6 >Emitted(24, 44) Source(25, 48) + SourceIndex(0) +7 >Emitted(24, 47) Source(25, 51) + SourceIndex(0) +8 >Emitted(24, 60) Source(25, 64) + SourceIndex(0) +9 >Emitted(24, 61) Source(25, 65) + SourceIndex(0) +10>Emitted(24, 62) Source(25, 66) + SourceIndex(0) +11>Emitted(24, 63) Source(25, 67) + SourceIndex(0) --- >>> /**@internal*/ type internalType = internalC; 1 >^^^^ @@ -629,7 +629,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1 > - > + > 2 > /**@internal*/ 3 > 4 > export type @@ -637,14 +637,14 @@ sourceFile:../second/second_part1.ts 6 > = 7 > internalC 8 > ; -1 >Emitted(25, 5) Source(26, 5) + SourceIndex(0) -2 >Emitted(25, 19) Source(26, 19) + SourceIndex(0) -3 >Emitted(25, 20) Source(26, 20) + SourceIndex(0) -4 >Emitted(25, 25) Source(26, 32) + SourceIndex(0) -5 >Emitted(25, 37) Source(26, 44) + SourceIndex(0) -6 >Emitted(25, 40) Source(26, 47) + SourceIndex(0) -7 >Emitted(25, 49) Source(26, 56) + SourceIndex(0) -8 >Emitted(25, 50) Source(26, 57) + SourceIndex(0) +1 >Emitted(25, 5) Source(26, 9) + SourceIndex(0) +2 >Emitted(25, 19) Source(26, 23) + SourceIndex(0) +3 >Emitted(25, 20) Source(26, 24) + SourceIndex(0) +4 >Emitted(25, 25) Source(26, 36) + SourceIndex(0) +5 >Emitted(25, 37) Source(26, 48) + SourceIndex(0) +6 >Emitted(25, 40) Source(26, 51) + SourceIndex(0) +7 >Emitted(25, 49) Source(26, 60) + SourceIndex(0) +8 >Emitted(25, 50) Source(26, 61) + SourceIndex(0) --- >>> /**@internal*/ const internalConst = 10; 1 >^^^^ @@ -655,20 +655,20 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^ 7 > ^ 1 > - > + > 2 > /**@internal*/ 3 > export 4 > const 5 > internalConst 6 > = 10 7 > ; -1 >Emitted(26, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(26, 19) Source(27, 19) + SourceIndex(0) -3 >Emitted(26, 20) Source(27, 27) + SourceIndex(0) -4 >Emitted(26, 26) Source(27, 33) + SourceIndex(0) -5 >Emitted(26, 39) Source(27, 46) + SourceIndex(0) -6 >Emitted(26, 44) Source(27, 51) + SourceIndex(0) -7 >Emitted(26, 45) Source(27, 52) + SourceIndex(0) +1 >Emitted(26, 5) Source(27, 9) + SourceIndex(0) +2 >Emitted(26, 19) Source(27, 23) + SourceIndex(0) +3 >Emitted(26, 20) Source(27, 31) + SourceIndex(0) +4 >Emitted(26, 26) Source(27, 37) + SourceIndex(0) +5 >Emitted(26, 39) Source(27, 50) + SourceIndex(0) +6 >Emitted(26, 44) Source(27, 55) + SourceIndex(0) +7 >Emitted(26, 45) Source(27, 56) + SourceIndex(0) --- >>> /**@internal*/ enum internalEnum { 1 >^^^^ @@ -677,16 +677,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^^^^^^^^^^^^ 1 > - > + > 2 > /**@internal*/ 3 > 4 > export enum 5 > internalEnum -1 >Emitted(27, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(27, 19) Source(28, 19) + SourceIndex(0) -3 >Emitted(27, 20) Source(28, 20) + SourceIndex(0) -4 >Emitted(27, 25) Source(28, 32) + SourceIndex(0) -5 >Emitted(27, 37) Source(28, 44) + SourceIndex(0) +1 >Emitted(27, 5) Source(28, 9) + SourceIndex(0) +2 >Emitted(27, 19) Source(28, 23) + SourceIndex(0) +3 >Emitted(27, 20) Source(28, 24) + SourceIndex(0) +4 >Emitted(27, 25) Source(28, 36) + SourceIndex(0) +5 >Emitted(27, 37) Source(28, 48) + SourceIndex(0) --- >>> a = 0, 1 >^^^^^^^^ @@ -696,9 +696,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(28, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 48) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 48) + SourceIndex(0) +1 >Emitted(28, 9) Source(28, 51) + SourceIndex(0) +2 >Emitted(28, 10) Source(28, 52) + SourceIndex(0) +3 >Emitted(28, 14) Source(28, 52) + SourceIndex(0) --- >>> b = 1, 1->^^^^^^^^ @@ -708,9 +708,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(29, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 51) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 51) + SourceIndex(0) +1->Emitted(29, 9) Source(28, 54) + SourceIndex(0) +2 >Emitted(29, 10) Source(28, 55) + SourceIndex(0) +3 >Emitted(29, 14) Source(28, 55) + SourceIndex(0) --- >>> c = 2 1->^^^^^^^^ @@ -719,21 +719,21 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(30, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(30, 10) Source(28, 54) + SourceIndex(0) -3 >Emitted(30, 14) Source(28, 54) + SourceIndex(0) +1->Emitted(30, 9) Source(28, 57) + SourceIndex(0) +2 >Emitted(30, 10) Source(28, 58) + SourceIndex(0) +3 >Emitted(30, 14) Source(28, 58) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(31, 6) Source(28, 56) + SourceIndex(0) +1 >Emitted(31, 6) Source(28, 60) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(32, 2) Source(29, 2) + SourceIndex(0) + > } +1 >Emitted(32, 2) Source(29, 6) + SourceIndex(0) --- >>>/**@internal*/ declare class internalC { 1-> @@ -742,22 +742,22 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^^^^^^ 5 > ^^^^^^^^^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > class 5 > internalC -1->Emitted(33, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(33, 15) Source(30, 15) + SourceIndex(0) -3 >Emitted(33, 16) Source(30, 16) + SourceIndex(0) -4 >Emitted(33, 30) Source(30, 22) + SourceIndex(0) -5 >Emitted(33, 39) Source(30, 31) + SourceIndex(0) +1->Emitted(33, 1) Source(30, 5) + SourceIndex(0) +2 >Emitted(33, 15) Source(30, 19) + SourceIndex(0) +3 >Emitted(33, 16) Source(30, 20) + SourceIndex(0) +4 >Emitted(33, 30) Source(30, 26) + SourceIndex(0) +5 >Emitted(33, 39) Source(30, 35) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(34, 2) Source(30, 34) + SourceIndex(0) +1 >Emitted(34, 2) Source(30, 38) + SourceIndex(0) --- >>>/**@internal*/ declare function internalfoo(): void; 1-> @@ -768,18 +768,18 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^ 7 > ^-> 1-> - > + > 2 >/**@internal*/ 3 > 4 > function 5 > internalfoo 6 > () {} -1->Emitted(35, 1) Source(31, 1) + SourceIndex(0) -2 >Emitted(35, 15) Source(31, 15) + SourceIndex(0) -3 >Emitted(35, 16) Source(31, 16) + SourceIndex(0) -4 >Emitted(35, 33) Source(31, 25) + SourceIndex(0) -5 >Emitted(35, 44) Source(31, 36) + SourceIndex(0) -6 >Emitted(35, 53) Source(31, 41) + SourceIndex(0) +1->Emitted(35, 1) Source(31, 5) + SourceIndex(0) +2 >Emitted(35, 15) Source(31, 19) + SourceIndex(0) +3 >Emitted(35, 16) Source(31, 20) + SourceIndex(0) +4 >Emitted(35, 33) Source(31, 29) + SourceIndex(0) +5 >Emitted(35, 44) Source(31, 40) + SourceIndex(0) +6 >Emitted(35, 53) Source(31, 45) + SourceIndex(0) --- >>>/**@internal*/ declare namespace internalNamespace { 1-> @@ -789,18 +789,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > namespace 5 > internalNamespace 6 > -1->Emitted(36, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(36, 15) Source(32, 15) + SourceIndex(0) -3 >Emitted(36, 16) Source(32, 16) + SourceIndex(0) -4 >Emitted(36, 34) Source(32, 26) + SourceIndex(0) -5 >Emitted(36, 51) Source(32, 43) + SourceIndex(0) -6 >Emitted(36, 52) Source(32, 44) + SourceIndex(0) +1->Emitted(36, 1) Source(32, 5) + SourceIndex(0) +2 >Emitted(36, 15) Source(32, 19) + SourceIndex(0) +3 >Emitted(36, 16) Source(32, 20) + SourceIndex(0) +4 >Emitted(36, 34) Source(32, 30) + SourceIndex(0) +5 >Emitted(36, 51) Source(32, 47) + SourceIndex(0) +6 >Emitted(36, 52) Source(32, 48) + SourceIndex(0) --- >>> class someClass { 1 >^^^^ @@ -809,20 +809,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(37, 5) Source(32, 46) + SourceIndex(0) -2 >Emitted(37, 11) Source(32, 59) + SourceIndex(0) -3 >Emitted(37, 20) Source(32, 68) + SourceIndex(0) +1 >Emitted(37, 5) Source(32, 50) + SourceIndex(0) +2 >Emitted(37, 11) Source(32, 63) + SourceIndex(0) +3 >Emitted(37, 20) Source(32, 72) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(38, 6) Source(32, 71) + SourceIndex(0) +1 >Emitted(38, 6) Source(32, 75) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(39, 2) Source(32, 73) + SourceIndex(0) +1 >Emitted(39, 2) Source(32, 77) + SourceIndex(0) --- >>>/**@internal*/ declare namespace internalOther.something { 1-> @@ -834,7 +834,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > namespace @@ -842,14 +842,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > something 8 > -1->Emitted(40, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(40, 15) Source(33, 15) + SourceIndex(0) -3 >Emitted(40, 16) Source(33, 16) + SourceIndex(0) -4 >Emitted(40, 34) Source(33, 26) + SourceIndex(0) -5 >Emitted(40, 47) Source(33, 39) + SourceIndex(0) -6 >Emitted(40, 48) Source(33, 40) + SourceIndex(0) -7 >Emitted(40, 57) Source(33, 49) + SourceIndex(0) -8 >Emitted(40, 58) Source(33, 50) + SourceIndex(0) +1->Emitted(40, 1) Source(33, 5) + SourceIndex(0) +2 >Emitted(40, 15) Source(33, 19) + SourceIndex(0) +3 >Emitted(40, 16) Source(33, 20) + SourceIndex(0) +4 >Emitted(40, 34) Source(33, 30) + SourceIndex(0) +5 >Emitted(40, 47) Source(33, 43) + SourceIndex(0) +6 >Emitted(40, 48) Source(33, 44) + SourceIndex(0) +7 >Emitted(40, 57) Source(33, 53) + SourceIndex(0) +8 >Emitted(40, 58) Source(33, 54) + SourceIndex(0) --- >>> class someClass { 1 >^^^^ @@ -858,20 +858,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(41, 5) Source(33, 52) + SourceIndex(0) -2 >Emitted(41, 11) Source(33, 65) + SourceIndex(0) -3 >Emitted(41, 20) Source(33, 74) + SourceIndex(0) +1 >Emitted(41, 5) Source(33, 56) + SourceIndex(0) +2 >Emitted(41, 11) Source(33, 69) + SourceIndex(0) +3 >Emitted(41, 20) Source(33, 78) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(42, 6) Source(33, 77) + SourceIndex(0) +1 >Emitted(42, 6) Source(33, 81) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(43, 2) Source(33, 79) + SourceIndex(0) +1 >Emitted(43, 2) Source(33, 83) + SourceIndex(0) --- >>>/**@internal*/ import internalImport = internalNamespace.someClass; 1-> @@ -885,7 +885,7 @@ sourceFile:../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > import @@ -895,16 +895,16 @@ sourceFile:../second/second_part1.ts 8 > . 9 > someClass 10> ; -1->Emitted(44, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(44, 15) Source(34, 15) + SourceIndex(0) -3 >Emitted(44, 16) Source(34, 16) + SourceIndex(0) -4 >Emitted(44, 23) Source(34, 23) + SourceIndex(0) -5 >Emitted(44, 37) Source(34, 37) + SourceIndex(0) -6 >Emitted(44, 40) Source(34, 40) + SourceIndex(0) -7 >Emitted(44, 57) Source(34, 57) + SourceIndex(0) -8 >Emitted(44, 58) Source(34, 58) + SourceIndex(0) -9 >Emitted(44, 67) Source(34, 67) + SourceIndex(0) -10>Emitted(44, 68) Source(34, 68) + SourceIndex(0) +1->Emitted(44, 1) Source(34, 5) + SourceIndex(0) +2 >Emitted(44, 15) Source(34, 19) + SourceIndex(0) +3 >Emitted(44, 16) Source(34, 20) + SourceIndex(0) +4 >Emitted(44, 23) Source(34, 27) + SourceIndex(0) +5 >Emitted(44, 37) Source(34, 41) + SourceIndex(0) +6 >Emitted(44, 40) Source(34, 44) + SourceIndex(0) +7 >Emitted(44, 57) Source(34, 61) + SourceIndex(0) +8 >Emitted(44, 58) Source(34, 62) + SourceIndex(0) +9 >Emitted(44, 67) Source(34, 71) + SourceIndex(0) +10>Emitted(44, 68) Source(34, 72) + SourceIndex(0) --- >>>/**@internal*/ declare type internalType = internalC; 1 > @@ -916,7 +916,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1 > - > + > 2 >/**@internal*/ 3 > 4 > type @@ -924,14 +924,14 @@ sourceFile:../second/second_part1.ts 6 > = 7 > internalC 8 > ; -1 >Emitted(45, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(45, 15) Source(35, 15) + SourceIndex(0) -3 >Emitted(45, 16) Source(35, 16) + SourceIndex(0) -4 >Emitted(45, 29) Source(35, 21) + SourceIndex(0) -5 >Emitted(45, 41) Source(35, 33) + SourceIndex(0) -6 >Emitted(45, 44) Source(35, 36) + SourceIndex(0) -7 >Emitted(45, 53) Source(35, 45) + SourceIndex(0) -8 >Emitted(45, 54) Source(35, 46) + SourceIndex(0) +1 >Emitted(45, 1) Source(35, 5) + SourceIndex(0) +2 >Emitted(45, 15) Source(35, 19) + SourceIndex(0) +3 >Emitted(45, 16) Source(35, 20) + SourceIndex(0) +4 >Emitted(45, 29) Source(35, 25) + SourceIndex(0) +5 >Emitted(45, 41) Source(35, 37) + SourceIndex(0) +6 >Emitted(45, 44) Source(35, 40) + SourceIndex(0) +7 >Emitted(45, 53) Source(35, 49) + SourceIndex(0) +8 >Emitted(45, 54) Source(35, 50) + SourceIndex(0) --- >>>/**@internal*/ declare const internalConst = 10; 1 > @@ -943,7 +943,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^ 8 > ^ 1 > - > + > 2 >/**@internal*/ 3 > 4 > @@ -951,14 +951,14 @@ sourceFile:../second/second_part1.ts 6 > internalConst 7 > = 10 8 > ; -1 >Emitted(46, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(46, 15) Source(36, 15) + SourceIndex(0) -3 >Emitted(46, 16) Source(36, 16) + SourceIndex(0) -4 >Emitted(46, 24) Source(36, 16) + SourceIndex(0) -5 >Emitted(46, 30) Source(36, 22) + SourceIndex(0) -6 >Emitted(46, 43) Source(36, 35) + SourceIndex(0) -7 >Emitted(46, 48) Source(36, 40) + SourceIndex(0) -8 >Emitted(46, 49) Source(36, 41) + SourceIndex(0) +1 >Emitted(46, 1) Source(36, 5) + SourceIndex(0) +2 >Emitted(46, 15) Source(36, 19) + SourceIndex(0) +3 >Emitted(46, 16) Source(36, 20) + SourceIndex(0) +4 >Emitted(46, 24) Source(36, 20) + SourceIndex(0) +5 >Emitted(46, 30) Source(36, 26) + SourceIndex(0) +6 >Emitted(46, 43) Source(36, 39) + SourceIndex(0) +7 >Emitted(46, 48) Source(36, 44) + SourceIndex(0) +8 >Emitted(46, 49) Source(36, 45) + SourceIndex(0) --- >>>/**@internal*/ declare enum internalEnum { 1 > @@ -967,16 +967,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^^^^^ 5 > ^^^^^^^^^^^^ 1 > - > + > 2 >/**@internal*/ 3 > 4 > enum 5 > internalEnum -1 >Emitted(47, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(47, 15) Source(37, 15) + SourceIndex(0) -3 >Emitted(47, 16) Source(37, 16) + SourceIndex(0) -4 >Emitted(47, 29) Source(37, 21) + SourceIndex(0) -5 >Emitted(47, 41) Source(37, 33) + SourceIndex(0) +1 >Emitted(47, 1) Source(37, 5) + SourceIndex(0) +2 >Emitted(47, 15) Source(37, 19) + SourceIndex(0) +3 >Emitted(47, 16) Source(37, 20) + SourceIndex(0) +4 >Emitted(47, 29) Source(37, 25) + SourceIndex(0) +5 >Emitted(47, 41) Source(37, 37) + SourceIndex(0) --- >>> a = 0, 1 >^^^^ @@ -986,9 +986,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(48, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 37) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 37) + SourceIndex(0) +1 >Emitted(48, 5) Source(37, 40) + SourceIndex(0) +2 >Emitted(48, 6) Source(37, 41) + SourceIndex(0) +3 >Emitted(48, 10) Source(37, 41) + SourceIndex(0) --- >>> b = 1, 1->^^^^ @@ -998,9 +998,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(49, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 40) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 40) + SourceIndex(0) +1->Emitted(49, 5) Source(37, 43) + SourceIndex(0) +2 >Emitted(49, 6) Source(37, 44) + SourceIndex(0) +3 >Emitted(49, 10) Source(37, 44) + SourceIndex(0) --- >>> c = 2 1->^^^^ @@ -1009,15 +1009,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(50, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(50, 6) Source(37, 43) + SourceIndex(0) -3 >Emitted(50, 10) Source(37, 43) + SourceIndex(0) +1->Emitted(50, 5) Source(37, 46) + SourceIndex(0) +2 >Emitted(50, 6) Source(37, 47) + SourceIndex(0) +3 >Emitted(50, 10) Source(37, 47) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(37, 45) + SourceIndex(0) +1 >Emitted(51, 2) Source(37, 49) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1161,7 +1161,7 @@ var C = /** @class */ (function () { //# 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -1314,20 +1314,20 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) + > +1->Emitted(8, 1) Source(13, 5) + 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->Emitted(9, 5) Source(14, 9) + SourceIndex(0) +2 >Emitted(9, 19) Source(14, 23) + SourceIndex(0) +3 >Emitted(9, 20) Source(14, 24) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -1335,8 +1335,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(10, 5) Source(14, 36) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 37) + SourceIndex(0) +1 >Emitted(10, 5) Source(14, 40) + SourceIndex(0) +2 >Emitted(10, 6) Source(14, 41) + SourceIndex(0) --- >>> /**@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -1347,21 +1347,21 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /**@internal*/ prop: string; - > + > /**@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) +1->Emitted(11, 5) Source(16, 9) + SourceIndex(0) +2 >Emitted(11, 19) Source(16, 23) + SourceIndex(0) +3 >Emitted(11, 20) Source(16, 24) + SourceIndex(0) +4 >Emitted(11, 44) Source(16, 30) + SourceIndex(0) +5 >Emitted(11, 47) Source(16, 24) + SourceIndex(0) +6 >Emitted(11, 61) Source(16, 35) + SourceIndex(0) +7 >Emitted(11, 62) Source(16, 36) + SourceIndex(0) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -1369,12 +1369,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(12, 5) Source(17, 24) + SourceIndex(0) +2 >Emitted(12, 27) Source(17, 28) + SourceIndex(0) +3 >Emitted(12, 49) Source(17, 29) + SourceIndex(0) --- >>> /**@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -1395,15 +1395,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(13, 9) Source(17, 9) + SourceIndex(0) +2 >Emitted(13, 23) Source(17, 23) + SourceIndex(0) +3 >Emitted(13, 29) Source(17, 24) + SourceIndex(0) +4 >Emitted(13, 43) Source(17, 34) + SourceIndex(0) +5 >Emitted(13, 50) Source(17, 41) + SourceIndex(0) +6 >Emitted(13, 52) Source(17, 43) + SourceIndex(0) +7 >Emitted(13, 53) Source(17, 44) + SourceIndex(0) +8 >Emitted(13, 54) Source(17, 45) + SourceIndex(0) +9 >Emitted(13, 55) Source(17, 46) + SourceIndex(0) --- >>> /**@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -1414,20 +1414,20 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(14, 9) Source(18, 9) + SourceIndex(0) +2 >Emitted(14, 23) Source(18, 23) + SourceIndex(0) +3 >Emitted(14, 29) Source(18, 24) + SourceIndex(0) +4 >Emitted(14, 39) Source(18, 30) + SourceIndex(0) +5 >Emitted(14, 42) Source(18, 41) + SourceIndex(0) +6 >Emitted(14, 46) Source(18, 45) + SourceIndex(0) +7 >Emitted(14, 47) Source(18, 46) + SourceIndex(0) --- >>> enumerable: false, >>> configurable: true @@ -1435,17 +1435,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(17, 8) Source(17, 42) + SourceIndex(0) +1 >Emitted(17, 8) Source(17, 46) + SourceIndex(0) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(18, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(18, 19) Source(19, 6) + SourceIndex(0) --- >>>}()); 1 > @@ -1457,16 +1457,16 @@ sourceFile:../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(19, 1) Source(19, 5) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 6) + SourceIndex(0) +3 >Emitted(19, 2) Source(13, 5) + SourceIndex(0) +4 >Emitted(19, 6) Source(19, 6) + SourceIndex(0) --- >>>var normalN; 1-> @@ -1475,23 +1475,23 @@ sourceFile:../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 15) + SourceIndex(0) +3 >Emitted(20, 12) Source(20, 22) + SourceIndex(0) +4 >Emitted(20, 13) Source(29, 6) + SourceIndex(0) --- >>>(function (normalN) { 1-> @@ -1501,9 +1501,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(21, 1) Source(20, 5) + SourceIndex(0) +2 >Emitted(21, 12) Source(20, 15) + SourceIndex(0) +3 >Emitted(21, 19) Source(20, 22) + SourceIndex(0) --- >>> /**@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -1511,18 +1511,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(22, 5) Source(21, 9) + SourceIndex(0) +2 >Emitted(22, 19) Source(21, 23) + SourceIndex(0) +3 >Emitted(22, 20) Source(21, 24) + SourceIndex(0) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(23, 9) Source(21, 20) + SourceIndex(0) +1->Emitted(23, 9) Source(21, 24) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -1530,16 +1530,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(24, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 38) + SourceIndex(0) +1->Emitted(24, 9) Source(21, 41) + SourceIndex(0) +2 >Emitted(24, 10) Source(21, 42) + 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->Emitted(25, 9) Source(21, 41) + SourceIndex(0) +2 >Emitted(25, 17) Source(21, 42) + SourceIndex(0) --- >>> }()); 1 >^^^^ @@ -1551,10 +1551,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(26, 5) Source(21, 41) + SourceIndex(0) +2 >Emitted(26, 6) Source(21, 42) + SourceIndex(0) +3 >Emitted(26, 6) Source(21, 24) + SourceIndex(0) +4 >Emitted(26, 10) Source(21, 42) + SourceIndex(0) --- >>> normalN.C = C; 1->^^^^ @@ -1566,10 +1566,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 5) Source(21, 37) + SourceIndex(0) +2 >Emitted(27, 14) Source(21, 38) + SourceIndex(0) +3 >Emitted(27, 18) Source(21, 42) + SourceIndex(0) +4 >Emitted(27, 19) Source(21, 42) + SourceIndex(0) --- >>> /**@internal*/ function foo() { } 1->^^^^ @@ -1580,20 +1580,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(28, 5) Source(22, 9) + SourceIndex(0) +2 >Emitted(28, 19) Source(22, 23) + SourceIndex(0) +3 >Emitted(28, 20) Source(22, 24) + SourceIndex(0) +4 >Emitted(28, 29) Source(22, 40) + SourceIndex(0) +5 >Emitted(28, 32) Source(22, 43) + SourceIndex(0) +6 >Emitted(28, 37) Source(22, 47) + SourceIndex(0) +7 >Emitted(28, 38) Source(22, 48) + SourceIndex(0) --- >>> normalN.foo = foo; 1 >^^^^ @@ -1605,10 +1605,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(29, 5) Source(22, 40) + SourceIndex(0) +2 >Emitted(29, 16) Source(22, 43) + SourceIndex(0) +3 >Emitted(29, 22) Source(22, 48) + SourceIndex(0) +4 >Emitted(29, 23) Source(22, 48) + SourceIndex(0) --- >>> /**@internal*/ var someNamespace; 1->^^^^ @@ -1618,18 +1618,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(30, 5) Source(23, 9) + SourceIndex(0) +2 >Emitted(30, 19) Source(23, 23) + SourceIndex(0) +3 >Emitted(30, 20) Source(23, 24) + SourceIndex(0) +4 >Emitted(30, 24) Source(23, 41) + SourceIndex(0) +5 >Emitted(30, 37) Source(23, 54) + SourceIndex(0) +6 >Emitted(30, 38) Source(23, 76) + SourceIndex(0) --- >>> (function (someNamespace) { 1 >^^^^ @@ -1639,21 +1639,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(31, 5) Source(23, 24) + SourceIndex(0) +2 >Emitted(31, 16) Source(23, 41) + SourceIndex(0) +3 >Emitted(31, 29) Source(23, 54) + SourceIndex(0) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(32, 9) Source(23, 53) + SourceIndex(0) +1->Emitted(32, 9) Source(23, 57) + SourceIndex(0) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(33, 13) Source(23, 53) + SourceIndex(0) +1->Emitted(33, 13) Source(23, 57) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -1661,16 +1661,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(34, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 70) + SourceIndex(0) +1->Emitted(34, 13) Source(23, 73) + SourceIndex(0) +2 >Emitted(34, 14) Source(23, 74) + 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->Emitted(35, 13) Source(23, 73) + SourceIndex(0) +2 >Emitted(35, 21) Source(23, 74) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -1682,10 +1682,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(36, 9) Source(23, 73) + SourceIndex(0) +2 >Emitted(36, 10) Source(23, 74) + SourceIndex(0) +3 >Emitted(36, 10) Source(23, 57) + SourceIndex(0) +4 >Emitted(36, 14) Source(23, 74) + SourceIndex(0) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1697,10 +1697,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(37, 9) Source(23, 70) + SourceIndex(0) +2 >Emitted(37, 24) Source(23, 71) + SourceIndex(0) +3 >Emitted(37, 28) Source(23, 74) + SourceIndex(0) +4 >Emitted(37, 29) Source(23, 74) + SourceIndex(0) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1721,15 +1721,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 75) + SourceIndex(0) +2 >Emitted(38, 6) Source(23, 76) + SourceIndex(0) +3 >Emitted(38, 8) Source(23, 41) + SourceIndex(0) +4 >Emitted(38, 21) Source(23, 54) + SourceIndex(0) +5 >Emitted(38, 24) Source(23, 41) + SourceIndex(0) +6 >Emitted(38, 45) Source(23, 54) + SourceIndex(0) +7 >Emitted(38, 50) Source(23, 41) + SourceIndex(0) +8 >Emitted(38, 71) Source(23, 54) + SourceIndex(0) +9 >Emitted(38, 79) Source(23, 76) + SourceIndex(0) --- >>> /**@internal*/ var someOther; 1 >^^^^ @@ -1739,18 +1739,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(39, 5) Source(24, 9) + SourceIndex(0) +2 >Emitted(39, 19) Source(24, 23) + SourceIndex(0) +3 >Emitted(39, 20) Source(24, 24) + SourceIndex(0) +4 >Emitted(39, 24) Source(24, 41) + SourceIndex(0) +5 >Emitted(39, 33) Source(24, 50) + SourceIndex(0) +6 >Emitted(39, 34) Source(24, 90) + SourceIndex(0) --- >>> (function (someOther) { 1 >^^^^ @@ -1759,9 +1759,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(40, 5) Source(24, 24) + SourceIndex(0) +2 >Emitted(40, 16) Source(24, 41) + SourceIndex(0) +3 >Emitted(40, 25) Source(24, 50) + SourceIndex(0) --- >>> var something; 1 >^^^^^^^^ @@ -1773,10 +1773,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(41, 9) Source(24, 51) + SourceIndex(0) +2 >Emitted(41, 13) Source(24, 51) + SourceIndex(0) +3 >Emitted(41, 22) Source(24, 60) + SourceIndex(0) +4 >Emitted(41, 23) Source(24, 90) + SourceIndex(0) --- >>> (function (something) { 1->^^^^^^^^ @@ -1786,21 +1786,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(42, 9) Source(24, 51) + SourceIndex(0) +2 >Emitted(42, 20) Source(24, 51) + SourceIndex(0) +3 >Emitted(42, 29) Source(24, 60) + SourceIndex(0) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(43, 13) Source(24, 59) + SourceIndex(0) +1->Emitted(43, 13) Source(24, 63) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(44, 17) Source(24, 59) + SourceIndex(0) +1->Emitted(44, 17) Source(24, 63) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1808,16 +1808,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(45, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 84) + SourceIndex(0) +1->Emitted(45, 17) Source(24, 87) + SourceIndex(0) +2 >Emitted(45, 18) Source(24, 88) + 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->Emitted(46, 17) Source(24, 87) + SourceIndex(0) +2 >Emitted(46, 33) Source(24, 88) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1829,10 +1829,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 13) Source(24, 87) + SourceIndex(0) +2 >Emitted(47, 14) Source(24, 88) + SourceIndex(0) +3 >Emitted(47, 14) Source(24, 63) + SourceIndex(0) +4 >Emitted(47, 18) Source(24, 88) + SourceIndex(0) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1844,10 +1844,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(48, 13) Source(24, 76) + SourceIndex(0) +2 >Emitted(48, 32) Source(24, 85) + SourceIndex(0) +3 >Emitted(48, 44) Source(24, 88) + SourceIndex(0) +4 >Emitted(48, 45) Source(24, 88) + SourceIndex(0) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1868,15 +1868,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 89) + SourceIndex(0) +2 >Emitted(49, 10) Source(24, 90) + SourceIndex(0) +3 >Emitted(49, 12) Source(24, 51) + SourceIndex(0) +4 >Emitted(49, 21) Source(24, 60) + SourceIndex(0) +5 >Emitted(49, 24) Source(24, 51) + SourceIndex(0) +6 >Emitted(49, 43) Source(24, 60) + SourceIndex(0) +7 >Emitted(49, 48) Source(24, 51) + SourceIndex(0) +8 >Emitted(49, 67) Source(24, 60) + SourceIndex(0) +9 >Emitted(49, 75) Source(24, 90) + SourceIndex(0) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1897,15 +1897,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(50, 5) Source(24, 89) + SourceIndex(0) +2 >Emitted(50, 6) Source(24, 90) + SourceIndex(0) +3 >Emitted(50, 8) Source(24, 41) + SourceIndex(0) +4 >Emitted(50, 17) Source(24, 50) + SourceIndex(0) +5 >Emitted(50, 20) Source(24, 41) + SourceIndex(0) +6 >Emitted(50, 37) Source(24, 50) + SourceIndex(0) +7 >Emitted(50, 42) Source(24, 41) + SourceIndex(0) +8 >Emitted(50, 59) Source(24, 50) + SourceIndex(0) +9 >Emitted(50, 67) Source(24, 90) + SourceIndex(0) --- >>> /**@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1918,7 +1918,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /**@internal*/ 3 > export import 4 > someImport @@ -1927,15 +1927,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(51, 5) Source(25, 9) + SourceIndex(0) +2 >Emitted(51, 19) Source(25, 23) + SourceIndex(0) +3 >Emitted(51, 20) Source(25, 38) + SourceIndex(0) +4 >Emitted(51, 38) Source(25, 48) + SourceIndex(0) +5 >Emitted(51, 41) Source(25, 51) + SourceIndex(0) +6 >Emitted(51, 54) Source(25, 64) + SourceIndex(0) +7 >Emitted(51, 55) Source(25, 65) + SourceIndex(0) +8 >Emitted(51, 56) Source(25, 66) + SourceIndex(0) +9 >Emitted(51, 57) Source(25, 67) + SourceIndex(0) --- >>> /**@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -1946,21 +1946,21 @@ sourceFile:../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > + > /**@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) +1 >Emitted(52, 5) Source(27, 9) + SourceIndex(0) +2 >Emitted(52, 19) Source(27, 23) + SourceIndex(0) +3 >Emitted(52, 20) Source(27, 37) + SourceIndex(0) +4 >Emitted(52, 41) Source(27, 50) + SourceIndex(0) +5 >Emitted(52, 44) Source(27, 53) + SourceIndex(0) +6 >Emitted(52, 46) Source(27, 55) + SourceIndex(0) +7 >Emitted(52, 47) Source(27, 56) + SourceIndex(0) --- >>> /**@internal*/ var internalEnum; 1 >^^^^ @@ -1969,16 +1969,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(53, 5) Source(28, 9) + SourceIndex(0) +2 >Emitted(53, 19) Source(28, 23) + SourceIndex(0) +3 >Emitted(53, 20) Source(28, 24) + SourceIndex(0) +4 >Emitted(53, 24) Source(28, 36) + SourceIndex(0) +5 >Emitted(53, 36) Source(28, 60) + SourceIndex(0) --- >>> (function (internalEnum) { 1 >^^^^ @@ -1988,9 +1988,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(54, 5) Source(28, 24) + SourceIndex(0) +2 >Emitted(54, 16) Source(28, 36) + SourceIndex(0) +3 >Emitted(54, 28) Source(28, 48) + SourceIndex(0) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -2000,9 +2000,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 9) Source(28, 51) + SourceIndex(0) +2 >Emitted(55, 50) Source(28, 52) + SourceIndex(0) +3 >Emitted(55, 51) Source(28, 52) + SourceIndex(0) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -2012,9 +2012,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(56, 9) Source(28, 54) + SourceIndex(0) +2 >Emitted(56, 50) Source(28, 55) + SourceIndex(0) +3 >Emitted(56, 51) Source(28, 55) + SourceIndex(0) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -2024,9 +2024,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(57, 9) Source(28, 57) + SourceIndex(0) +2 >Emitted(57, 50) Source(28, 58) + SourceIndex(0) +3 >Emitted(57, 51) Source(28, 58) + SourceIndex(0) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -2047,15 +2047,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(58, 5) Source(28, 59) + SourceIndex(0) +2 >Emitted(58, 6) Source(28, 60) + SourceIndex(0) +3 >Emitted(58, 8) Source(28, 36) + SourceIndex(0) +4 >Emitted(58, 20) Source(28, 48) + SourceIndex(0) +5 >Emitted(58, 23) Source(28, 36) + SourceIndex(0) +6 >Emitted(58, 43) Source(28, 48) + SourceIndex(0) +7 >Emitted(58, 48) Source(28, 36) + SourceIndex(0) +8 >Emitted(58, 68) Source(28, 48) + SourceIndex(0) +9 >Emitted(58, 76) Source(28, 60) + SourceIndex(0) --- >>>})(normalN || (normalN = {})); 1 > @@ -2067,29 +2067,29 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(0) +2 >Emitted(59, 2) Source(29, 6) + SourceIndex(0) +3 >Emitted(59, 4) Source(20, 15) + SourceIndex(0) +4 >Emitted(59, 11) Source(20, 22) + SourceIndex(0) +5 >Emitted(59, 16) Source(20, 15) + SourceIndex(0) +6 >Emitted(59, 23) Source(20, 22) + SourceIndex(0) +7 >Emitted(59, 31) Source(29, 6) + SourceIndex(0) --- >>>/**@internal*/ var internalC = /** @class */ (function () { 1-> @@ -2097,18 +2097,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(60, 1) Source(30, 5) + SourceIndex(0) +2 >Emitted(60, 15) Source(30, 19) + SourceIndex(0) +3 >Emitted(60, 16) Source(30, 20) + SourceIndex(0) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(61, 5) Source(30, 16) + SourceIndex(0) +1->Emitted(61, 5) Source(30, 20) + SourceIndex(0) --- >>> } 1->^^^^ @@ -2116,16 +2116,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(62, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 34) + SourceIndex(0) +1->Emitted(62, 5) Source(30, 37) + SourceIndex(0) +2 >Emitted(62, 6) Source(30, 38) + 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->Emitted(63, 5) Source(30, 37) + SourceIndex(0) +2 >Emitted(63, 21) Source(30, 38) + SourceIndex(0) --- >>>}()); 1 > @@ -2137,10 +2137,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(64, 1) Source(30, 37) + SourceIndex(0) +2 >Emitted(64, 2) Source(30, 38) + SourceIndex(0) +3 >Emitted(64, 2) Source(30, 20) + SourceIndex(0) +4 >Emitted(64, 6) Source(30, 38) + SourceIndex(0) --- >>>/**@internal*/ function internalfoo() { } 1-> @@ -2151,20 +2151,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(65, 1) Source(31, 5) + SourceIndex(0) +2 >Emitted(65, 15) Source(31, 19) + SourceIndex(0) +3 >Emitted(65, 16) Source(31, 20) + SourceIndex(0) +4 >Emitted(65, 25) Source(31, 29) + SourceIndex(0) +5 >Emitted(65, 36) Source(31, 40) + SourceIndex(0) +6 >Emitted(65, 41) Source(31, 44) + SourceIndex(0) +7 >Emitted(65, 42) Source(31, 45) + SourceIndex(0) --- >>>/**@internal*/ var internalNamespace; 1 > @@ -2174,18 +2174,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(66, 1) Source(32, 5) + SourceIndex(0) +2 >Emitted(66, 15) Source(32, 19) + SourceIndex(0) +3 >Emitted(66, 16) Source(32, 20) + SourceIndex(0) +4 >Emitted(66, 20) Source(32, 30) + SourceIndex(0) +5 >Emitted(66, 37) Source(32, 47) + SourceIndex(0) +6 >Emitted(66, 38) Source(32, 77) + SourceIndex(0) --- >>>(function (internalNamespace) { 1 > @@ -2195,21 +2195,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(67, 1) Source(32, 20) + SourceIndex(0) +2 >Emitted(67, 12) Source(32, 30) + SourceIndex(0) +3 >Emitted(67, 29) Source(32, 47) + SourceIndex(0) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(68, 5) Source(32, 46) + SourceIndex(0) +1->Emitted(68, 5) Source(32, 50) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(69, 9) Source(32, 46) + SourceIndex(0) +1->Emitted(69, 9) Source(32, 50) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -2217,16 +2217,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(70, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 71) + SourceIndex(0) +1->Emitted(70, 9) Source(32, 74) + SourceIndex(0) +2 >Emitted(70, 10) Source(32, 75) + 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->Emitted(71, 9) Source(32, 74) + SourceIndex(0) +2 >Emitted(71, 25) Source(32, 75) + SourceIndex(0) --- >>> }()); 1 >^^^^ @@ -2238,10 +2238,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(72, 5) Source(32, 74) + SourceIndex(0) +2 >Emitted(72, 6) Source(32, 75) + SourceIndex(0) +3 >Emitted(72, 6) Source(32, 50) + SourceIndex(0) +4 >Emitted(72, 10) Source(32, 75) + SourceIndex(0) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -2253,10 +2253,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(73, 5) Source(32, 63) + SourceIndex(0) +2 >Emitted(73, 32) Source(32, 72) + SourceIndex(0) +3 >Emitted(73, 44) Source(32, 75) + SourceIndex(0) +4 >Emitted(73, 45) Source(32, 75) + SourceIndex(0) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -2273,13 +2273,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 76) + SourceIndex(0) +2 >Emitted(74, 2) Source(32, 77) + SourceIndex(0) +3 >Emitted(74, 4) Source(32, 30) + SourceIndex(0) +4 >Emitted(74, 21) Source(32, 47) + SourceIndex(0) +5 >Emitted(74, 26) Source(32, 30) + SourceIndex(0) +6 >Emitted(74, 43) Source(32, 47) + SourceIndex(0) +7 >Emitted(74, 51) Source(32, 77) + SourceIndex(0) --- >>>/**@internal*/ var internalOther; 1 > @@ -2289,18 +2289,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(75, 1) Source(33, 5) + SourceIndex(0) +2 >Emitted(75, 15) Source(33, 19) + SourceIndex(0) +3 >Emitted(75, 16) Source(33, 20) + SourceIndex(0) +4 >Emitted(75, 20) Source(33, 30) + SourceIndex(0) +5 >Emitted(75, 33) Source(33, 43) + SourceIndex(0) +6 >Emitted(75, 34) Source(33, 83) + SourceIndex(0) --- >>>(function (internalOther) { 1 > @@ -2309,9 +2309,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(76, 1) Source(33, 20) + SourceIndex(0) +2 >Emitted(76, 12) Source(33, 30) + SourceIndex(0) +3 >Emitted(76, 25) Source(33, 43) + SourceIndex(0) --- >>> var something; 1 >^^^^ @@ -2323,10 +2323,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(77, 5) Source(33, 44) + SourceIndex(0) +2 >Emitted(77, 9) Source(33, 44) + SourceIndex(0) +3 >Emitted(77, 18) Source(33, 53) + SourceIndex(0) +4 >Emitted(77, 19) Source(33, 83) + SourceIndex(0) --- >>> (function (something) { 1->^^^^ @@ -2336,21 +2336,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(78, 5) Source(33, 44) + SourceIndex(0) +2 >Emitted(78, 16) Source(33, 44) + SourceIndex(0) +3 >Emitted(78, 25) Source(33, 53) + SourceIndex(0) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(79, 9) Source(33, 52) + SourceIndex(0) +1->Emitted(79, 9) Source(33, 56) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(80, 13) Source(33, 52) + SourceIndex(0) +1->Emitted(80, 13) Source(33, 56) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -2358,16 +2358,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(81, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 77) + SourceIndex(0) +1->Emitted(81, 13) Source(33, 80) + SourceIndex(0) +2 >Emitted(81, 14) Source(33, 81) + 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->Emitted(82, 13) Source(33, 80) + SourceIndex(0) +2 >Emitted(82, 29) Source(33, 81) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -2379,10 +2379,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 9) Source(33, 80) + SourceIndex(0) +2 >Emitted(83, 10) Source(33, 81) + SourceIndex(0) +3 >Emitted(83, 10) Source(33, 56) + SourceIndex(0) +4 >Emitted(83, 14) Source(33, 81) + SourceIndex(0) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2394,10 +2394,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(84, 9) Source(33, 69) + SourceIndex(0) +2 >Emitted(84, 28) Source(33, 78) + SourceIndex(0) +3 >Emitted(84, 40) Source(33, 81) + SourceIndex(0) +4 >Emitted(84, 41) Source(33, 81) + SourceIndex(0) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2418,15 +2418,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 82) + SourceIndex(0) +2 >Emitted(85, 6) Source(33, 83) + SourceIndex(0) +3 >Emitted(85, 8) Source(33, 44) + SourceIndex(0) +4 >Emitted(85, 17) Source(33, 53) + SourceIndex(0) +5 >Emitted(85, 20) Source(33, 44) + SourceIndex(0) +6 >Emitted(85, 43) Source(33, 53) + SourceIndex(0) +7 >Emitted(85, 48) Source(33, 44) + SourceIndex(0) +8 >Emitted(85, 71) Source(33, 53) + SourceIndex(0) +9 >Emitted(85, 79) Source(33, 83) + SourceIndex(0) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2444,13 +2444,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(86, 1) Source(33, 82) + SourceIndex(0) +2 >Emitted(86, 2) Source(33, 83) + SourceIndex(0) +3 >Emitted(86, 4) Source(33, 30) + SourceIndex(0) +4 >Emitted(86, 17) Source(33, 43) + SourceIndex(0) +5 >Emitted(86, 22) Source(33, 30) + SourceIndex(0) +6 >Emitted(86, 35) Source(33, 43) + SourceIndex(0) +7 >Emitted(86, 43) Source(33, 83) + SourceIndex(0) --- >>>/**@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -2464,7 +2464,7 @@ sourceFile:../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > import @@ -2474,16 +2474,16 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(87, 1) Source(34, 5) + SourceIndex(0) +2 >Emitted(87, 15) Source(34, 19) + SourceIndex(0) +3 >Emitted(87, 16) Source(34, 20) + SourceIndex(0) +4 >Emitted(87, 20) Source(34, 27) + SourceIndex(0) +5 >Emitted(87, 34) Source(34, 41) + SourceIndex(0) +6 >Emitted(87, 37) Source(34, 44) + SourceIndex(0) +7 >Emitted(87, 54) Source(34, 61) + SourceIndex(0) +8 >Emitted(87, 55) Source(34, 62) + SourceIndex(0) +9 >Emitted(87, 64) Source(34, 71) + SourceIndex(0) +10>Emitted(87, 65) Source(34, 72) + SourceIndex(0) --- >>>/**@internal*/ var internalConst = 10; 1 > @@ -2495,8 +2495,8 @@ sourceFile:../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/**@internal*/ type internalType = internalC; - > + > /**@internal*/ type internalType = internalC; + > 2 >/**@internal*/ 3 > 4 > const @@ -2504,14 +2504,14 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(88, 1) Source(36, 5) + SourceIndex(0) +2 >Emitted(88, 15) Source(36, 19) + SourceIndex(0) +3 >Emitted(88, 16) Source(36, 20) + SourceIndex(0) +4 >Emitted(88, 20) Source(36, 26) + SourceIndex(0) +5 >Emitted(88, 33) Source(36, 39) + SourceIndex(0) +6 >Emitted(88, 36) Source(36, 42) + SourceIndex(0) +7 >Emitted(88, 38) Source(36, 44) + SourceIndex(0) +8 >Emitted(88, 39) Source(36, 45) + SourceIndex(0) --- >>>/**@internal*/ var internalEnum; 1 > @@ -2520,16 +2520,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(89, 1) Source(37, 5) + SourceIndex(0) +2 >Emitted(89, 15) Source(37, 19) + SourceIndex(0) +3 >Emitted(89, 16) Source(37, 20) + SourceIndex(0) +4 >Emitted(89, 20) Source(37, 25) + SourceIndex(0) +5 >Emitted(89, 32) Source(37, 49) + SourceIndex(0) --- >>>(function (internalEnum) { 1 > @@ -2539,9 +2539,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(90, 1) Source(37, 20) + SourceIndex(0) +2 >Emitted(90, 12) Source(37, 25) + SourceIndex(0) +3 >Emitted(90, 24) Source(37, 37) + SourceIndex(0) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2551,9 +2551,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 5) Source(37, 40) + SourceIndex(0) +2 >Emitted(91, 46) Source(37, 41) + SourceIndex(0) +3 >Emitted(91, 47) Source(37, 41) + SourceIndex(0) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2563,9 +2563,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(92, 5) Source(37, 43) + SourceIndex(0) +2 >Emitted(92, 46) Source(37, 44) + SourceIndex(0) +3 >Emitted(92, 47) Source(37, 44) + SourceIndex(0) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2574,9 +2574,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(93, 5) Source(37, 46) + SourceIndex(0) +2 >Emitted(93, 46) Source(37, 47) + SourceIndex(0) +3 >Emitted(93, 47) Source(37, 47) + SourceIndex(0) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2593,13 +2593,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(37, 48) + SourceIndex(0) +2 >Emitted(94, 2) Source(37, 49) + SourceIndex(0) +3 >Emitted(94, 4) Source(37, 25) + SourceIndex(0) +4 >Emitted(94, 16) Source(37, 37) + SourceIndex(0) +5 >Emitted(94, 21) Source(37, 25) + SourceIndex(0) +6 >Emitted(94, 33) Source(37, 37) + SourceIndex(0) +7 >Emitted(94, 41) Source(37, 49) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -3347,7 +3347,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -3502,24 +3502,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3527,29 +3527,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /**@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3726,7 +3726,7 @@ 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"} +{"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;AAEG;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;ACpChD;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] =================================================================== @@ -4014,20 +4014,20 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + 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->Emitted(15, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(15, 19) Source(14, 23) + SourceIndex(3) +3 >Emitted(15, 20) Source(14, 24) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -4035,8 +4035,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +1 >Emitted(16, 5) Source(14, 40) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 41) + SourceIndex(3) --- >>> /**@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -4047,21 +4047,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /**@internal*/ prop: string; - > + > /**@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) +1->Emitted(17, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(17, 19) Source(16, 23) + SourceIndex(3) +3 >Emitted(17, 20) Source(16, 24) + SourceIndex(3) +4 >Emitted(17, 44) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 24) + SourceIndex(3) +6 >Emitted(17, 61) Source(16, 35) + SourceIndex(3) +7 >Emitted(17, 62) Source(16, 36) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -4069,12 +4069,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^^-> 1 > - > /**@internal*/ + > /**@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) +1 >Emitted(18, 5) Source(17, 24) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 28) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 29) + SourceIndex(3) --- >>> /**@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -4095,15 +4095,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(19, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(19, 23) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 29) Source(17, 24) + SourceIndex(3) +4 >Emitted(19, 43) Source(17, 34) + SourceIndex(3) +5 >Emitted(19, 50) Source(17, 41) + SourceIndex(3) +6 >Emitted(19, 52) Source(17, 43) + SourceIndex(3) +7 >Emitted(19, 53) Source(17, 44) + SourceIndex(3) +8 >Emitted(19, 54) Source(17, 45) + SourceIndex(3) +9 >Emitted(19, 55) Source(17, 46) + SourceIndex(3) --- >>> /**@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -4114,20 +4114,20 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(20, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(20, 23) Source(18, 23) + SourceIndex(3) +3 >Emitted(20, 29) Source(18, 24) + SourceIndex(3) +4 >Emitted(20, 39) Source(18, 30) + SourceIndex(3) +5 >Emitted(20, 42) Source(18, 41) + SourceIndex(3) +6 >Emitted(20, 46) Source(18, 45) + SourceIndex(3) +7 >Emitted(20, 47) Source(18, 46) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -4135,17 +4135,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 46) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /**@internal*/ set c(val: number) { } - > + > /**@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -4157,16 +4157,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -4175,23 +4175,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /**@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -4201,9 +4201,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> /**@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -4211,18 +4211,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(28, 19) Source(21, 23) + SourceIndex(3) +3 >Emitted(28, 20) Source(21, 24) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 24) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4230,16 +4230,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 42) + 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->Emitted(31, 9) Source(21, 41) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 42) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4251,10 +4251,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 41) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 42) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 24) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 42) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -4266,10 +4266,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 42) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 42) + SourceIndex(3) --- >>> /**@internal*/ function foo() { } 1->^^^^ @@ -4280,20 +4280,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(34, 19) Source(22, 23) + SourceIndex(3) +3 >Emitted(34, 20) Source(22, 24) + SourceIndex(3) +4 >Emitted(34, 29) Source(22, 40) + SourceIndex(3) +5 >Emitted(34, 32) Source(22, 43) + SourceIndex(3) +6 >Emitted(34, 37) Source(22, 47) + SourceIndex(3) +7 >Emitted(34, 38) Source(22, 48) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -4305,10 +4305,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(35, 5) Source(22, 40) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 43) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 48) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 48) + SourceIndex(3) --- >>> /**@internal*/ var someNamespace; 1->^^^^ @@ -4318,18 +4318,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(36, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(36, 19) Source(23, 23) + SourceIndex(3) +3 >Emitted(36, 20) Source(23, 24) + SourceIndex(3) +4 >Emitted(36, 24) Source(23, 41) + SourceIndex(3) +5 >Emitted(36, 37) Source(23, 54) + SourceIndex(3) +6 >Emitted(36, 38) Source(23, 76) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -4339,21 +4339,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(37, 5) Source(23, 24) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 41) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 54) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 57) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 57) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4361,16 +4361,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 74) + 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->Emitted(41, 13) Source(23, 73) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4382,10 +4382,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 73) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 74) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 57) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 74) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -4397,10 +4397,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 70) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 71) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 74) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 74) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -4421,15 +4421,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 75) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 76) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 41) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 54) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 41) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 54) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 41) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 54) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 76) + SourceIndex(3) --- >>> /**@internal*/ var someOther; 1 >^^^^ @@ -4439,18 +4439,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(45, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(45, 19) Source(24, 23) + SourceIndex(3) +3 >Emitted(45, 20) Source(24, 24) + SourceIndex(3) +4 >Emitted(45, 24) Source(24, 41) + SourceIndex(3) +5 >Emitted(45, 33) Source(24, 50) + SourceIndex(3) +6 >Emitted(45, 34) Source(24, 90) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -4459,9 +4459,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 24) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 41) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 50) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -4473,10 +4473,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 51) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 60) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 90) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -4486,21 +4486,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 51) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 51) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 60) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 63) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 63) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -4508,16 +4508,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 88) + 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->Emitted(52, 17) Source(24, 87) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 88) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -4529,10 +4529,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 87) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 88) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 63) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 88) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -4544,10 +4544,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 76) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 85) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 88) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 88) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -4568,15 +4568,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 89) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 90) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 51) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 60) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 51) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 60) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 51) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 60) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 90) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -4597,15 +4597,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 89) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 90) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 41) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 50) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 41) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 50) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 41) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 50) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 90) + SourceIndex(3) --- >>> /**@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -4618,7 +4618,7 @@ sourceFile:../../../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /**@internal*/ 3 > export import 4 > someImport @@ -4627,15 +4627,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(57, 19) Source(25, 23) + SourceIndex(3) +3 >Emitted(57, 20) Source(25, 38) + SourceIndex(3) +4 >Emitted(57, 38) Source(25, 48) + SourceIndex(3) +5 >Emitted(57, 41) Source(25, 51) + SourceIndex(3) +6 >Emitted(57, 54) Source(25, 64) + SourceIndex(3) +7 >Emitted(57, 55) Source(25, 65) + SourceIndex(3) +8 >Emitted(57, 56) Source(25, 66) + SourceIndex(3) +9 >Emitted(57, 57) Source(25, 67) + SourceIndex(3) --- >>> /**@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -4646,21 +4646,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /**@internal*/ export type internalType = internalC; - > + > /**@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) +1 >Emitted(58, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(58, 19) Source(27, 23) + SourceIndex(3) +3 >Emitted(58, 20) Source(27, 37) + SourceIndex(3) +4 >Emitted(58, 41) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 44) Source(27, 53) + SourceIndex(3) +6 >Emitted(58, 46) Source(27, 55) + SourceIndex(3) +7 >Emitted(58, 47) Source(27, 56) + SourceIndex(3) --- >>> /**@internal*/ var internalEnum; 1 >^^^^ @@ -4669,16 +4669,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(59, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(59, 19) Source(28, 23) + SourceIndex(3) +3 >Emitted(59, 20) Source(28, 24) + SourceIndex(3) +4 >Emitted(59, 24) Source(28, 36) + SourceIndex(3) +5 >Emitted(59, 36) Source(28, 60) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -4688,9 +4688,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 24) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 36) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 48) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -4700,9 +4700,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 51) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 52) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 52) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -4712,9 +4712,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 54) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 55) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 55) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -4724,9 +4724,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 57) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 58) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 58) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -4747,15 +4747,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 59) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 60) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 36) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 48) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 36) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 48) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 36) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 48) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 60) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -4767,29 +4767,29 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>/**@internal*/ var internalC = /** @class */ (function () { 1-> @@ -4797,18 +4797,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(66, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(66, 15) Source(30, 19) + SourceIndex(3) +3 >Emitted(66, 16) Source(30, 20) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 20) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4816,16 +4816,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 38) + 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->Emitted(69, 5) Source(30, 37) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 38) + SourceIndex(3) --- >>>}()); 1 > @@ -4837,10 +4837,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 37) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 38) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 20) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 38) + SourceIndex(3) --- >>>/**@internal*/ function internalfoo() { } 1-> @@ -4851,20 +4851,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(71, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(71, 15) Source(31, 19) + SourceIndex(3) +3 >Emitted(71, 16) Source(31, 20) + SourceIndex(3) +4 >Emitted(71, 25) Source(31, 29) + SourceIndex(3) +5 >Emitted(71, 36) Source(31, 40) + SourceIndex(3) +6 >Emitted(71, 41) Source(31, 44) + SourceIndex(3) +7 >Emitted(71, 42) Source(31, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalNamespace; 1 > @@ -4874,18 +4874,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(72, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(72, 15) Source(32, 19) + SourceIndex(3) +3 >Emitted(72, 16) Source(32, 20) + SourceIndex(3) +4 >Emitted(72, 20) Source(32, 30) + SourceIndex(3) +5 >Emitted(72, 37) Source(32, 47) + SourceIndex(3) +6 >Emitted(72, 38) Source(32, 77) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -4895,21 +4895,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 20) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 30) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 47) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 50) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 50) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4917,16 +4917,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 75) + 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->Emitted(77, 9) Source(32, 74) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 75) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4938,10 +4938,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 74) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 75) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 50) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 75) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -4953,10 +4953,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 63) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 72) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 75) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 75) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -4973,13 +4973,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 76) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 77) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 30) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 47) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 30) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 47) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 77) + SourceIndex(3) --- >>>/**@internal*/ var internalOther; 1 > @@ -4989,18 +4989,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(81, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(81, 15) Source(33, 19) + SourceIndex(3) +3 >Emitted(81, 16) Source(33, 20) + SourceIndex(3) +4 >Emitted(81, 20) Source(33, 30) + SourceIndex(3) +5 >Emitted(81, 33) Source(33, 43) + SourceIndex(3) +6 >Emitted(81, 34) Source(33, 83) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -5009,9 +5009,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 20) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 30) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 43) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -5023,10 +5023,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 44) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 53) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 83) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -5036,21 +5036,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 44) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 44) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 53) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 56) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -5058,16 +5058,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 81) + 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->Emitted(88, 13) Source(33, 80) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 81) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -5079,10 +5079,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 80) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 81) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 56) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 81) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -5094,10 +5094,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 69) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 78) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 81) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 81) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -5118,15 +5118,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 82) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 83) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 44) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 53) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 44) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 53) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 44) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 53) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 83) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -5144,13 +5144,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 82) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 83) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 30) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 43) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 30) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 43) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 83) + SourceIndex(3) --- >>>/**@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -5164,7 +5164,7 @@ sourceFile:../../../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/**@internal*/ 3 > 4 > import @@ -5174,16 +5174,16 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(93, 15) Source(34, 19) + SourceIndex(3) +3 >Emitted(93, 16) Source(34, 20) + SourceIndex(3) +4 >Emitted(93, 20) Source(34, 27) + SourceIndex(3) +5 >Emitted(93, 34) Source(34, 41) + SourceIndex(3) +6 >Emitted(93, 37) Source(34, 44) + SourceIndex(3) +7 >Emitted(93, 54) Source(34, 61) + SourceIndex(3) +8 >Emitted(93, 55) Source(34, 62) + SourceIndex(3) +9 >Emitted(93, 64) Source(34, 71) + SourceIndex(3) +10>Emitted(93, 65) Source(34, 72) + SourceIndex(3) --- >>>/**@internal*/ var internalConst = 10; 1 > @@ -5195,8 +5195,8 @@ sourceFile:../../../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/**@internal*/ type internalType = internalC; - > + > /**@internal*/ type internalType = internalC; + > 2 >/**@internal*/ 3 > 4 > const @@ -5204,14 +5204,14 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(94, 15) Source(36, 19) + SourceIndex(3) +3 >Emitted(94, 16) Source(36, 20) + SourceIndex(3) +4 >Emitted(94, 20) Source(36, 26) + SourceIndex(3) +5 >Emitted(94, 33) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 36) Source(36, 42) + SourceIndex(3) +7 >Emitted(94, 38) Source(36, 44) + SourceIndex(3) +8 >Emitted(94, 39) Source(36, 45) + SourceIndex(3) --- >>>/**@internal*/ var internalEnum; 1 > @@ -5220,16 +5220,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(95, 15) Source(37, 19) + SourceIndex(3) +3 >Emitted(95, 16) Source(37, 20) + SourceIndex(3) +4 >Emitted(95, 20) Source(37, 25) + SourceIndex(3) +5 >Emitted(95, 32) Source(37, 49) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -5239,9 +5239,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 20) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 25) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 37) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -5251,9 +5251,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 40) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 41) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 41) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -5263,9 +5263,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 43) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 44) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 44) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -5274,9 +5274,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 46) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 47) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 47) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -5293,13 +5293,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 48) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 49) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 25) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 37) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 25) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 37) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 49) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 4ac5d22491475..6d4a2a4eed6c4 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 @@ -72,31 +72,31 @@ namespace N { 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 } + 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/second_part2.ts] class C { @@ -264,7 +264,7 @@ declare class C { //# 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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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"} +{"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;AAEG,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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;ACpC/C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -453,12 +453,12 @@ sourceFile:../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + SourceIndex(2) --- >>> constructor(); >>> prop: string; @@ -469,27 +469,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ + > /*@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) +1 >Emitted(15, 5) Source(15, 23) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 27) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 29) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 35) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 36) + SourceIndex(2) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +1->Emitted(16, 5) Source(16, 23) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 29) + SourceIndex(2) --- >>> get c(): number; 1->^^^^ @@ -500,19 +500,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /*@internal*/ + > /*@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /*@internal*/ set c(val: + > /*@internal*/ set c(val: 5 > number 6 > -1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) +1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 27) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 28) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 34) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 40) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 45) + SourceIndex(2) --- >>> set c(val: number); 1->^^^^ @@ -523,27 +523,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) +1->Emitted(18, 5) Source(18, 23) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 27) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 28) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 29) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 34) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 40) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 45) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) + > } +1 >Emitted(19, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -551,32 +551,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +1->Emitted(20, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 23) + SourceIndex(2) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /*@internal*/ + > /*@internal*/ 2 > export class 3 > C -1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) +1 >Emitted(21, 5) Source(21, 23) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 36) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 37) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) +1 >Emitted(22, 6) Source(21, 41) + SourceIndex(2) --- >>> function foo(): void; 1->^^^^ @@ -585,14 +585,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) +1->Emitted(23, 5) Source(22, 23) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 39) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 42) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 47) + SourceIndex(2) --- >>> namespace someNamespace { 1->^^^^ @@ -600,14 +600,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) +1->Emitted(24, 5) Source(23, 23) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 40) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 53) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 54) + SourceIndex(2) --- >>> class C { 1 >^^^^^^^^ @@ -616,20 +616,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) +1 >Emitted(25, 9) Source(23, 56) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 69) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 70) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) +1 >Emitted(26, 10) Source(23, 73) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) +1 >Emitted(27, 6) Source(23, 75) + SourceIndex(2) --- >>> namespace someOther.something { 1->^^^^ @@ -639,18 +639,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) +1->Emitted(28, 5) Source(24, 23) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 40) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 49) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 50) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 59) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 60) + SourceIndex(2) --- >>> class someClass { 1 >^^^^^^^^ @@ -659,20 +659,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) +1 >Emitted(29, 9) Source(24, 62) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 75) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 84) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) +1 >Emitted(30, 10) Source(24, 87) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) +1 >Emitted(31, 6) Source(24, 89) + SourceIndex(2) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -685,7 +685,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export 3 > import 4 > someImport @@ -694,15 +694,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(32, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) +1->Emitted(32, 5) Source(25, 23) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 29) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 37) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 47) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 50) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 63) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 64) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 65) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 66) + SourceIndex(2) --- >>> type internalType = internalC; 1 >^^^^ @@ -712,18 +712,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) +1 >Emitted(33, 5) Source(26, 23) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 35) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 47) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 50) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 59) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 60) + SourceIndex(2) --- >>> const internalConst = 10; 1 >^^^^ @@ -732,28 +732,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /*@internal*/ export + > /*@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) +1 >Emitted(34, 5) Source(27, 30) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 36) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 49) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 54) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 55) + SourceIndex(2) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) +1 >Emitted(35, 5) Source(28, 23) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 35) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 47) + SourceIndex(2) --- >>> a = 0, 1 >^^^^^^^^ @@ -763,9 +763,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^^^^^ @@ -775,9 +775,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^^^^^ @@ -786,39 +786,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) +1->Emitted(38, 9) Source(28, 56) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 57) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 57) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) +1 >Emitted(39, 6) Source(28, 59) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) + > } +1 >Emitted(40, 2) Source(29, 6) + SourceIndex(2) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >class 3 > internalC -1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) +1->Emitted(41, 1) Source(30, 19) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 25) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 34) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) +1 >Emitted(42, 2) Source(30, 37) + SourceIndex(2) --- >>>declare function internalfoo(): void; 1-> @@ -827,14 +827,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/*@internal*/ + > /*@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) +1->Emitted(43, 1) Source(31, 19) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 28) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 39) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 44) + SourceIndex(2) --- >>>declare namespace internalNamespace { 1-> @@ -842,14 +842,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) +1->Emitted(44, 1) Source(32, 19) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 29) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 46) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 47) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -858,20 +858,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) +1 >Emitted(45, 5) Source(32, 49) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 62) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 71) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) +1 >Emitted(46, 6) Source(32, 74) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) +1 >Emitted(47, 2) Source(32, 76) + SourceIndex(2) --- >>>declare namespace internalOther.something { 1-> @@ -881,18 +881,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) +1->Emitted(48, 1) Source(33, 19) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 29) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 42) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 43) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 52) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 53) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -901,20 +901,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) +1 >Emitted(49, 5) Source(33, 55) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 68) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 77) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) +1 >Emitted(50, 6) Source(33, 80) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) +1 >Emitted(51, 2) Source(33, 82) + SourceIndex(2) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -926,7 +926,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -934,14 +934,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) +1->Emitted(52, 1) Source(34, 19) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 26) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 40) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 43) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 60) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 61) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 70) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 71) + SourceIndex(2) --- >>>declare type internalType = internalC; 1 > @@ -951,18 +951,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +1 >Emitted(53, 1) Source(35, 19) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 24) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 36) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 39) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 48) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 49) + SourceIndex(2) --- >>>declare const internalConst = 10; 1 > @@ -972,30 +972,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) +1 >Emitted(54, 1) Source(36, 19) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 19) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 25) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 38) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 43) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 44) + SourceIndex(2) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) +1 >Emitted(55, 1) Source(37, 19) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 24) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 36) + SourceIndex(2) --- >>> a = 0, 1 >^^^^ @@ -1005,9 +1005,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^ @@ -1017,9 +1017,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^ @@ -1028,15 +1028,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) +1->Emitted(58, 5) Source(37, 45) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 46) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 46) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) +1 >Emitted(59, 2) Source(37, 48) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1186,7 +1186,7 @@ var C = (function () { //# 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -1474,15 +1474,15 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(15, 5) Source(14, 23) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1490,8 +1490,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +1->Emitted(16, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 40) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -1501,29 +1501,29 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(17, 5) Source(16, 23) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 29) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 23) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 34) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(18, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 28) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -1540,13 +1540,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(19, 14) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 33) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 40) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 42) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 43) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 44) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 45) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -1555,16 +1555,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(20, 14) Source(18, 23) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 29) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 40) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 44) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -1572,17 +1572,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -1594,16 +1594,16 @@ sourceFile:../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -1612,23 +1612,23 @@ sourceFile:../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -1638,22 +1638,22 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(28, 5) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1661,16 +1661,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 41) + 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->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1682,10 +1682,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -1697,10 +1697,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 41) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -1710,16 +1710,16 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(34, 5) Source(22, 23) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 39) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 42) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 46) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -1731,10 +1731,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -1743,14 +1743,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(36, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 40) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 53) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -1760,21 +1760,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1782,16 +1782,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 73) + 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->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1803,10 +1803,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1818,10 +1818,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1842,15 +1842,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 75) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -1859,14 +1859,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(45, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 40) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 49) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -1875,9 +1875,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -1889,10 +1889,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -1902,21 +1902,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1924,16 +1924,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 87) + 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->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1945,10 +1945,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1960,10 +1960,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1984,15 +1984,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -2013,15 +2013,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 89) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -2032,20 +2032,20 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(57, 5) Source(25, 37) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 47) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 50) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 63) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 64) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 65) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 66) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -2054,17 +2054,17 @@ sourceFile:../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(58, 5) Source(27, 36) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 49) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 52) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 54) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 55) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -2072,12 +2072,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(59, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 35) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -2087,9 +2087,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -2099,9 +2099,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 51) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -2111,9 +2111,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 54) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -2123,9 +2123,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -2146,15 +2146,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -2166,42 +2166,42 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) + > /*@internal*/ +1->Emitted(66, 1) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2209,16 +2209,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 37) + 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->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -2230,10 +2230,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 37) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -2242,16 +2242,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(71, 1) Source(31, 19) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 28) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 39) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 43) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 44) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -2260,14 +2260,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(72, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 29) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 46) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -2277,21 +2277,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -2299,16 +2299,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 74) + 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->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -2320,10 +2320,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -2335,10 +2335,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -2355,13 +2355,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 76) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -2370,14 +2370,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(81, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 29) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 42) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -2386,9 +2386,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -2400,10 +2400,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -2413,21 +2413,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -2435,16 +2435,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 80) + 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->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -2456,10 +2456,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2471,10 +2471,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2495,15 +2495,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2521,13 +2521,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 82) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -2539,7 +2539,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -2547,14 +2547,14 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 19) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 26) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 40) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 43) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 60) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 61) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 70) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 71) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -2564,19 +2564,19 @@ sourceFile:../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(94, 1) Source(36, 19) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 25) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 38) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 41) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 43) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 44) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -2584,12 +2584,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(95, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 24) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -2599,9 +2599,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2611,9 +2611,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 40) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2623,9 +2623,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 43) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2634,9 +2634,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2653,13 +2653,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -3458,7 +3458,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -3613,24 +3613,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3638,29 +3638,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3837,7 +3837,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -4125,15 +4125,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(15, 5) Source(14, 23) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4141,8 +4141,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +1->Emitted(16, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 40) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -4152,29 +4152,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(17, 5) Source(16, 23) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 29) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 23) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 34) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(18, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 28) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -4191,13 +4191,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(19, 14) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 33) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 40) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 42) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 43) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 44) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 45) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -4206,16 +4206,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(20, 14) Source(18, 23) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 29) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 40) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 44) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -4223,17 +4223,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -4245,16 +4245,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -4263,23 +4263,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -4289,22 +4289,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(28, 5) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4312,16 +4312,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 41) + 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->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4333,10 +4333,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -4348,10 +4348,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 41) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -4361,16 +4361,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(34, 5) Source(22, 23) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 39) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 42) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 46) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -4382,10 +4382,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -4394,14 +4394,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(36, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 40) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 53) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -4411,21 +4411,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4433,16 +4433,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 73) + 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->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4454,10 +4454,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -4469,10 +4469,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -4493,15 +4493,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 75) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -4510,14 +4510,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(45, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 40) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 49) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -4526,9 +4526,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -4540,10 +4540,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -4553,21 +4553,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -4575,16 +4575,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 87) + 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->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -4596,10 +4596,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -4611,10 +4611,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -4635,15 +4635,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -4664,15 +4664,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 89) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -4683,20 +4683,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(57, 5) Source(25, 37) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 47) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 50) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 63) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 64) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 65) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 66) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -4705,17 +4705,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(58, 5) Source(27, 36) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 49) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 52) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 54) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 55) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -4723,12 +4723,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(59, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 35) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -4738,9 +4738,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -4750,9 +4750,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 51) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -4762,9 +4762,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 54) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -4774,9 +4774,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -4797,15 +4797,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -4817,42 +4817,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) + > /*@internal*/ +1->Emitted(66, 1) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4860,16 +4860,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 37) + 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->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -4881,10 +4881,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 37) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -4893,16 +4893,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(71, 1) Source(31, 19) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 28) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 39) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 43) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 44) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -4911,14 +4911,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(72, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 29) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 46) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -4928,21 +4928,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4950,16 +4950,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 74) + 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->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4971,10 +4971,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -4986,10 +4986,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -5006,13 +5006,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 76) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -5021,14 +5021,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(81, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 29) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 42) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -5037,9 +5037,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -5051,10 +5051,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -5064,21 +5064,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -5086,16 +5086,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 80) + 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->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -5107,10 +5107,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -5122,10 +5122,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -5146,15 +5146,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -5172,13 +5172,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 82) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -5190,7 +5190,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -5198,14 +5198,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 19) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 26) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 40) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 43) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 60) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 61) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 70) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 71) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -5215,19 +5215,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(94, 1) Source(36, 19) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 25) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 38) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 41) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 43) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 44) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -5235,12 +5235,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(95, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 24) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -5250,9 +5250,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -5262,9 +5262,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 40) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -5274,9 +5274,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 43) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -5285,9 +5285,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -5304,13 +5304,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 67c31ad38fd76..72055f76e7fbf 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 @@ -72,31 +72,31 @@ namespace N { 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 } + 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/second_part2.ts] class C { @@ -244,7 +244,7 @@ declare class C { //# 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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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"} +{"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;AAEG,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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;ACpC/C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -433,12 +433,12 @@ sourceFile:../second/second_part1.ts 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->Emitted(13, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 18) + SourceIndex(2) --- >>> constructor(); >>> prop: string; @@ -449,27 +449,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ + > /*@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) +1 >Emitted(15, 5) Source(15, 23) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 27) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 29) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 35) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 36) + SourceIndex(2) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +1->Emitted(16, 5) Source(16, 23) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 29) + SourceIndex(2) --- >>> get c(): number; 1->^^^^ @@ -480,19 +480,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /*@internal*/ + > /*@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /*@internal*/ set c(val: + > /*@internal*/ set c(val: 5 > number 6 > -1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) +1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 27) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 28) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 34) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 40) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 45) + SourceIndex(2) --- >>> set c(val: number); 1->^^^^ @@ -503,27 +503,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) +1->Emitted(18, 5) Source(18, 23) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 27) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 28) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 29) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 34) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 40) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 45) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) + > } +1 >Emitted(19, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -531,32 +531,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +1->Emitted(20, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 23) + SourceIndex(2) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /*@internal*/ + > /*@internal*/ 2 > export class 3 > C -1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) +1 >Emitted(21, 5) Source(21, 23) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 36) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 37) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) +1 >Emitted(22, 6) Source(21, 41) + SourceIndex(2) --- >>> function foo(): void; 1->^^^^ @@ -565,14 +565,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) +1->Emitted(23, 5) Source(22, 23) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 39) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 42) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 47) + SourceIndex(2) --- >>> namespace someNamespace { 1->^^^^ @@ -580,14 +580,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) +1->Emitted(24, 5) Source(23, 23) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 40) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 53) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 54) + SourceIndex(2) --- >>> class C { 1 >^^^^^^^^ @@ -596,20 +596,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) +1 >Emitted(25, 9) Source(23, 56) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 69) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 70) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) +1 >Emitted(26, 10) Source(23, 73) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) +1 >Emitted(27, 6) Source(23, 75) + SourceIndex(2) --- >>> namespace someOther.something { 1->^^^^ @@ -619,18 +619,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) +1->Emitted(28, 5) Source(24, 23) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 40) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 49) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 50) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 59) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 60) + SourceIndex(2) --- >>> class someClass { 1 >^^^^^^^^ @@ -639,20 +639,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) +1 >Emitted(29, 9) Source(24, 62) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 75) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 84) + SourceIndex(2) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) +1 >Emitted(30, 10) Source(24, 87) + SourceIndex(2) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) +1 >Emitted(31, 6) Source(24, 89) + SourceIndex(2) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -665,7 +665,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export 3 > import 4 > someImport @@ -674,15 +674,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(32, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) +1->Emitted(32, 5) Source(25, 23) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 29) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 37) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 47) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 50) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 63) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 64) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 65) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 66) + SourceIndex(2) --- >>> type internalType = internalC; 1 >^^^^ @@ -692,18 +692,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) +1 >Emitted(33, 5) Source(26, 23) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 35) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 47) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 50) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 59) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 60) + SourceIndex(2) --- >>> const internalConst = 10; 1 >^^^^ @@ -712,28 +712,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /*@internal*/ export + > /*@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) +1 >Emitted(34, 5) Source(27, 30) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 36) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 49) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 54) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 55) + SourceIndex(2) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) +1 >Emitted(35, 5) Source(28, 23) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 35) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 47) + SourceIndex(2) --- >>> a = 0, 1 >^^^^^^^^ @@ -743,9 +743,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^^^^^ @@ -755,9 +755,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^^^^^ @@ -766,39 +766,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) +1->Emitted(38, 9) Source(28, 56) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 57) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 57) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) +1 >Emitted(39, 6) Source(28, 59) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) + > } +1 >Emitted(40, 2) Source(29, 6) + SourceIndex(2) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >class 3 > internalC -1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) +1->Emitted(41, 1) Source(30, 19) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 25) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 34) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) +1 >Emitted(42, 2) Source(30, 37) + SourceIndex(2) --- >>>declare function internalfoo(): void; 1-> @@ -807,14 +807,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/*@internal*/ + > /*@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) +1->Emitted(43, 1) Source(31, 19) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 28) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 39) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 44) + SourceIndex(2) --- >>>declare namespace internalNamespace { 1-> @@ -822,14 +822,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) +1->Emitted(44, 1) Source(32, 19) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 29) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 46) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 47) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -838,20 +838,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) +1 >Emitted(45, 5) Source(32, 49) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 62) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 71) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) +1 >Emitted(46, 6) Source(32, 74) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) +1 >Emitted(47, 2) Source(32, 76) + SourceIndex(2) --- >>>declare namespace internalOther.something { 1-> @@ -861,18 +861,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) +1->Emitted(48, 1) Source(33, 19) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 29) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 42) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 43) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 52) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 53) + SourceIndex(2) --- >>> class someClass { 1 >^^^^ @@ -881,20 +881,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) +1 >Emitted(49, 5) Source(33, 55) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 68) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 77) + SourceIndex(2) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) +1 >Emitted(50, 6) Source(33, 80) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) +1 >Emitted(51, 2) Source(33, 82) + SourceIndex(2) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -906,7 +906,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -914,14 +914,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) +1->Emitted(52, 1) Source(34, 19) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 26) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 40) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 43) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 60) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 61) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 70) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 71) + SourceIndex(2) --- >>>declare type internalType = internalC; 1 > @@ -931,18 +931,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +1 >Emitted(53, 1) Source(35, 19) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 24) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 36) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 39) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 48) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 49) + SourceIndex(2) --- >>>declare const internalConst = 10; 1 > @@ -952,30 +952,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) +1 >Emitted(54, 1) Source(36, 19) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 19) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 25) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 38) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 43) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 44) + SourceIndex(2) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) +1 >Emitted(55, 1) Source(37, 19) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 24) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 36) + SourceIndex(2) --- >>> a = 0, 1 >^^^^ @@ -985,9 +985,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) +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) --- >>> b = 1, 1->^^^^ @@ -997,9 +997,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) +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) --- >>> c = 2 1->^^^^ @@ -1008,15 +1008,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) +1->Emitted(58, 5) Source(37, 45) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 46) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 46) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) +1 >Emitted(59, 2) Source(37, 48) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1166,7 +1166,7 @@ var C = /** @class */ (function () { //# 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -1454,20 +1454,20 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + 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->Emitted(15, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(15, 18) Source(14, 22) + SourceIndex(3) +3 >Emitted(15, 19) Source(14, 23) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1475,8 +1475,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +1 >Emitted(16, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 40) + SourceIndex(3) --- >>> /*@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -1487,21 +1487,21 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /*@internal*/ prop: string; - > + > /*@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) +1->Emitted(17, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(17, 18) Source(16, 22) + SourceIndex(3) +3 >Emitted(17, 19) Source(16, 23) + SourceIndex(3) +4 >Emitted(17, 43) Source(16, 29) + SourceIndex(3) +5 >Emitted(17, 46) Source(16, 23) + SourceIndex(3) +6 >Emitted(17, 60) Source(16, 34) + SourceIndex(3) +7 >Emitted(17, 61) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -1509,12 +1509,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(18, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 28) + SourceIndex(3) --- >>> /*@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -1535,15 +1535,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(19, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(19, 22) Source(17, 22) + SourceIndex(3) +3 >Emitted(19, 28) Source(17, 23) + SourceIndex(3) +4 >Emitted(19, 42) Source(17, 33) + SourceIndex(3) +5 >Emitted(19, 49) Source(17, 40) + SourceIndex(3) +6 >Emitted(19, 51) Source(17, 42) + SourceIndex(3) +7 >Emitted(19, 52) Source(17, 43) + SourceIndex(3) +8 >Emitted(19, 53) Source(17, 44) + SourceIndex(3) +9 >Emitted(19, 54) Source(17, 45) + SourceIndex(3) --- >>> /*@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -1554,20 +1554,20 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(20, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(20, 22) Source(18, 22) + SourceIndex(3) +3 >Emitted(20, 28) Source(18, 23) + SourceIndex(3) +4 >Emitted(20, 38) Source(18, 29) + SourceIndex(3) +5 >Emitted(20, 41) Source(18, 40) + SourceIndex(3) +6 >Emitted(20, 45) Source(18, 44) + SourceIndex(3) +7 >Emitted(20, 46) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -1575,17 +1575,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -1597,16 +1597,16 @@ sourceFile:../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -1615,23 +1615,23 @@ sourceFile:../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -1641,9 +1641,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> /*@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -1651,18 +1651,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(28, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(28, 18) Source(21, 22) + SourceIndex(3) +3 >Emitted(28, 19) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -1670,16 +1670,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 41) + 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->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -1691,10 +1691,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -1706,10 +1706,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 41) + SourceIndex(3) --- >>> /*@internal*/ function foo() { } 1->^^^^ @@ -1720,20 +1720,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(34, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(34, 18) Source(22, 22) + SourceIndex(3) +3 >Emitted(34, 19) Source(22, 23) + SourceIndex(3) +4 >Emitted(34, 28) Source(22, 39) + SourceIndex(3) +5 >Emitted(34, 31) Source(22, 42) + SourceIndex(3) +6 >Emitted(34, 36) Source(22, 46) + SourceIndex(3) +7 >Emitted(34, 37) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -1745,10 +1745,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(35, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> /*@internal*/ var someNamespace; 1->^^^^ @@ -1758,18 +1758,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(36, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(36, 18) Source(23, 22) + SourceIndex(3) +3 >Emitted(36, 19) Source(23, 23) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 40) + SourceIndex(3) +5 >Emitted(36, 36) Source(23, 53) + SourceIndex(3) +6 >Emitted(36, 37) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -1779,21 +1779,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -1801,16 +1801,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 73) + 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->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -1822,10 +1822,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1837,10 +1837,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1861,15 +1861,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 75) + SourceIndex(3) --- >>> /*@internal*/ var someOther; 1 >^^^^ @@ -1879,18 +1879,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(45, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(45, 18) Source(24, 22) + SourceIndex(3) +3 >Emitted(45, 19) Source(24, 23) + SourceIndex(3) +4 >Emitted(45, 23) Source(24, 40) + SourceIndex(3) +5 >Emitted(45, 32) Source(24, 49) + SourceIndex(3) +6 >Emitted(45, 33) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -1899,9 +1899,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -1913,10 +1913,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -1926,21 +1926,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1948,16 +1948,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 87) + 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->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1969,10 +1969,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1984,10 +1984,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -2008,15 +2008,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -2037,15 +2037,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 89) + SourceIndex(3) --- >>> /*@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -2058,7 +2058,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /*@internal*/ 3 > export import 4 > someImport @@ -2067,15 +2067,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(57, 18) Source(25, 22) + SourceIndex(3) +3 >Emitted(57, 19) Source(25, 37) + SourceIndex(3) +4 >Emitted(57, 37) Source(25, 47) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 50) + SourceIndex(3) +6 >Emitted(57, 53) Source(25, 63) + SourceIndex(3) +7 >Emitted(57, 54) Source(25, 64) + SourceIndex(3) +8 >Emitted(57, 55) Source(25, 65) + SourceIndex(3) +9 >Emitted(57, 56) Source(25, 66) + SourceIndex(3) --- >>> /*@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -2086,21 +2086,21 @@ sourceFile:../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > + > /*@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) +1 >Emitted(58, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(58, 18) Source(27, 22) + SourceIndex(3) +3 >Emitted(58, 19) Source(27, 36) + SourceIndex(3) +4 >Emitted(58, 40) Source(27, 49) + SourceIndex(3) +5 >Emitted(58, 43) Source(27, 52) + SourceIndex(3) +6 >Emitted(58, 45) Source(27, 54) + SourceIndex(3) +7 >Emitted(58, 46) Source(27, 55) + SourceIndex(3) --- >>> /*@internal*/ var internalEnum; 1 >^^^^ @@ -2109,16 +2109,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(59, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(59, 18) Source(28, 22) + SourceIndex(3) +3 >Emitted(59, 19) Source(28, 23) + SourceIndex(3) +4 >Emitted(59, 23) Source(28, 35) + SourceIndex(3) +5 >Emitted(59, 35) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -2128,9 +2128,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -2140,9 +2140,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 51) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -2152,9 +2152,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 54) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -2164,9 +2164,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -2187,15 +2187,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -2207,29 +2207,29 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>/*@internal*/ var internalC = /** @class */ (function () { 1-> @@ -2237,18 +2237,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(66, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(66, 14) Source(30, 18) + SourceIndex(3) +3 >Emitted(66, 15) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2256,16 +2256,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 37) + 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->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -2277,10 +2277,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 37) + SourceIndex(3) --- >>>/*@internal*/ function internalfoo() { } 1-> @@ -2291,20 +2291,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(71, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(71, 14) Source(31, 18) + SourceIndex(3) +3 >Emitted(71, 15) Source(31, 19) + SourceIndex(3) +4 >Emitted(71, 24) Source(31, 28) + SourceIndex(3) +5 >Emitted(71, 35) Source(31, 39) + SourceIndex(3) +6 >Emitted(71, 40) Source(31, 43) + SourceIndex(3) +7 >Emitted(71, 41) Source(31, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalNamespace; 1 > @@ -2314,18 +2314,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(72, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(72, 14) Source(32, 18) + SourceIndex(3) +3 >Emitted(72, 15) Source(32, 19) + SourceIndex(3) +4 >Emitted(72, 19) Source(32, 29) + SourceIndex(3) +5 >Emitted(72, 36) Source(32, 46) + SourceIndex(3) +6 >Emitted(72, 37) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -2335,21 +2335,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -2357,16 +2357,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 74) + 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->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -2378,10 +2378,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -2393,10 +2393,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -2413,13 +2413,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 76) + SourceIndex(3) --- >>>/*@internal*/ var internalOther; 1 > @@ -2429,18 +2429,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(81, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(81, 14) Source(33, 18) + SourceIndex(3) +3 >Emitted(81, 15) Source(33, 19) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 29) + SourceIndex(3) +5 >Emitted(81, 32) Source(33, 42) + SourceIndex(3) +6 >Emitted(81, 33) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -2449,9 +2449,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -2463,10 +2463,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -2476,21 +2476,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -2498,16 +2498,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 80) + 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->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -2519,10 +2519,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2534,10 +2534,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2558,15 +2558,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2584,13 +2584,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 82) + SourceIndex(3) --- >>>/*@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -2604,7 +2604,7 @@ sourceFile:../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/*@internal*/ 3 > 4 > import @@ -2614,16 +2614,16 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(93, 14) Source(34, 18) + SourceIndex(3) +3 >Emitted(93, 15) Source(34, 19) + SourceIndex(3) +4 >Emitted(93, 19) Source(34, 26) + SourceIndex(3) +5 >Emitted(93, 33) Source(34, 40) + SourceIndex(3) +6 >Emitted(93, 36) Source(34, 43) + SourceIndex(3) +7 >Emitted(93, 53) Source(34, 60) + SourceIndex(3) +8 >Emitted(93, 54) Source(34, 61) + SourceIndex(3) +9 >Emitted(93, 63) Source(34, 70) + SourceIndex(3) +10>Emitted(93, 64) Source(34, 71) + SourceIndex(3) --- >>>/*@internal*/ var internalConst = 10; 1 > @@ -2635,8 +2635,8 @@ sourceFile:../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/*@internal*/ type internalType = internalC; - > + > /*@internal*/ type internalType = internalC; + > 2 >/*@internal*/ 3 > 4 > const @@ -2644,14 +2644,14 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(94, 14) Source(36, 18) + SourceIndex(3) +3 >Emitted(94, 15) Source(36, 19) + SourceIndex(3) +4 >Emitted(94, 19) Source(36, 25) + SourceIndex(3) +5 >Emitted(94, 32) Source(36, 38) + SourceIndex(3) +6 >Emitted(94, 35) Source(36, 41) + SourceIndex(3) +7 >Emitted(94, 37) Source(36, 43) + SourceIndex(3) +8 >Emitted(94, 38) Source(36, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalEnum; 1 > @@ -2660,16 +2660,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(95, 14) Source(37, 18) + SourceIndex(3) +3 >Emitted(95, 15) Source(37, 19) + SourceIndex(3) +4 >Emitted(95, 19) Source(37, 24) + SourceIndex(3) +5 >Emitted(95, 31) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -2679,9 +2679,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2691,9 +2691,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 40) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2703,9 +2703,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 43) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2714,9 +2714,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2733,13 +2733,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -3538,7 +3538,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -3693,24 +3693,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3718,29 +3718,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3917,7 +3917,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -4205,20 +4205,20 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + 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->Emitted(15, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(15, 18) Source(14, 22) + SourceIndex(3) +3 >Emitted(15, 19) Source(14, 23) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -4226,8 +4226,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +1 >Emitted(16, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 40) + SourceIndex(3) --- >>> /*@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -4238,21 +4238,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /*@internal*/ prop: string; - > + > /*@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) +1->Emitted(17, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(17, 18) Source(16, 22) + SourceIndex(3) +3 >Emitted(17, 19) Source(16, 23) + SourceIndex(3) +4 >Emitted(17, 43) Source(16, 29) + SourceIndex(3) +5 >Emitted(17, 46) Source(16, 23) + SourceIndex(3) +6 >Emitted(17, 60) Source(16, 34) + SourceIndex(3) +7 >Emitted(17, 61) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -4260,12 +4260,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(18, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 28) + SourceIndex(3) --- >>> /*@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -4286,15 +4286,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(19, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(19, 22) Source(17, 22) + SourceIndex(3) +3 >Emitted(19, 28) Source(17, 23) + SourceIndex(3) +4 >Emitted(19, 42) Source(17, 33) + SourceIndex(3) +5 >Emitted(19, 49) Source(17, 40) + SourceIndex(3) +6 >Emitted(19, 51) Source(17, 42) + SourceIndex(3) +7 >Emitted(19, 52) Source(17, 43) + SourceIndex(3) +8 >Emitted(19, 53) Source(17, 44) + SourceIndex(3) +9 >Emitted(19, 54) Source(17, 45) + SourceIndex(3) --- >>> /*@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -4305,20 +4305,20 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(20, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(20, 22) Source(18, 22) + SourceIndex(3) +3 >Emitted(20, 28) Source(18, 23) + SourceIndex(3) +4 >Emitted(20, 38) Source(18, 29) + SourceIndex(3) +5 >Emitted(20, 41) Source(18, 40) + SourceIndex(3) +6 >Emitted(20, 45) Source(18, 44) + SourceIndex(3) +7 >Emitted(20, 46) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -4326,17 +4326,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -4348,16 +4348,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -4366,23 +4366,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -4392,9 +4392,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> /*@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -4402,18 +4402,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(28, 18) Source(21, 22) + SourceIndex(3) +3 >Emitted(28, 19) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4421,16 +4421,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 41) + 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->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4442,10 +4442,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -4457,10 +4457,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 41) + SourceIndex(3) --- >>> /*@internal*/ function foo() { } 1->^^^^ @@ -4471,20 +4471,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(34, 18) Source(22, 22) + SourceIndex(3) +3 >Emitted(34, 19) Source(22, 23) + SourceIndex(3) +4 >Emitted(34, 28) Source(22, 39) + SourceIndex(3) +5 >Emitted(34, 31) Source(22, 42) + SourceIndex(3) +6 >Emitted(34, 36) Source(22, 46) + SourceIndex(3) +7 >Emitted(34, 37) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -4496,10 +4496,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(35, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> /*@internal*/ var someNamespace; 1->^^^^ @@ -4509,18 +4509,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(36, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(36, 18) Source(23, 22) + SourceIndex(3) +3 >Emitted(36, 19) Source(23, 23) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 40) + SourceIndex(3) +5 >Emitted(36, 36) Source(23, 53) + SourceIndex(3) +6 >Emitted(36, 37) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -4530,21 +4530,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4552,16 +4552,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 73) + 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->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4573,10 +4573,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -4588,10 +4588,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -4612,15 +4612,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 75) + SourceIndex(3) --- >>> /*@internal*/ var someOther; 1 >^^^^ @@ -4630,18 +4630,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(45, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(45, 18) Source(24, 22) + SourceIndex(3) +3 >Emitted(45, 19) Source(24, 23) + SourceIndex(3) +4 >Emitted(45, 23) Source(24, 40) + SourceIndex(3) +5 >Emitted(45, 32) Source(24, 49) + SourceIndex(3) +6 >Emitted(45, 33) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -4650,9 +4650,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -4664,10 +4664,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -4677,21 +4677,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -4699,16 +4699,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 87) + 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->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -4720,10 +4720,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -4735,10 +4735,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -4759,15 +4759,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -4788,15 +4788,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 89) + SourceIndex(3) --- >>> /*@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -4809,7 +4809,7 @@ sourceFile:../../../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /*@internal*/ 3 > export import 4 > someImport @@ -4818,15 +4818,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(57, 18) Source(25, 22) + SourceIndex(3) +3 >Emitted(57, 19) Source(25, 37) + SourceIndex(3) +4 >Emitted(57, 37) Source(25, 47) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 50) + SourceIndex(3) +6 >Emitted(57, 53) Source(25, 63) + SourceIndex(3) +7 >Emitted(57, 54) Source(25, 64) + SourceIndex(3) +8 >Emitted(57, 55) Source(25, 65) + SourceIndex(3) +9 >Emitted(57, 56) Source(25, 66) + SourceIndex(3) --- >>> /*@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -4837,21 +4837,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > + > /*@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) +1 >Emitted(58, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(58, 18) Source(27, 22) + SourceIndex(3) +3 >Emitted(58, 19) Source(27, 36) + SourceIndex(3) +4 >Emitted(58, 40) Source(27, 49) + SourceIndex(3) +5 >Emitted(58, 43) Source(27, 52) + SourceIndex(3) +6 >Emitted(58, 45) Source(27, 54) + SourceIndex(3) +7 >Emitted(58, 46) Source(27, 55) + SourceIndex(3) --- >>> /*@internal*/ var internalEnum; 1 >^^^^ @@ -4860,16 +4860,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(59, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(59, 18) Source(28, 22) + SourceIndex(3) +3 >Emitted(59, 19) Source(28, 23) + SourceIndex(3) +4 >Emitted(59, 23) Source(28, 35) + SourceIndex(3) +5 >Emitted(59, 35) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -4879,9 +4879,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -4891,9 +4891,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 51) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -4903,9 +4903,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 54) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -4915,9 +4915,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -4938,15 +4938,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -4958,29 +4958,29 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>/*@internal*/ var internalC = /** @class */ (function () { 1-> @@ -4988,18 +4988,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(66, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(66, 14) Source(30, 18) + SourceIndex(3) +3 >Emitted(66, 15) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -5007,16 +5007,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 37) + 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->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -5028,10 +5028,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 37) + SourceIndex(3) --- >>>/*@internal*/ function internalfoo() { } 1-> @@ -5042,20 +5042,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(71, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(71, 14) Source(31, 18) + SourceIndex(3) +3 >Emitted(71, 15) Source(31, 19) + SourceIndex(3) +4 >Emitted(71, 24) Source(31, 28) + SourceIndex(3) +5 >Emitted(71, 35) Source(31, 39) + SourceIndex(3) +6 >Emitted(71, 40) Source(31, 43) + SourceIndex(3) +7 >Emitted(71, 41) Source(31, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalNamespace; 1 > @@ -5065,18 +5065,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(72, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(72, 14) Source(32, 18) + SourceIndex(3) +3 >Emitted(72, 15) Source(32, 19) + SourceIndex(3) +4 >Emitted(72, 19) Source(32, 29) + SourceIndex(3) +5 >Emitted(72, 36) Source(32, 46) + SourceIndex(3) +6 >Emitted(72, 37) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -5086,21 +5086,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -5108,16 +5108,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 74) + 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->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -5129,10 +5129,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -5144,10 +5144,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -5164,13 +5164,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 76) + SourceIndex(3) --- >>>/*@internal*/ var internalOther; 1 > @@ -5180,18 +5180,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(81, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(81, 14) Source(33, 18) + SourceIndex(3) +3 >Emitted(81, 15) Source(33, 19) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 29) + SourceIndex(3) +5 >Emitted(81, 32) Source(33, 42) + SourceIndex(3) +6 >Emitted(81, 33) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -5200,9 +5200,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -5214,10 +5214,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -5227,21 +5227,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -5249,16 +5249,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 80) + 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->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -5270,10 +5270,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -5285,10 +5285,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -5309,15 +5309,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -5335,13 +5335,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 82) + SourceIndex(3) --- >>>/*@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -5355,7 +5355,7 @@ sourceFile:../../../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/*@internal*/ 3 > 4 > import @@ -5365,16 +5365,16 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(93, 14) Source(34, 18) + SourceIndex(3) +3 >Emitted(93, 15) Source(34, 19) + SourceIndex(3) +4 >Emitted(93, 19) Source(34, 26) + SourceIndex(3) +5 >Emitted(93, 33) Source(34, 40) + SourceIndex(3) +6 >Emitted(93, 36) Source(34, 43) + SourceIndex(3) +7 >Emitted(93, 53) Source(34, 60) + SourceIndex(3) +8 >Emitted(93, 54) Source(34, 61) + SourceIndex(3) +9 >Emitted(93, 63) Source(34, 70) + SourceIndex(3) +10>Emitted(93, 64) Source(34, 71) + SourceIndex(3) --- >>>/*@internal*/ var internalConst = 10; 1 > @@ -5386,8 +5386,8 @@ sourceFile:../../../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/*@internal*/ type internalType = internalC; - > + > /*@internal*/ type internalType = internalC; + > 2 >/*@internal*/ 3 > 4 > const @@ -5395,14 +5395,14 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(94, 14) Source(36, 18) + SourceIndex(3) +3 >Emitted(94, 15) Source(36, 19) + SourceIndex(3) +4 >Emitted(94, 19) Source(36, 25) + SourceIndex(3) +5 >Emitted(94, 32) Source(36, 38) + SourceIndex(3) +6 >Emitted(94, 35) Source(36, 41) + SourceIndex(3) +7 >Emitted(94, 37) Source(36, 43) + SourceIndex(3) +8 >Emitted(94, 38) Source(36, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalEnum; 1 > @@ -5411,16 +5411,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(95, 14) Source(37, 18) + SourceIndex(3) +3 >Emitted(95, 15) Source(37, 19) + SourceIndex(3) +4 >Emitted(95, 19) Source(37, 24) + SourceIndex(3) +5 >Emitted(95, 31) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -5430,9 +5430,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -5442,9 +5442,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 40) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -5454,9 +5454,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 43) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -5465,9 +5465,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -5484,13 +5484,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 eef87379bc71c..506b43d29b2de 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 @@ -72,31 +72,31 @@ namespace N { 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 } + 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/second_part2.ts] class C { @@ -235,7 +235,7 @@ declare class C { //# 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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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"} +{"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;AAEG,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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;ACpC/C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -304,12 +304,12 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(5, 1) Source(13, 5) + SourceIndex(0) +2 >Emitted(5, 15) Source(13, 11) + SourceIndex(0) +3 >Emitted(5, 22) Source(13, 18) + SourceIndex(0) --- >>> constructor(); >>> prop: string; @@ -320,27 +320,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ + > /*@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) +1 >Emitted(7, 5) Source(15, 23) + SourceIndex(0) +2 >Emitted(7, 9) Source(15, 27) + SourceIndex(0) +3 >Emitted(7, 11) Source(15, 29) + SourceIndex(0) +4 >Emitted(7, 17) Source(15, 35) + SourceIndex(0) +5 >Emitted(7, 18) Source(15, 36) + SourceIndex(0) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > method -1->Emitted(8, 5) Source(16, 19) + SourceIndex(0) -2 >Emitted(8, 11) Source(16, 25) + SourceIndex(0) +1->Emitted(8, 5) Source(16, 23) + SourceIndex(0) +2 >Emitted(8, 11) Source(16, 29) + SourceIndex(0) --- >>> get c(): number; 1->^^^^ @@ -351,19 +351,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /*@internal*/ + > /*@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /*@internal*/ set c(val: + > /*@internal*/ set c(val: 5 > number 6 > -1->Emitted(9, 5) Source(17, 19) + SourceIndex(0) -2 >Emitted(9, 9) Source(17, 23) + SourceIndex(0) -3 >Emitted(9, 10) Source(17, 24) + SourceIndex(0) -4 >Emitted(9, 14) Source(18, 30) + SourceIndex(0) -5 >Emitted(9, 20) Source(18, 36) + SourceIndex(0) -6 >Emitted(9, 21) Source(17, 41) + SourceIndex(0) +1->Emitted(9, 5) Source(17, 23) + SourceIndex(0) +2 >Emitted(9, 9) Source(17, 27) + SourceIndex(0) +3 >Emitted(9, 10) Source(17, 28) + SourceIndex(0) +4 >Emitted(9, 14) Source(18, 34) + SourceIndex(0) +5 >Emitted(9, 20) Source(18, 40) + SourceIndex(0) +6 >Emitted(9, 21) Source(17, 45) + SourceIndex(0) --- >>> set c(val: number); 1->^^^^ @@ -374,27 +374,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(10, 5) Source(18, 19) + SourceIndex(0) -2 >Emitted(10, 9) Source(18, 23) + SourceIndex(0) -3 >Emitted(10, 10) Source(18, 24) + SourceIndex(0) -4 >Emitted(10, 11) Source(18, 25) + SourceIndex(0) -5 >Emitted(10, 16) Source(18, 30) + SourceIndex(0) -6 >Emitted(10, 22) Source(18, 36) + SourceIndex(0) -7 >Emitted(10, 24) Source(18, 41) + SourceIndex(0) +1->Emitted(10, 5) Source(18, 23) + SourceIndex(0) +2 >Emitted(10, 9) Source(18, 27) + SourceIndex(0) +3 >Emitted(10, 10) Source(18, 28) + SourceIndex(0) +4 >Emitted(10, 11) Source(18, 29) + SourceIndex(0) +5 >Emitted(10, 16) Source(18, 34) + SourceIndex(0) +6 >Emitted(10, 22) Source(18, 40) + SourceIndex(0) +7 >Emitted(10, 24) Source(18, 45) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(0) --- >>>declare namespace normalN { 1-> @@ -402,32 +402,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(0) +1->Emitted(12, 1) Source(20, 5) + SourceIndex(0) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(0) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(0) +4 >Emitted(12, 27) Source(20, 23) + SourceIndex(0) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /*@internal*/ + > /*@internal*/ 2 > export class 3 > C -1 >Emitted(13, 5) Source(21, 19) + SourceIndex(0) -2 >Emitted(13, 11) Source(21, 32) + SourceIndex(0) -3 >Emitted(13, 12) Source(21, 33) + SourceIndex(0) +1 >Emitted(13, 5) Source(21, 23) + SourceIndex(0) +2 >Emitted(13, 11) Source(21, 36) + SourceIndex(0) +3 >Emitted(13, 12) Source(21, 37) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(14, 6) Source(21, 37) + SourceIndex(0) +1 >Emitted(14, 6) Source(21, 41) + SourceIndex(0) --- >>> function foo(): void; 1->^^^^ @@ -436,14 +436,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(15, 5) Source(22, 19) + SourceIndex(0) -2 >Emitted(15, 14) Source(22, 35) + SourceIndex(0) -3 >Emitted(15, 17) Source(22, 38) + SourceIndex(0) -4 >Emitted(15, 26) Source(22, 43) + SourceIndex(0) +1->Emitted(15, 5) Source(22, 23) + SourceIndex(0) +2 >Emitted(15, 14) Source(22, 39) + SourceIndex(0) +3 >Emitted(15, 17) Source(22, 42) + SourceIndex(0) +4 >Emitted(15, 26) Source(22, 47) + SourceIndex(0) --- >>> namespace someNamespace { 1->^^^^ @@ -451,14 +451,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(16, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 36) + SourceIndex(0) -3 >Emitted(16, 28) Source(23, 49) + SourceIndex(0) -4 >Emitted(16, 29) Source(23, 50) + SourceIndex(0) +1->Emitted(16, 5) Source(23, 23) + SourceIndex(0) +2 >Emitted(16, 15) Source(23, 40) + SourceIndex(0) +3 >Emitted(16, 28) Source(23, 53) + SourceIndex(0) +4 >Emitted(16, 29) Source(23, 54) + SourceIndex(0) --- >>> class C { 1 >^^^^^^^^ @@ -467,20 +467,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(17, 9) Source(23, 52) + SourceIndex(0) -2 >Emitted(17, 15) Source(23, 65) + SourceIndex(0) -3 >Emitted(17, 16) Source(23, 66) + SourceIndex(0) +1 >Emitted(17, 9) Source(23, 56) + SourceIndex(0) +2 >Emitted(17, 15) Source(23, 69) + SourceIndex(0) +3 >Emitted(17, 16) Source(23, 70) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(18, 10) Source(23, 69) + SourceIndex(0) +1 >Emitted(18, 10) Source(23, 73) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(19, 6) Source(23, 71) + SourceIndex(0) +1 >Emitted(19, 6) Source(23, 75) + SourceIndex(0) --- >>> namespace someOther.something { 1->^^^^ @@ -490,18 +490,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(20, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 36) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 45) + SourceIndex(0) -4 >Emitted(20, 25) Source(24, 46) + SourceIndex(0) -5 >Emitted(20, 34) Source(24, 55) + SourceIndex(0) -6 >Emitted(20, 35) Source(24, 56) + SourceIndex(0) +1->Emitted(20, 5) Source(24, 23) + SourceIndex(0) +2 >Emitted(20, 15) Source(24, 40) + SourceIndex(0) +3 >Emitted(20, 24) Source(24, 49) + SourceIndex(0) +4 >Emitted(20, 25) Source(24, 50) + SourceIndex(0) +5 >Emitted(20, 34) Source(24, 59) + SourceIndex(0) +6 >Emitted(20, 35) Source(24, 60) + SourceIndex(0) --- >>> class someClass { 1 >^^^^^^^^ @@ -510,20 +510,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(21, 9) Source(24, 58) + SourceIndex(0) -2 >Emitted(21, 15) Source(24, 71) + SourceIndex(0) -3 >Emitted(21, 24) Source(24, 80) + SourceIndex(0) +1 >Emitted(21, 9) Source(24, 62) + SourceIndex(0) +2 >Emitted(21, 15) Source(24, 75) + SourceIndex(0) +3 >Emitted(21, 24) Source(24, 84) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(22, 10) Source(24, 83) + SourceIndex(0) +1 >Emitted(22, 10) Source(24, 87) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(23, 6) Source(24, 85) + SourceIndex(0) +1 >Emitted(23, 6) Source(24, 89) + SourceIndex(0) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -536,7 +536,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export 3 > import 4 > someImport @@ -545,15 +545,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(24, 5) Source(25, 19) + SourceIndex(0) -2 >Emitted(24, 11) Source(25, 25) + SourceIndex(0) -3 >Emitted(24, 19) Source(25, 33) + SourceIndex(0) -4 >Emitted(24, 29) Source(25, 43) + SourceIndex(0) -5 >Emitted(24, 32) Source(25, 46) + SourceIndex(0) -6 >Emitted(24, 45) Source(25, 59) + SourceIndex(0) -7 >Emitted(24, 46) Source(25, 60) + SourceIndex(0) -8 >Emitted(24, 47) Source(25, 61) + SourceIndex(0) -9 >Emitted(24, 48) Source(25, 62) + SourceIndex(0) +1->Emitted(24, 5) Source(25, 23) + SourceIndex(0) +2 >Emitted(24, 11) Source(25, 29) + SourceIndex(0) +3 >Emitted(24, 19) Source(25, 37) + SourceIndex(0) +4 >Emitted(24, 29) Source(25, 47) + SourceIndex(0) +5 >Emitted(24, 32) Source(25, 50) + SourceIndex(0) +6 >Emitted(24, 45) Source(25, 63) + SourceIndex(0) +7 >Emitted(24, 46) Source(25, 64) + SourceIndex(0) +8 >Emitted(24, 47) Source(25, 65) + SourceIndex(0) +9 >Emitted(24, 48) Source(25, 66) + SourceIndex(0) --- >>> type internalType = internalC; 1 >^^^^ @@ -563,18 +563,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(25, 5) Source(26, 19) + SourceIndex(0) -2 >Emitted(25, 10) Source(26, 31) + SourceIndex(0) -3 >Emitted(25, 22) Source(26, 43) + SourceIndex(0) -4 >Emitted(25, 25) Source(26, 46) + SourceIndex(0) -5 >Emitted(25, 34) Source(26, 55) + SourceIndex(0) -6 >Emitted(25, 35) Source(26, 56) + SourceIndex(0) +1 >Emitted(25, 5) Source(26, 23) + SourceIndex(0) +2 >Emitted(25, 10) Source(26, 35) + SourceIndex(0) +3 >Emitted(25, 22) Source(26, 47) + SourceIndex(0) +4 >Emitted(25, 25) Source(26, 50) + SourceIndex(0) +5 >Emitted(25, 34) Source(26, 59) + SourceIndex(0) +6 >Emitted(25, 35) Source(26, 60) + SourceIndex(0) --- >>> const internalConst = 10; 1 >^^^^ @@ -583,28 +583,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /*@internal*/ export + > /*@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(26, 5) Source(27, 26) + SourceIndex(0) -2 >Emitted(26, 11) Source(27, 32) + SourceIndex(0) -3 >Emitted(26, 24) Source(27, 45) + SourceIndex(0) -4 >Emitted(26, 29) Source(27, 50) + SourceIndex(0) -5 >Emitted(26, 30) Source(27, 51) + SourceIndex(0) +1 >Emitted(26, 5) Source(27, 30) + SourceIndex(0) +2 >Emitted(26, 11) Source(27, 36) + SourceIndex(0) +3 >Emitted(26, 24) Source(27, 49) + SourceIndex(0) +4 >Emitted(26, 29) Source(27, 54) + SourceIndex(0) +5 >Emitted(26, 30) Source(27, 55) + SourceIndex(0) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(27, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 31) + SourceIndex(0) -3 >Emitted(27, 22) Source(28, 43) + SourceIndex(0) +1 >Emitted(27, 5) Source(28, 23) + SourceIndex(0) +2 >Emitted(27, 10) Source(28, 35) + SourceIndex(0) +3 >Emitted(27, 22) Source(28, 47) + SourceIndex(0) --- >>> a = 0, 1 >^^^^^^^^ @@ -614,9 +614,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(28, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 47) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 47) + SourceIndex(0) +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) --- >>> b = 1, 1->^^^^^^^^ @@ -626,9 +626,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(29, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 50) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 50) + SourceIndex(0) +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) --- >>> c = 2 1->^^^^^^^^ @@ -637,39 +637,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(30, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(30, 10) Source(28, 53) + SourceIndex(0) -3 >Emitted(30, 14) Source(28, 53) + SourceIndex(0) +1->Emitted(30, 9) Source(28, 56) + SourceIndex(0) +2 >Emitted(30, 10) Source(28, 57) + SourceIndex(0) +3 >Emitted(30, 14) Source(28, 57) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(31, 6) Source(28, 55) + SourceIndex(0) +1 >Emitted(31, 6) Source(28, 59) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(32, 2) Source(29, 2) + SourceIndex(0) + > } +1 >Emitted(32, 2) Source(29, 6) + SourceIndex(0) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >class 3 > internalC -1->Emitted(33, 1) Source(30, 15) + SourceIndex(0) -2 >Emitted(33, 15) Source(30, 21) + SourceIndex(0) -3 >Emitted(33, 24) Source(30, 30) + SourceIndex(0) +1->Emitted(33, 1) Source(30, 19) + SourceIndex(0) +2 >Emitted(33, 15) Source(30, 25) + SourceIndex(0) +3 >Emitted(33, 24) Source(30, 34) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(34, 2) Source(30, 33) + SourceIndex(0) +1 >Emitted(34, 2) Source(30, 37) + SourceIndex(0) --- >>>declare function internalfoo(): void; 1-> @@ -678,14 +678,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/*@internal*/ + > /*@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(35, 1) Source(31, 15) + SourceIndex(0) -2 >Emitted(35, 18) Source(31, 24) + SourceIndex(0) -3 >Emitted(35, 29) Source(31, 35) + SourceIndex(0) -4 >Emitted(35, 38) Source(31, 40) + SourceIndex(0) +1->Emitted(35, 1) Source(31, 19) + SourceIndex(0) +2 >Emitted(35, 18) Source(31, 28) + SourceIndex(0) +3 >Emitted(35, 29) Source(31, 39) + SourceIndex(0) +4 >Emitted(35, 38) Source(31, 44) + SourceIndex(0) --- >>>declare namespace internalNamespace { 1-> @@ -693,14 +693,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(36, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(36, 19) Source(32, 25) + SourceIndex(0) -3 >Emitted(36, 36) Source(32, 42) + SourceIndex(0) -4 >Emitted(36, 37) Source(32, 43) + SourceIndex(0) +1->Emitted(36, 1) Source(32, 19) + SourceIndex(0) +2 >Emitted(36, 19) Source(32, 29) + SourceIndex(0) +3 >Emitted(36, 36) Source(32, 46) + SourceIndex(0) +4 >Emitted(36, 37) Source(32, 47) + SourceIndex(0) --- >>> class someClass { 1 >^^^^ @@ -709,20 +709,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(37, 5) Source(32, 45) + SourceIndex(0) -2 >Emitted(37, 11) Source(32, 58) + SourceIndex(0) -3 >Emitted(37, 20) Source(32, 67) + SourceIndex(0) +1 >Emitted(37, 5) Source(32, 49) + SourceIndex(0) +2 >Emitted(37, 11) Source(32, 62) + SourceIndex(0) +3 >Emitted(37, 20) Source(32, 71) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(38, 6) Source(32, 70) + SourceIndex(0) +1 >Emitted(38, 6) Source(32, 74) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(39, 2) Source(32, 72) + SourceIndex(0) +1 >Emitted(39, 2) Source(32, 76) + SourceIndex(0) --- >>>declare namespace internalOther.something { 1-> @@ -732,18 +732,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(40, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(40, 19) Source(33, 25) + SourceIndex(0) -3 >Emitted(40, 32) Source(33, 38) + SourceIndex(0) -4 >Emitted(40, 33) Source(33, 39) + SourceIndex(0) -5 >Emitted(40, 42) Source(33, 48) + SourceIndex(0) -6 >Emitted(40, 43) Source(33, 49) + SourceIndex(0) +1->Emitted(40, 1) Source(33, 19) + SourceIndex(0) +2 >Emitted(40, 19) Source(33, 29) + SourceIndex(0) +3 >Emitted(40, 32) Source(33, 42) + SourceIndex(0) +4 >Emitted(40, 33) Source(33, 43) + SourceIndex(0) +5 >Emitted(40, 42) Source(33, 52) + SourceIndex(0) +6 >Emitted(40, 43) Source(33, 53) + SourceIndex(0) --- >>> class someClass { 1 >^^^^ @@ -752,20 +752,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(41, 5) Source(33, 51) + SourceIndex(0) -2 >Emitted(41, 11) Source(33, 64) + SourceIndex(0) -3 >Emitted(41, 20) Source(33, 73) + SourceIndex(0) +1 >Emitted(41, 5) Source(33, 55) + SourceIndex(0) +2 >Emitted(41, 11) Source(33, 68) + SourceIndex(0) +3 >Emitted(41, 20) Source(33, 77) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(42, 6) Source(33, 76) + SourceIndex(0) +1 >Emitted(42, 6) Source(33, 80) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(43, 2) Source(33, 78) + SourceIndex(0) +1 >Emitted(43, 2) Source(33, 82) + SourceIndex(0) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -777,7 +777,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -785,14 +785,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(44, 1) Source(34, 15) + SourceIndex(0) -2 >Emitted(44, 8) Source(34, 22) + SourceIndex(0) -3 >Emitted(44, 22) Source(34, 36) + SourceIndex(0) -4 >Emitted(44, 25) Source(34, 39) + SourceIndex(0) -5 >Emitted(44, 42) Source(34, 56) + SourceIndex(0) -6 >Emitted(44, 43) Source(34, 57) + SourceIndex(0) -7 >Emitted(44, 52) Source(34, 66) + SourceIndex(0) -8 >Emitted(44, 53) Source(34, 67) + SourceIndex(0) +1->Emitted(44, 1) Source(34, 19) + SourceIndex(0) +2 >Emitted(44, 8) Source(34, 26) + SourceIndex(0) +3 >Emitted(44, 22) Source(34, 40) + SourceIndex(0) +4 >Emitted(44, 25) Source(34, 43) + SourceIndex(0) +5 >Emitted(44, 42) Source(34, 60) + SourceIndex(0) +6 >Emitted(44, 43) Source(34, 61) + SourceIndex(0) +7 >Emitted(44, 52) Source(34, 70) + SourceIndex(0) +8 >Emitted(44, 53) Source(34, 71) + SourceIndex(0) --- >>>declare type internalType = internalC; 1 > @@ -802,18 +802,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(45, 1) Source(35, 15) + SourceIndex(0) -2 >Emitted(45, 14) Source(35, 20) + SourceIndex(0) -3 >Emitted(45, 26) Source(35, 32) + SourceIndex(0) -4 >Emitted(45, 29) Source(35, 35) + SourceIndex(0) -5 >Emitted(45, 38) Source(35, 44) + SourceIndex(0) -6 >Emitted(45, 39) Source(35, 45) + SourceIndex(0) +1 >Emitted(45, 1) Source(35, 19) + SourceIndex(0) +2 >Emitted(45, 14) Source(35, 24) + SourceIndex(0) +3 >Emitted(45, 26) Source(35, 36) + SourceIndex(0) +4 >Emitted(45, 29) Source(35, 39) + SourceIndex(0) +5 >Emitted(45, 38) Source(35, 48) + SourceIndex(0) +6 >Emitted(45, 39) Source(35, 49) + SourceIndex(0) --- >>>declare const internalConst = 10; 1 > @@ -823,30 +823,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(46, 1) Source(36, 15) + SourceIndex(0) -2 >Emitted(46, 9) Source(36, 15) + SourceIndex(0) -3 >Emitted(46, 15) Source(36, 21) + SourceIndex(0) -4 >Emitted(46, 28) Source(36, 34) + SourceIndex(0) -5 >Emitted(46, 33) Source(36, 39) + SourceIndex(0) -6 >Emitted(46, 34) Source(36, 40) + SourceIndex(0) +1 >Emitted(46, 1) Source(36, 19) + SourceIndex(0) +2 >Emitted(46, 9) Source(36, 19) + SourceIndex(0) +3 >Emitted(46, 15) Source(36, 25) + SourceIndex(0) +4 >Emitted(46, 28) Source(36, 38) + SourceIndex(0) +5 >Emitted(46, 33) Source(36, 43) + SourceIndex(0) +6 >Emitted(46, 34) Source(36, 44) + SourceIndex(0) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(47, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(47, 14) Source(37, 20) + SourceIndex(0) -3 >Emitted(47, 26) Source(37, 32) + SourceIndex(0) +1 >Emitted(47, 1) Source(37, 19) + SourceIndex(0) +2 >Emitted(47, 14) Source(37, 24) + SourceIndex(0) +3 >Emitted(47, 26) Source(37, 36) + SourceIndex(0) --- >>> a = 0, 1 >^^^^ @@ -856,9 +856,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(48, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 36) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 36) + SourceIndex(0) +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) --- >>> b = 1, 1->^^^^ @@ -868,9 +868,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(49, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 39) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 39) + SourceIndex(0) +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) --- >>> c = 2 1->^^^^ @@ -879,15 +879,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(50, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(50, 6) Source(37, 42) + SourceIndex(0) -3 >Emitted(50, 10) Source(37, 42) + SourceIndex(0) +1->Emitted(50, 5) Source(37, 45) + SourceIndex(0) +2 >Emitted(50, 6) Source(37, 46) + SourceIndex(0) +3 >Emitted(50, 10) Source(37, 46) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(37, 44) + SourceIndex(0) +1 >Emitted(51, 2) Source(37, 48) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1031,7 +1031,7 @@ var C = /** @class */ (function () { //# 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -1184,20 +1184,20 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) + > +1->Emitted(8, 1) Source(13, 5) + 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->Emitted(9, 5) Source(14, 9) + SourceIndex(0) +2 >Emitted(9, 18) Source(14, 22) + SourceIndex(0) +3 >Emitted(9, 19) Source(14, 23) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -1205,8 +1205,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(10, 5) Source(14, 35) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 36) + SourceIndex(0) +1 >Emitted(10, 5) Source(14, 39) + SourceIndex(0) +2 >Emitted(10, 6) Source(14, 40) + SourceIndex(0) --- >>> /*@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -1217,21 +1217,21 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /*@internal*/ prop: string; - > + > /*@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) +1->Emitted(11, 5) Source(16, 9) + SourceIndex(0) +2 >Emitted(11, 18) Source(16, 22) + SourceIndex(0) +3 >Emitted(11, 19) Source(16, 23) + SourceIndex(0) +4 >Emitted(11, 43) Source(16, 29) + SourceIndex(0) +5 >Emitted(11, 46) Source(16, 23) + SourceIndex(0) +6 >Emitted(11, 60) Source(16, 34) + SourceIndex(0) +7 >Emitted(11, 61) Source(16, 35) + SourceIndex(0) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -1239,12 +1239,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(12, 5) Source(17, 23) + SourceIndex(0) +2 >Emitted(12, 27) Source(17, 27) + SourceIndex(0) +3 >Emitted(12, 49) Source(17, 28) + SourceIndex(0) --- >>> /*@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -1265,15 +1265,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(13, 9) Source(17, 9) + SourceIndex(0) +2 >Emitted(13, 22) Source(17, 22) + SourceIndex(0) +3 >Emitted(13, 28) Source(17, 23) + SourceIndex(0) +4 >Emitted(13, 42) Source(17, 33) + SourceIndex(0) +5 >Emitted(13, 49) Source(17, 40) + SourceIndex(0) +6 >Emitted(13, 51) Source(17, 42) + SourceIndex(0) +7 >Emitted(13, 52) Source(17, 43) + SourceIndex(0) +8 >Emitted(13, 53) Source(17, 44) + SourceIndex(0) +9 >Emitted(13, 54) Source(17, 45) + SourceIndex(0) --- >>> /*@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -1284,20 +1284,20 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(14, 9) Source(18, 9) + SourceIndex(0) +2 >Emitted(14, 22) Source(18, 22) + SourceIndex(0) +3 >Emitted(14, 28) Source(18, 23) + SourceIndex(0) +4 >Emitted(14, 38) Source(18, 29) + SourceIndex(0) +5 >Emitted(14, 41) Source(18, 40) + SourceIndex(0) +6 >Emitted(14, 45) Source(18, 44) + SourceIndex(0) +7 >Emitted(14, 46) Source(18, 45) + SourceIndex(0) --- >>> enumerable: false, >>> configurable: true @@ -1305,17 +1305,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(17, 8) Source(17, 41) + SourceIndex(0) +1 >Emitted(17, 8) Source(17, 45) + SourceIndex(0) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(18, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(18, 19) Source(19, 6) + SourceIndex(0) --- >>>}()); 1 > @@ -1327,16 +1327,16 @@ sourceFile:../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(19, 1) Source(19, 5) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 6) + SourceIndex(0) +3 >Emitted(19, 2) Source(13, 5) + SourceIndex(0) +4 >Emitted(19, 6) Source(19, 6) + SourceIndex(0) --- >>>var normalN; 1-> @@ -1345,23 +1345,23 @@ sourceFile:../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 15) + SourceIndex(0) +3 >Emitted(20, 12) Source(20, 22) + SourceIndex(0) +4 >Emitted(20, 13) Source(29, 6) + SourceIndex(0) --- >>>(function (normalN) { 1-> @@ -1371,9 +1371,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(21, 1) Source(20, 5) + SourceIndex(0) +2 >Emitted(21, 12) Source(20, 15) + SourceIndex(0) +3 >Emitted(21, 19) Source(20, 22) + SourceIndex(0) --- >>> /*@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -1381,18 +1381,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(22, 5) Source(21, 9) + SourceIndex(0) +2 >Emitted(22, 18) Source(21, 22) + SourceIndex(0) +3 >Emitted(22, 19) Source(21, 23) + SourceIndex(0) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(23, 9) Source(21, 19) + SourceIndex(0) +1->Emitted(23, 9) Source(21, 23) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -1400,16 +1400,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(24, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 37) + SourceIndex(0) +1->Emitted(24, 9) Source(21, 40) + SourceIndex(0) +2 >Emitted(24, 10) Source(21, 41) + 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->Emitted(25, 9) Source(21, 40) + SourceIndex(0) +2 >Emitted(25, 17) Source(21, 41) + SourceIndex(0) --- >>> }()); 1 >^^^^ @@ -1421,10 +1421,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(26, 5) Source(21, 40) + SourceIndex(0) +2 >Emitted(26, 6) Source(21, 41) + SourceIndex(0) +3 >Emitted(26, 6) Source(21, 23) + SourceIndex(0) +4 >Emitted(26, 10) Source(21, 41) + SourceIndex(0) --- >>> normalN.C = C; 1->^^^^ @@ -1436,10 +1436,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 5) Source(21, 36) + SourceIndex(0) +2 >Emitted(27, 14) Source(21, 37) + SourceIndex(0) +3 >Emitted(27, 18) Source(21, 41) + SourceIndex(0) +4 >Emitted(27, 19) Source(21, 41) + SourceIndex(0) --- >>> /*@internal*/ function foo() { } 1->^^^^ @@ -1450,20 +1450,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(28, 5) Source(22, 9) + SourceIndex(0) +2 >Emitted(28, 18) Source(22, 22) + SourceIndex(0) +3 >Emitted(28, 19) Source(22, 23) + SourceIndex(0) +4 >Emitted(28, 28) Source(22, 39) + SourceIndex(0) +5 >Emitted(28, 31) Source(22, 42) + SourceIndex(0) +6 >Emitted(28, 36) Source(22, 46) + SourceIndex(0) +7 >Emitted(28, 37) Source(22, 47) + SourceIndex(0) --- >>> normalN.foo = foo; 1 >^^^^ @@ -1475,10 +1475,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(29, 5) Source(22, 39) + SourceIndex(0) +2 >Emitted(29, 16) Source(22, 42) + SourceIndex(0) +3 >Emitted(29, 22) Source(22, 47) + SourceIndex(0) +4 >Emitted(29, 23) Source(22, 47) + SourceIndex(0) --- >>> /*@internal*/ var someNamespace; 1->^^^^ @@ -1488,18 +1488,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(30, 5) Source(23, 9) + SourceIndex(0) +2 >Emitted(30, 18) Source(23, 22) + SourceIndex(0) +3 >Emitted(30, 19) Source(23, 23) + SourceIndex(0) +4 >Emitted(30, 23) Source(23, 40) + SourceIndex(0) +5 >Emitted(30, 36) Source(23, 53) + SourceIndex(0) +6 >Emitted(30, 37) Source(23, 75) + SourceIndex(0) --- >>> (function (someNamespace) { 1 >^^^^ @@ -1509,21 +1509,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(31, 5) Source(23, 23) + SourceIndex(0) +2 >Emitted(31, 16) Source(23, 40) + SourceIndex(0) +3 >Emitted(31, 29) Source(23, 53) + SourceIndex(0) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(32, 9) Source(23, 52) + SourceIndex(0) +1->Emitted(32, 9) Source(23, 56) + SourceIndex(0) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(33, 13) Source(23, 52) + SourceIndex(0) +1->Emitted(33, 13) Source(23, 56) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -1531,16 +1531,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(34, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 69) + SourceIndex(0) +1->Emitted(34, 13) Source(23, 72) + SourceIndex(0) +2 >Emitted(34, 14) Source(23, 73) + 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->Emitted(35, 13) Source(23, 72) + SourceIndex(0) +2 >Emitted(35, 21) Source(23, 73) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -1552,10 +1552,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(36, 9) Source(23, 72) + SourceIndex(0) +2 >Emitted(36, 10) Source(23, 73) + SourceIndex(0) +3 >Emitted(36, 10) Source(23, 56) + SourceIndex(0) +4 >Emitted(36, 14) Source(23, 73) + SourceIndex(0) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1567,10 +1567,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(37, 9) Source(23, 69) + SourceIndex(0) +2 >Emitted(37, 24) Source(23, 70) + SourceIndex(0) +3 >Emitted(37, 28) Source(23, 73) + SourceIndex(0) +4 >Emitted(37, 29) Source(23, 73) + SourceIndex(0) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1591,15 +1591,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 74) + SourceIndex(0) +2 >Emitted(38, 6) Source(23, 75) + SourceIndex(0) +3 >Emitted(38, 8) Source(23, 40) + SourceIndex(0) +4 >Emitted(38, 21) Source(23, 53) + SourceIndex(0) +5 >Emitted(38, 24) Source(23, 40) + SourceIndex(0) +6 >Emitted(38, 45) Source(23, 53) + SourceIndex(0) +7 >Emitted(38, 50) Source(23, 40) + SourceIndex(0) +8 >Emitted(38, 71) Source(23, 53) + SourceIndex(0) +9 >Emitted(38, 79) Source(23, 75) + SourceIndex(0) --- >>> /*@internal*/ var someOther; 1 >^^^^ @@ -1609,18 +1609,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(39, 5) Source(24, 9) + SourceIndex(0) +2 >Emitted(39, 18) Source(24, 22) + SourceIndex(0) +3 >Emitted(39, 19) Source(24, 23) + SourceIndex(0) +4 >Emitted(39, 23) Source(24, 40) + SourceIndex(0) +5 >Emitted(39, 32) Source(24, 49) + SourceIndex(0) +6 >Emitted(39, 33) Source(24, 89) + SourceIndex(0) --- >>> (function (someOther) { 1 >^^^^ @@ -1629,9 +1629,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(40, 5) Source(24, 23) + SourceIndex(0) +2 >Emitted(40, 16) Source(24, 40) + SourceIndex(0) +3 >Emitted(40, 25) Source(24, 49) + SourceIndex(0) --- >>> var something; 1 >^^^^^^^^ @@ -1643,10 +1643,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(41, 9) Source(24, 50) + SourceIndex(0) +2 >Emitted(41, 13) Source(24, 50) + SourceIndex(0) +3 >Emitted(41, 22) Source(24, 59) + SourceIndex(0) +4 >Emitted(41, 23) Source(24, 89) + SourceIndex(0) --- >>> (function (something) { 1->^^^^^^^^ @@ -1656,21 +1656,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(42, 9) Source(24, 50) + SourceIndex(0) +2 >Emitted(42, 20) Source(24, 50) + SourceIndex(0) +3 >Emitted(42, 29) Source(24, 59) + SourceIndex(0) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(43, 13) Source(24, 58) + SourceIndex(0) +1->Emitted(43, 13) Source(24, 62) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(44, 17) Source(24, 58) + SourceIndex(0) +1->Emitted(44, 17) Source(24, 62) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1678,16 +1678,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(45, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 83) + SourceIndex(0) +1->Emitted(45, 17) Source(24, 86) + SourceIndex(0) +2 >Emitted(45, 18) Source(24, 87) + 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->Emitted(46, 17) Source(24, 86) + SourceIndex(0) +2 >Emitted(46, 33) Source(24, 87) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1699,10 +1699,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 13) Source(24, 86) + SourceIndex(0) +2 >Emitted(47, 14) Source(24, 87) + SourceIndex(0) +3 >Emitted(47, 14) Source(24, 62) + SourceIndex(0) +4 >Emitted(47, 18) Source(24, 87) + SourceIndex(0) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1714,10 +1714,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(48, 13) Source(24, 75) + SourceIndex(0) +2 >Emitted(48, 32) Source(24, 84) + SourceIndex(0) +3 >Emitted(48, 44) Source(24, 87) + SourceIndex(0) +4 >Emitted(48, 45) Source(24, 87) + SourceIndex(0) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1738,15 +1738,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 88) + SourceIndex(0) +2 >Emitted(49, 10) Source(24, 89) + SourceIndex(0) +3 >Emitted(49, 12) Source(24, 50) + SourceIndex(0) +4 >Emitted(49, 21) Source(24, 59) + SourceIndex(0) +5 >Emitted(49, 24) Source(24, 50) + SourceIndex(0) +6 >Emitted(49, 43) Source(24, 59) + SourceIndex(0) +7 >Emitted(49, 48) Source(24, 50) + SourceIndex(0) +8 >Emitted(49, 67) Source(24, 59) + SourceIndex(0) +9 >Emitted(49, 75) Source(24, 89) + SourceIndex(0) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1767,15 +1767,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(50, 5) Source(24, 88) + SourceIndex(0) +2 >Emitted(50, 6) Source(24, 89) + SourceIndex(0) +3 >Emitted(50, 8) Source(24, 40) + SourceIndex(0) +4 >Emitted(50, 17) Source(24, 49) + SourceIndex(0) +5 >Emitted(50, 20) Source(24, 40) + SourceIndex(0) +6 >Emitted(50, 37) Source(24, 49) + SourceIndex(0) +7 >Emitted(50, 42) Source(24, 40) + SourceIndex(0) +8 >Emitted(50, 59) Source(24, 49) + SourceIndex(0) +9 >Emitted(50, 67) Source(24, 89) + SourceIndex(0) --- >>> /*@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1788,7 +1788,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /*@internal*/ 3 > export import 4 > someImport @@ -1797,15 +1797,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(51, 5) Source(25, 9) + SourceIndex(0) +2 >Emitted(51, 18) Source(25, 22) + SourceIndex(0) +3 >Emitted(51, 19) Source(25, 37) + SourceIndex(0) +4 >Emitted(51, 37) Source(25, 47) + SourceIndex(0) +5 >Emitted(51, 40) Source(25, 50) + SourceIndex(0) +6 >Emitted(51, 53) Source(25, 63) + SourceIndex(0) +7 >Emitted(51, 54) Source(25, 64) + SourceIndex(0) +8 >Emitted(51, 55) Source(25, 65) + SourceIndex(0) +9 >Emitted(51, 56) Source(25, 66) + SourceIndex(0) --- >>> /*@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -1816,21 +1816,21 @@ sourceFile:../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > + > /*@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) +1 >Emitted(52, 5) Source(27, 9) + SourceIndex(0) +2 >Emitted(52, 18) Source(27, 22) + SourceIndex(0) +3 >Emitted(52, 19) Source(27, 36) + SourceIndex(0) +4 >Emitted(52, 40) Source(27, 49) + SourceIndex(0) +5 >Emitted(52, 43) Source(27, 52) + SourceIndex(0) +6 >Emitted(52, 45) Source(27, 54) + SourceIndex(0) +7 >Emitted(52, 46) Source(27, 55) + SourceIndex(0) --- >>> /*@internal*/ var internalEnum; 1 >^^^^ @@ -1839,16 +1839,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(53, 5) Source(28, 9) + SourceIndex(0) +2 >Emitted(53, 18) Source(28, 22) + SourceIndex(0) +3 >Emitted(53, 19) Source(28, 23) + SourceIndex(0) +4 >Emitted(53, 23) Source(28, 35) + SourceIndex(0) +5 >Emitted(53, 35) Source(28, 59) + SourceIndex(0) --- >>> (function (internalEnum) { 1 >^^^^ @@ -1858,9 +1858,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(54, 5) Source(28, 23) + SourceIndex(0) +2 >Emitted(54, 16) Source(28, 35) + SourceIndex(0) +3 >Emitted(54, 28) Source(28, 47) + SourceIndex(0) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1870,9 +1870,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 9) Source(28, 50) + SourceIndex(0) +2 >Emitted(55, 50) Source(28, 51) + SourceIndex(0) +3 >Emitted(55, 51) Source(28, 51) + SourceIndex(0) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1882,9 +1882,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(56, 9) Source(28, 53) + SourceIndex(0) +2 >Emitted(56, 50) Source(28, 54) + SourceIndex(0) +3 >Emitted(56, 51) Source(28, 54) + SourceIndex(0) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1894,9 +1894,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(57, 9) Source(28, 56) + SourceIndex(0) +2 >Emitted(57, 50) Source(28, 57) + SourceIndex(0) +3 >Emitted(57, 51) Source(28, 57) + SourceIndex(0) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1917,15 +1917,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(58, 5) Source(28, 58) + SourceIndex(0) +2 >Emitted(58, 6) Source(28, 59) + SourceIndex(0) +3 >Emitted(58, 8) Source(28, 35) + SourceIndex(0) +4 >Emitted(58, 20) Source(28, 47) + SourceIndex(0) +5 >Emitted(58, 23) Source(28, 35) + SourceIndex(0) +6 >Emitted(58, 43) Source(28, 47) + SourceIndex(0) +7 >Emitted(58, 48) Source(28, 35) + SourceIndex(0) +8 >Emitted(58, 68) Source(28, 47) + SourceIndex(0) +9 >Emitted(58, 76) Source(28, 59) + SourceIndex(0) --- >>>})(normalN || (normalN = {})); 1 > @@ -1937,29 +1937,29 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(0) +2 >Emitted(59, 2) Source(29, 6) + SourceIndex(0) +3 >Emitted(59, 4) Source(20, 15) + SourceIndex(0) +4 >Emitted(59, 11) Source(20, 22) + SourceIndex(0) +5 >Emitted(59, 16) Source(20, 15) + SourceIndex(0) +6 >Emitted(59, 23) Source(20, 22) + SourceIndex(0) +7 >Emitted(59, 31) Source(29, 6) + SourceIndex(0) --- >>>/*@internal*/ var internalC = /** @class */ (function () { 1-> @@ -1967,18 +1967,18 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(60, 1) Source(30, 5) + SourceIndex(0) +2 >Emitted(60, 14) Source(30, 18) + SourceIndex(0) +3 >Emitted(60, 15) Source(30, 19) + SourceIndex(0) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(61, 5) Source(30, 15) + SourceIndex(0) +1->Emitted(61, 5) Source(30, 19) + SourceIndex(0) --- >>> } 1->^^^^ @@ -1986,16 +1986,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(62, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 33) + SourceIndex(0) +1->Emitted(62, 5) Source(30, 36) + SourceIndex(0) +2 >Emitted(62, 6) Source(30, 37) + 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->Emitted(63, 5) Source(30, 36) + SourceIndex(0) +2 >Emitted(63, 21) Source(30, 37) + SourceIndex(0) --- >>>}()); 1 > @@ -2007,10 +2007,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(64, 1) Source(30, 36) + SourceIndex(0) +2 >Emitted(64, 2) Source(30, 37) + SourceIndex(0) +3 >Emitted(64, 2) Source(30, 19) + SourceIndex(0) +4 >Emitted(64, 6) Source(30, 37) + SourceIndex(0) --- >>>/*@internal*/ function internalfoo() { } 1-> @@ -2021,20 +2021,20 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(65, 1) Source(31, 5) + SourceIndex(0) +2 >Emitted(65, 14) Source(31, 18) + SourceIndex(0) +3 >Emitted(65, 15) Source(31, 19) + SourceIndex(0) +4 >Emitted(65, 24) Source(31, 28) + SourceIndex(0) +5 >Emitted(65, 35) Source(31, 39) + SourceIndex(0) +6 >Emitted(65, 40) Source(31, 43) + SourceIndex(0) +7 >Emitted(65, 41) Source(31, 44) + SourceIndex(0) --- >>>/*@internal*/ var internalNamespace; 1 > @@ -2044,18 +2044,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(66, 1) Source(32, 5) + SourceIndex(0) +2 >Emitted(66, 14) Source(32, 18) + SourceIndex(0) +3 >Emitted(66, 15) Source(32, 19) + SourceIndex(0) +4 >Emitted(66, 19) Source(32, 29) + SourceIndex(0) +5 >Emitted(66, 36) Source(32, 46) + SourceIndex(0) +6 >Emitted(66, 37) Source(32, 76) + SourceIndex(0) --- >>>(function (internalNamespace) { 1 > @@ -2065,21 +2065,21 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(67, 1) Source(32, 19) + SourceIndex(0) +2 >Emitted(67, 12) Source(32, 29) + SourceIndex(0) +3 >Emitted(67, 29) Source(32, 46) + SourceIndex(0) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(68, 5) Source(32, 45) + SourceIndex(0) +1->Emitted(68, 5) Source(32, 49) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(69, 9) Source(32, 45) + SourceIndex(0) +1->Emitted(69, 9) Source(32, 49) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -2087,16 +2087,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(70, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 70) + SourceIndex(0) +1->Emitted(70, 9) Source(32, 73) + SourceIndex(0) +2 >Emitted(70, 10) Source(32, 74) + 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->Emitted(71, 9) Source(32, 73) + SourceIndex(0) +2 >Emitted(71, 25) Source(32, 74) + SourceIndex(0) --- >>> }()); 1 >^^^^ @@ -2108,10 +2108,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(72, 5) Source(32, 73) + SourceIndex(0) +2 >Emitted(72, 6) Source(32, 74) + SourceIndex(0) +3 >Emitted(72, 6) Source(32, 49) + SourceIndex(0) +4 >Emitted(72, 10) Source(32, 74) + SourceIndex(0) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -2123,10 +2123,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(73, 5) Source(32, 62) + SourceIndex(0) +2 >Emitted(73, 32) Source(32, 71) + SourceIndex(0) +3 >Emitted(73, 44) Source(32, 74) + SourceIndex(0) +4 >Emitted(73, 45) Source(32, 74) + SourceIndex(0) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -2143,13 +2143,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 75) + SourceIndex(0) +2 >Emitted(74, 2) Source(32, 76) + SourceIndex(0) +3 >Emitted(74, 4) Source(32, 29) + SourceIndex(0) +4 >Emitted(74, 21) Source(32, 46) + SourceIndex(0) +5 >Emitted(74, 26) Source(32, 29) + SourceIndex(0) +6 >Emitted(74, 43) Source(32, 46) + SourceIndex(0) +7 >Emitted(74, 51) Source(32, 76) + SourceIndex(0) --- >>>/*@internal*/ var internalOther; 1 > @@ -2159,18 +2159,18 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(75, 1) Source(33, 5) + SourceIndex(0) +2 >Emitted(75, 14) Source(33, 18) + SourceIndex(0) +3 >Emitted(75, 15) Source(33, 19) + SourceIndex(0) +4 >Emitted(75, 19) Source(33, 29) + SourceIndex(0) +5 >Emitted(75, 32) Source(33, 42) + SourceIndex(0) +6 >Emitted(75, 33) Source(33, 82) + SourceIndex(0) --- >>>(function (internalOther) { 1 > @@ -2179,9 +2179,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(76, 1) Source(33, 19) + SourceIndex(0) +2 >Emitted(76, 12) Source(33, 29) + SourceIndex(0) +3 >Emitted(76, 25) Source(33, 42) + SourceIndex(0) --- >>> var something; 1 >^^^^ @@ -2193,10 +2193,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(77, 5) Source(33, 43) + SourceIndex(0) +2 >Emitted(77, 9) Source(33, 43) + SourceIndex(0) +3 >Emitted(77, 18) Source(33, 52) + SourceIndex(0) +4 >Emitted(77, 19) Source(33, 82) + SourceIndex(0) --- >>> (function (something) { 1->^^^^ @@ -2206,21 +2206,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(78, 5) Source(33, 43) + SourceIndex(0) +2 >Emitted(78, 16) Source(33, 43) + SourceIndex(0) +3 >Emitted(78, 25) Source(33, 52) + SourceIndex(0) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(79, 9) Source(33, 51) + SourceIndex(0) +1->Emitted(79, 9) Source(33, 55) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(80, 13) Source(33, 51) + SourceIndex(0) +1->Emitted(80, 13) Source(33, 55) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -2228,16 +2228,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(81, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 76) + SourceIndex(0) +1->Emitted(81, 13) Source(33, 79) + SourceIndex(0) +2 >Emitted(81, 14) Source(33, 80) + 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->Emitted(82, 13) Source(33, 79) + SourceIndex(0) +2 >Emitted(82, 29) Source(33, 80) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -2249,10 +2249,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 9) Source(33, 79) + SourceIndex(0) +2 >Emitted(83, 10) Source(33, 80) + SourceIndex(0) +3 >Emitted(83, 10) Source(33, 55) + SourceIndex(0) +4 >Emitted(83, 14) Source(33, 80) + SourceIndex(0) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2264,10 +2264,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(84, 9) Source(33, 68) + SourceIndex(0) +2 >Emitted(84, 28) Source(33, 77) + SourceIndex(0) +3 >Emitted(84, 40) Source(33, 80) + SourceIndex(0) +4 >Emitted(84, 41) Source(33, 80) + SourceIndex(0) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2288,15 +2288,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 81) + SourceIndex(0) +2 >Emitted(85, 6) Source(33, 82) + SourceIndex(0) +3 >Emitted(85, 8) Source(33, 43) + SourceIndex(0) +4 >Emitted(85, 17) Source(33, 52) + SourceIndex(0) +5 >Emitted(85, 20) Source(33, 43) + SourceIndex(0) +6 >Emitted(85, 43) Source(33, 52) + SourceIndex(0) +7 >Emitted(85, 48) Source(33, 43) + SourceIndex(0) +8 >Emitted(85, 71) Source(33, 52) + SourceIndex(0) +9 >Emitted(85, 79) Source(33, 82) + SourceIndex(0) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2314,13 +2314,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(86, 1) Source(33, 81) + SourceIndex(0) +2 >Emitted(86, 2) Source(33, 82) + SourceIndex(0) +3 >Emitted(86, 4) Source(33, 29) + SourceIndex(0) +4 >Emitted(86, 17) Source(33, 42) + SourceIndex(0) +5 >Emitted(86, 22) Source(33, 29) + SourceIndex(0) +6 >Emitted(86, 35) Source(33, 42) + SourceIndex(0) +7 >Emitted(86, 43) Source(33, 82) + SourceIndex(0) --- >>>/*@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -2334,7 +2334,7 @@ sourceFile:../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/*@internal*/ 3 > 4 > import @@ -2344,16 +2344,16 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(87, 1) Source(34, 5) + SourceIndex(0) +2 >Emitted(87, 14) Source(34, 18) + SourceIndex(0) +3 >Emitted(87, 15) Source(34, 19) + SourceIndex(0) +4 >Emitted(87, 19) Source(34, 26) + SourceIndex(0) +5 >Emitted(87, 33) Source(34, 40) + SourceIndex(0) +6 >Emitted(87, 36) Source(34, 43) + SourceIndex(0) +7 >Emitted(87, 53) Source(34, 60) + SourceIndex(0) +8 >Emitted(87, 54) Source(34, 61) + SourceIndex(0) +9 >Emitted(87, 63) Source(34, 70) + SourceIndex(0) +10>Emitted(87, 64) Source(34, 71) + SourceIndex(0) --- >>>/*@internal*/ var internalConst = 10; 1 > @@ -2365,8 +2365,8 @@ sourceFile:../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/*@internal*/ type internalType = internalC; - > + > /*@internal*/ type internalType = internalC; + > 2 >/*@internal*/ 3 > 4 > const @@ -2374,14 +2374,14 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(88, 1) Source(36, 5) + SourceIndex(0) +2 >Emitted(88, 14) Source(36, 18) + SourceIndex(0) +3 >Emitted(88, 15) Source(36, 19) + SourceIndex(0) +4 >Emitted(88, 19) Source(36, 25) + SourceIndex(0) +5 >Emitted(88, 32) Source(36, 38) + SourceIndex(0) +6 >Emitted(88, 35) Source(36, 41) + SourceIndex(0) +7 >Emitted(88, 37) Source(36, 43) + SourceIndex(0) +8 >Emitted(88, 38) Source(36, 44) + SourceIndex(0) --- >>>/*@internal*/ var internalEnum; 1 > @@ -2390,16 +2390,16 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(89, 1) Source(37, 5) + SourceIndex(0) +2 >Emitted(89, 14) Source(37, 18) + SourceIndex(0) +3 >Emitted(89, 15) Source(37, 19) + SourceIndex(0) +4 >Emitted(89, 19) Source(37, 24) + SourceIndex(0) +5 >Emitted(89, 31) Source(37, 48) + SourceIndex(0) --- >>>(function (internalEnum) { 1 > @@ -2409,9 +2409,9 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(90, 1) Source(37, 19) + SourceIndex(0) +2 >Emitted(90, 12) Source(37, 24) + SourceIndex(0) +3 >Emitted(90, 24) Source(37, 36) + SourceIndex(0) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2421,9 +2421,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 5) Source(37, 39) + SourceIndex(0) +2 >Emitted(91, 46) Source(37, 40) + SourceIndex(0) +3 >Emitted(91, 47) Source(37, 40) + SourceIndex(0) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2433,9 +2433,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(92, 5) Source(37, 42) + SourceIndex(0) +2 >Emitted(92, 46) Source(37, 43) + SourceIndex(0) +3 >Emitted(92, 47) Source(37, 43) + SourceIndex(0) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2444,9 +2444,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(93, 5) Source(37, 45) + SourceIndex(0) +2 >Emitted(93, 46) Source(37, 46) + SourceIndex(0) +3 >Emitted(93, 47) Source(37, 46) + SourceIndex(0) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2463,13 +2463,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(37, 47) + SourceIndex(0) +2 >Emitted(94, 2) Source(37, 48) + SourceIndex(0) +3 >Emitted(94, 4) Source(37, 24) + SourceIndex(0) +4 >Emitted(94, 16) Source(37, 36) + SourceIndex(0) +5 >Emitted(94, 21) Source(37, 24) + SourceIndex(0) +6 >Emitted(94, 33) Source(37, 36) + SourceIndex(0) +7 >Emitted(94, 41) Source(37, 48) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -3211,7 +3211,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -3366,24 +3366,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3391,29 +3391,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3590,7 +3590,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -3878,20 +3878,20 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + 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->Emitted(15, 5) Source(14, 9) + SourceIndex(3) +2 >Emitted(15, 18) Source(14, 22) + SourceIndex(3) +3 >Emitted(15, 19) Source(14, 23) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -3899,8 +3899,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >constructor() { 2 > } -1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +1 >Emitted(16, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 40) + SourceIndex(3) --- >>> /*@internal*/ normalC.prototype.method = function () { }; 1->^^^^ @@ -3911,21 +3911,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^^^^^^^^^^^^^ 7 > ^ 1-> - > /*@internal*/ prop: string; - > + > /*@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) +1->Emitted(17, 5) Source(16, 9) + SourceIndex(3) +2 >Emitted(17, 18) Source(16, 22) + SourceIndex(3) +3 >Emitted(17, 19) Source(16, 23) + SourceIndex(3) +4 >Emitted(17, 43) Source(16, 29) + SourceIndex(3) +5 >Emitted(17, 46) Source(16, 23) + SourceIndex(3) +6 >Emitted(17, 60) Source(16, 34) + SourceIndex(3) +7 >Emitted(17, 61) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1 >^^^^ @@ -3933,12 +3933,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^ 4 > ^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(18, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 28) + SourceIndex(3) --- >>> /*@internal*/ get: function () { return 10; }, 1->^^^^^^^^ @@ -3959,15 +3959,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(19, 9) Source(17, 9) + SourceIndex(3) +2 >Emitted(19, 22) Source(17, 22) + SourceIndex(3) +3 >Emitted(19, 28) Source(17, 23) + SourceIndex(3) +4 >Emitted(19, 42) Source(17, 33) + SourceIndex(3) +5 >Emitted(19, 49) Source(17, 40) + SourceIndex(3) +6 >Emitted(19, 51) Source(17, 42) + SourceIndex(3) +7 >Emitted(19, 52) Source(17, 43) + SourceIndex(3) +8 >Emitted(19, 53) Source(17, 44) + SourceIndex(3) +9 >Emitted(19, 54) Source(17, 45) + SourceIndex(3) --- >>> /*@internal*/ set: function (val) { }, 1 >^^^^^^^^ @@ -3978,20 +3978,20 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(20, 9) Source(18, 9) + SourceIndex(3) +2 >Emitted(20, 22) Source(18, 22) + SourceIndex(3) +3 >Emitted(20, 28) Source(18, 23) + SourceIndex(3) +4 >Emitted(20, 38) Source(18, 29) + SourceIndex(3) +5 >Emitted(20, 41) Source(18, 40) + SourceIndex(3) +6 >Emitted(20, 45) Source(18, 44) + SourceIndex(3) +7 >Emitted(20, 46) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -3999,17 +3999,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -4021,16 +4021,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -4039,23 +4039,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -4065,9 +4065,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> /*@internal*/ var C = /** @class */ (function () { 1->^^^^ @@ -4075,18 +4075,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(28, 5) Source(21, 9) + SourceIndex(3) +2 >Emitted(28, 18) Source(21, 22) + SourceIndex(3) +3 >Emitted(28, 19) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4094,16 +4094,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 41) + 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->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4115,10 +4115,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -4130,10 +4130,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 41) + SourceIndex(3) --- >>> /*@internal*/ function foo() { } 1->^^^^ @@ -4144,20 +4144,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(34, 5) Source(22, 9) + SourceIndex(3) +2 >Emitted(34, 18) Source(22, 22) + SourceIndex(3) +3 >Emitted(34, 19) Source(22, 23) + SourceIndex(3) +4 >Emitted(34, 28) Source(22, 39) + SourceIndex(3) +5 >Emitted(34, 31) Source(22, 42) + SourceIndex(3) +6 >Emitted(34, 36) Source(22, 46) + SourceIndex(3) +7 >Emitted(34, 37) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1 >^^^^ @@ -4169,10 +4169,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(35, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> /*@internal*/ var someNamespace; 1->^^^^ @@ -4182,18 +4182,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(36, 5) Source(23, 9) + SourceIndex(3) +2 >Emitted(36, 18) Source(23, 22) + SourceIndex(3) +3 >Emitted(36, 19) Source(23, 23) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 40) + SourceIndex(3) +5 >Emitted(36, 36) Source(23, 53) + SourceIndex(3) +6 >Emitted(36, 37) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1 >^^^^ @@ -4203,21 +4203,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4225,16 +4225,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 73) + 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->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4246,10 +4246,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -4261,10 +4261,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -4285,15 +4285,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 75) + SourceIndex(3) --- >>> /*@internal*/ var someOther; 1 >^^^^ @@ -4303,18 +4303,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(45, 5) Source(24, 9) + SourceIndex(3) +2 >Emitted(45, 18) Source(24, 22) + SourceIndex(3) +3 >Emitted(45, 19) Source(24, 23) + SourceIndex(3) +4 >Emitted(45, 23) Source(24, 40) + SourceIndex(3) +5 >Emitted(45, 32) Source(24, 49) + SourceIndex(3) +6 >Emitted(45, 33) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1 >^^^^ @@ -4323,9 +4323,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -4337,10 +4337,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -4350,21 +4350,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -4372,16 +4372,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 87) + 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->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -4393,10 +4393,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -4408,10 +4408,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -4432,15 +4432,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -4461,15 +4461,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 89) + SourceIndex(3) --- >>> /*@internal*/ normalN.someImport = someNamespace.C; 1 >^^^^ @@ -4482,7 +4482,7 @@ sourceFile:../../../second/second_part1.ts 8 > ^ 9 > ^ 1 > - > + > 2 > /*@internal*/ 3 > export import 4 > someImport @@ -4491,15 +4491,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(57, 5) Source(25, 9) + SourceIndex(3) +2 >Emitted(57, 18) Source(25, 22) + SourceIndex(3) +3 >Emitted(57, 19) Source(25, 37) + SourceIndex(3) +4 >Emitted(57, 37) Source(25, 47) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 50) + SourceIndex(3) +6 >Emitted(57, 53) Source(25, 63) + SourceIndex(3) +7 >Emitted(57, 54) Source(25, 64) + SourceIndex(3) +8 >Emitted(57, 55) Source(25, 65) + SourceIndex(3) +9 >Emitted(57, 56) Source(25, 66) + SourceIndex(3) --- >>> /*@internal*/ normalN.internalConst = 10; 1 >^^^^ @@ -4510,21 +4510,21 @@ sourceFile:../../../second/second_part1.ts 6 > ^^ 7 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > + > /*@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) +1 >Emitted(58, 5) Source(27, 9) + SourceIndex(3) +2 >Emitted(58, 18) Source(27, 22) + SourceIndex(3) +3 >Emitted(58, 19) Source(27, 36) + SourceIndex(3) +4 >Emitted(58, 40) Source(27, 49) + SourceIndex(3) +5 >Emitted(58, 43) Source(27, 52) + SourceIndex(3) +6 >Emitted(58, 45) Source(27, 54) + SourceIndex(3) +7 >Emitted(58, 46) Source(27, 55) + SourceIndex(3) --- >>> /*@internal*/ var internalEnum; 1 >^^^^ @@ -4533,16 +4533,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(59, 5) Source(28, 9) + SourceIndex(3) +2 >Emitted(59, 18) Source(28, 22) + SourceIndex(3) +3 >Emitted(59, 19) Source(28, 23) + SourceIndex(3) +4 >Emitted(59, 23) Source(28, 35) + SourceIndex(3) +5 >Emitted(59, 35) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1 >^^^^ @@ -4552,9 +4552,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -4564,9 +4564,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 51) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -4576,9 +4576,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 54) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -4588,9 +4588,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -4611,15 +4611,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -4631,29 +4631,29 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>/*@internal*/ var internalC = /** @class */ (function () { 1-> @@ -4661,18 +4661,18 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(66, 1) Source(30, 5) + SourceIndex(3) +2 >Emitted(66, 14) Source(30, 18) + SourceIndex(3) +3 >Emitted(66, 15) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4680,16 +4680,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 37) + 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->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -4701,10 +4701,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 37) + SourceIndex(3) --- >>>/*@internal*/ function internalfoo() { } 1-> @@ -4715,20 +4715,20 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(71, 1) Source(31, 5) + SourceIndex(3) +2 >Emitted(71, 14) Source(31, 18) + SourceIndex(3) +3 >Emitted(71, 15) Source(31, 19) + SourceIndex(3) +4 >Emitted(71, 24) Source(31, 28) + SourceIndex(3) +5 >Emitted(71, 35) Source(31, 39) + SourceIndex(3) +6 >Emitted(71, 40) Source(31, 43) + SourceIndex(3) +7 >Emitted(71, 41) Source(31, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalNamespace; 1 > @@ -4738,18 +4738,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(72, 1) Source(32, 5) + SourceIndex(3) +2 >Emitted(72, 14) Source(32, 18) + SourceIndex(3) +3 >Emitted(72, 15) Source(32, 19) + SourceIndex(3) +4 >Emitted(72, 19) Source(32, 29) + SourceIndex(3) +5 >Emitted(72, 36) Source(32, 46) + SourceIndex(3) +6 >Emitted(72, 37) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1 > @@ -4759,21 +4759,21 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4781,16 +4781,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 74) + 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->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4802,10 +4802,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -4817,10 +4817,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -4837,13 +4837,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 76) + SourceIndex(3) --- >>>/*@internal*/ var internalOther; 1 > @@ -4853,18 +4853,18 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(81, 1) Source(33, 5) + SourceIndex(3) +2 >Emitted(81, 14) Source(33, 18) + SourceIndex(3) +3 >Emitted(81, 15) Source(33, 19) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 29) + SourceIndex(3) +5 >Emitted(81, 32) Source(33, 42) + SourceIndex(3) +6 >Emitted(81, 33) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1 > @@ -4873,9 +4873,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -4887,10 +4887,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -4900,21 +4900,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = /** @class */ (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4922,16 +4922,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 80) + 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->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4943,10 +4943,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -4958,10 +4958,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -4982,15 +4982,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -5008,13 +5008,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 82) + SourceIndex(3) --- >>>/*@internal*/ var internalImport = internalNamespace.someClass; 1-> @@ -5028,7 +5028,7 @@ sourceFile:../../../second/second_part1.ts 9 > ^^^^^^^^^ 10> ^ 1-> - > + > 2 >/*@internal*/ 3 > 4 > import @@ -5038,16 +5038,16 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 5) + SourceIndex(3) +2 >Emitted(93, 14) Source(34, 18) + SourceIndex(3) +3 >Emitted(93, 15) Source(34, 19) + SourceIndex(3) +4 >Emitted(93, 19) Source(34, 26) + SourceIndex(3) +5 >Emitted(93, 33) Source(34, 40) + SourceIndex(3) +6 >Emitted(93, 36) Source(34, 43) + SourceIndex(3) +7 >Emitted(93, 53) Source(34, 60) + SourceIndex(3) +8 >Emitted(93, 54) Source(34, 61) + SourceIndex(3) +9 >Emitted(93, 63) Source(34, 70) + SourceIndex(3) +10>Emitted(93, 64) Source(34, 71) + SourceIndex(3) --- >>>/*@internal*/ var internalConst = 10; 1 > @@ -5059,8 +5059,8 @@ sourceFile:../../../second/second_part1.ts 7 > ^^ 8 > ^ 1 > - >/*@internal*/ type internalType = internalC; - > + > /*@internal*/ type internalType = internalC; + > 2 >/*@internal*/ 3 > 4 > const @@ -5068,14 +5068,14 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(36, 5) + SourceIndex(3) +2 >Emitted(94, 14) Source(36, 18) + SourceIndex(3) +3 >Emitted(94, 15) Source(36, 19) + SourceIndex(3) +4 >Emitted(94, 19) Source(36, 25) + SourceIndex(3) +5 >Emitted(94, 32) Source(36, 38) + SourceIndex(3) +6 >Emitted(94, 35) Source(36, 41) + SourceIndex(3) +7 >Emitted(94, 37) Source(36, 43) + SourceIndex(3) +8 >Emitted(94, 38) Source(36, 44) + SourceIndex(3) --- >>>/*@internal*/ var internalEnum; 1 > @@ -5084,16 +5084,16 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(95, 1) Source(37, 5) + SourceIndex(3) +2 >Emitted(95, 14) Source(37, 18) + SourceIndex(3) +3 >Emitted(95, 15) Source(37, 19) + SourceIndex(3) +4 >Emitted(95, 19) Source(37, 24) + SourceIndex(3) +5 >Emitted(95, 31) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1 > @@ -5103,9 +5103,9 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -5115,9 +5115,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 40) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -5127,9 +5127,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 43) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -5138,9 +5138,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -5157,13 +5157,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js 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 e9b253dd41bf5..51b3df3871b1b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js @@ -72,31 +72,31 @@ namespace N { 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 } + 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/second_part2.ts] class C { @@ -255,7 +255,7 @@ declare class C { //# 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;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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"} +{"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;AAEG,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;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;ACpC/C,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -324,12 +324,12 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(5, 1) Source(13, 5) + SourceIndex(0) +2 >Emitted(5, 15) Source(13, 11) + SourceIndex(0) +3 >Emitted(5, 22) Source(13, 18) + SourceIndex(0) --- >>> constructor(); >>> prop: string; @@ -340,27 +340,27 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^-> 1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ + > /*@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) +1 >Emitted(7, 5) Source(15, 23) + SourceIndex(0) +2 >Emitted(7, 9) Source(15, 27) + SourceIndex(0) +3 >Emitted(7, 11) Source(15, 29) + SourceIndex(0) +4 >Emitted(7, 17) Source(15, 35) + SourceIndex(0) +5 >Emitted(7, 18) Source(15, 36) + SourceIndex(0) --- >>> method(): void; 1->^^^^ 2 > ^^^^^^ 3 > ^^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > method -1->Emitted(8, 5) Source(16, 19) + SourceIndex(0) -2 >Emitted(8, 11) Source(16, 25) + SourceIndex(0) +1->Emitted(8, 5) Source(16, 23) + SourceIndex(0) +2 >Emitted(8, 11) Source(16, 29) + SourceIndex(0) --- >>> get c(): number; 1->^^^^ @@ -371,19 +371,19 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^^^^-> 1->() { } - > /*@internal*/ + > /*@internal*/ 2 > get 3 > c 4 > () { return 10; } - > /*@internal*/ set c(val: + > /*@internal*/ set c(val: 5 > number 6 > -1->Emitted(9, 5) Source(17, 19) + SourceIndex(0) -2 >Emitted(9, 9) Source(17, 23) + SourceIndex(0) -3 >Emitted(9, 10) Source(17, 24) + SourceIndex(0) -4 >Emitted(9, 14) Source(18, 30) + SourceIndex(0) -5 >Emitted(9, 20) Source(18, 36) + SourceIndex(0) -6 >Emitted(9, 21) Source(17, 41) + SourceIndex(0) +1->Emitted(9, 5) Source(17, 23) + SourceIndex(0) +2 >Emitted(9, 9) Source(17, 27) + SourceIndex(0) +3 >Emitted(9, 10) Source(17, 28) + SourceIndex(0) +4 >Emitted(9, 14) Source(18, 34) + SourceIndex(0) +5 >Emitted(9, 20) Source(18, 40) + SourceIndex(0) +6 >Emitted(9, 21) Source(17, 45) + SourceIndex(0) --- >>> set c(val: number); 1->^^^^ @@ -394,27 +394,27 @@ sourceFile:../second/second_part1.ts 6 > ^^^^^^ 7 > ^^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > set 3 > c 4 > ( 5 > val: 6 > number 7 > ) { } -1->Emitted(10, 5) Source(18, 19) + SourceIndex(0) -2 >Emitted(10, 9) Source(18, 23) + SourceIndex(0) -3 >Emitted(10, 10) Source(18, 24) + SourceIndex(0) -4 >Emitted(10, 11) Source(18, 25) + SourceIndex(0) -5 >Emitted(10, 16) Source(18, 30) + SourceIndex(0) -6 >Emitted(10, 22) Source(18, 36) + SourceIndex(0) -7 >Emitted(10, 24) Source(18, 41) + SourceIndex(0) +1->Emitted(10, 5) Source(18, 23) + SourceIndex(0) +2 >Emitted(10, 9) Source(18, 27) + SourceIndex(0) +3 >Emitted(10, 10) Source(18, 28) + SourceIndex(0) +4 >Emitted(10, 11) Source(18, 29) + SourceIndex(0) +5 >Emitted(10, 16) Source(18, 34) + SourceIndex(0) +6 >Emitted(10, 22) Source(18, 40) + SourceIndex(0) +7 >Emitted(10, 24) Source(18, 45) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(0) --- >>>declare namespace normalN { 1-> @@ -422,32 +422,32 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^ 4 > ^ 1-> - > + > 2 >namespace 3 > normalN 4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(0) +1->Emitted(12, 1) Source(20, 5) + SourceIndex(0) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(0) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(0) +4 >Emitted(12, 27) Source(20, 23) + SourceIndex(0) --- >>> class C { 1 >^^^^ 2 > ^^^^^^ 3 > ^ 1 >{ - > /*@internal*/ + > /*@internal*/ 2 > export class 3 > C -1 >Emitted(13, 5) Source(21, 19) + SourceIndex(0) -2 >Emitted(13, 11) Source(21, 32) + SourceIndex(0) -3 >Emitted(13, 12) Source(21, 33) + SourceIndex(0) +1 >Emitted(13, 5) Source(21, 23) + SourceIndex(0) +2 >Emitted(13, 11) Source(21, 36) + SourceIndex(0) +3 >Emitted(13, 12) Source(21, 37) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(14, 6) Source(21, 37) + SourceIndex(0) +1 >Emitted(14, 6) Source(21, 41) + SourceIndex(0) --- >>> function foo(): void; 1->^^^^ @@ -456,14 +456,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^^^^^-> 1-> - > /*@internal*/ + > /*@internal*/ 2 > export function 3 > foo 4 > () {} -1->Emitted(15, 5) Source(22, 19) + SourceIndex(0) -2 >Emitted(15, 14) Source(22, 35) + SourceIndex(0) -3 >Emitted(15, 17) Source(22, 38) + SourceIndex(0) -4 >Emitted(15, 26) Source(22, 43) + SourceIndex(0) +1->Emitted(15, 5) Source(22, 23) + SourceIndex(0) +2 >Emitted(15, 14) Source(22, 39) + SourceIndex(0) +3 >Emitted(15, 17) Source(22, 42) + SourceIndex(0) +4 >Emitted(15, 26) Source(22, 47) + SourceIndex(0) --- >>> namespace someNamespace { 1->^^^^ @@ -471,14 +471,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^ 4 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someNamespace 4 > -1->Emitted(16, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 36) + SourceIndex(0) -3 >Emitted(16, 28) Source(23, 49) + SourceIndex(0) -4 >Emitted(16, 29) Source(23, 50) + SourceIndex(0) +1->Emitted(16, 5) Source(23, 23) + SourceIndex(0) +2 >Emitted(16, 15) Source(23, 40) + SourceIndex(0) +3 >Emitted(16, 28) Source(23, 53) + SourceIndex(0) +4 >Emitted(16, 29) Source(23, 54) + SourceIndex(0) --- >>> class C { 1 >^^^^^^^^ @@ -487,20 +487,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > C -1 >Emitted(17, 9) Source(23, 52) + SourceIndex(0) -2 >Emitted(17, 15) Source(23, 65) + SourceIndex(0) -3 >Emitted(17, 16) Source(23, 66) + SourceIndex(0) +1 >Emitted(17, 9) Source(23, 56) + SourceIndex(0) +2 >Emitted(17, 15) Source(23, 69) + SourceIndex(0) +3 >Emitted(17, 16) Source(23, 70) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(18, 10) Source(23, 69) + SourceIndex(0) +1 >Emitted(18, 10) Source(23, 73) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(19, 6) Source(23, 71) + SourceIndex(0) +1 >Emitted(19, 6) Source(23, 75) + SourceIndex(0) --- >>> namespace someOther.something { 1->^^^^ @@ -510,18 +510,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export namespace 3 > someOther 4 > . 5 > something 6 > -1->Emitted(20, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 36) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 45) + SourceIndex(0) -4 >Emitted(20, 25) Source(24, 46) + SourceIndex(0) -5 >Emitted(20, 34) Source(24, 55) + SourceIndex(0) -6 >Emitted(20, 35) Source(24, 56) + SourceIndex(0) +1->Emitted(20, 5) Source(24, 23) + SourceIndex(0) +2 >Emitted(20, 15) Source(24, 40) + SourceIndex(0) +3 >Emitted(20, 24) Source(24, 49) + SourceIndex(0) +4 >Emitted(20, 25) Source(24, 50) + SourceIndex(0) +5 >Emitted(20, 34) Source(24, 59) + SourceIndex(0) +6 >Emitted(20, 35) Source(24, 60) + SourceIndex(0) --- >>> class someClass { 1 >^^^^^^^^ @@ -530,20 +530,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(21, 9) Source(24, 58) + SourceIndex(0) -2 >Emitted(21, 15) Source(24, 71) + SourceIndex(0) -3 >Emitted(21, 24) Source(24, 80) + SourceIndex(0) +1 >Emitted(21, 9) Source(24, 62) + SourceIndex(0) +2 >Emitted(21, 15) Source(24, 75) + SourceIndex(0) +3 >Emitted(21, 24) Source(24, 84) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 1 > {} -1 >Emitted(22, 10) Source(24, 83) + SourceIndex(0) +1 >Emitted(22, 10) Source(24, 87) + SourceIndex(0) --- >>> } 1 >^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(23, 6) Source(24, 85) + SourceIndex(0) +1 >Emitted(23, 6) Source(24, 89) + SourceIndex(0) --- >>> export import someImport = someNamespace.C; 1->^^^^ @@ -556,7 +556,7 @@ sourceFile:../second/second_part1.ts 8 > ^ 9 > ^ 1-> - > /*@internal*/ + > /*@internal*/ 2 > export 3 > import 4 > someImport @@ -565,15 +565,15 @@ sourceFile:../second/second_part1.ts 7 > . 8 > C 9 > ; -1->Emitted(24, 5) Source(25, 19) + SourceIndex(0) -2 >Emitted(24, 11) Source(25, 25) + SourceIndex(0) -3 >Emitted(24, 19) Source(25, 33) + SourceIndex(0) -4 >Emitted(24, 29) Source(25, 43) + SourceIndex(0) -5 >Emitted(24, 32) Source(25, 46) + SourceIndex(0) -6 >Emitted(24, 45) Source(25, 59) + SourceIndex(0) -7 >Emitted(24, 46) Source(25, 60) + SourceIndex(0) -8 >Emitted(24, 47) Source(25, 61) + SourceIndex(0) -9 >Emitted(24, 48) Source(25, 62) + SourceIndex(0) +1->Emitted(24, 5) Source(25, 23) + SourceIndex(0) +2 >Emitted(24, 11) Source(25, 29) + SourceIndex(0) +3 >Emitted(24, 19) Source(25, 37) + SourceIndex(0) +4 >Emitted(24, 29) Source(25, 47) + SourceIndex(0) +5 >Emitted(24, 32) Source(25, 50) + SourceIndex(0) +6 >Emitted(24, 45) Source(25, 63) + SourceIndex(0) +7 >Emitted(24, 46) Source(25, 64) + SourceIndex(0) +8 >Emitted(24, 47) Source(25, 65) + SourceIndex(0) +9 >Emitted(24, 48) Source(25, 66) + SourceIndex(0) --- >>> type internalType = internalC; 1 >^^^^ @@ -583,18 +583,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(25, 5) Source(26, 19) + SourceIndex(0) -2 >Emitted(25, 10) Source(26, 31) + SourceIndex(0) -3 >Emitted(25, 22) Source(26, 43) + SourceIndex(0) -4 >Emitted(25, 25) Source(26, 46) + SourceIndex(0) -5 >Emitted(25, 34) Source(26, 55) + SourceIndex(0) -6 >Emitted(25, 35) Source(26, 56) + SourceIndex(0) +1 >Emitted(25, 5) Source(26, 23) + SourceIndex(0) +2 >Emitted(25, 10) Source(26, 35) + SourceIndex(0) +3 >Emitted(25, 22) Source(26, 47) + SourceIndex(0) +4 >Emitted(25, 25) Source(26, 50) + SourceIndex(0) +5 >Emitted(25, 34) Source(26, 59) + SourceIndex(0) +6 >Emitted(25, 35) Source(26, 60) + SourceIndex(0) --- >>> const internalConst = 10; 1 >^^^^ @@ -603,28 +603,28 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1 > - > /*@internal*/ export + > /*@internal*/ export 2 > const 3 > internalConst 4 > = 10 5 > ; -1 >Emitted(26, 5) Source(27, 26) + SourceIndex(0) -2 >Emitted(26, 11) Source(27, 32) + SourceIndex(0) -3 >Emitted(26, 24) Source(27, 45) + SourceIndex(0) -4 >Emitted(26, 29) Source(27, 50) + SourceIndex(0) -5 >Emitted(26, 30) Source(27, 51) + SourceIndex(0) +1 >Emitted(26, 5) Source(27, 30) + SourceIndex(0) +2 >Emitted(26, 11) Source(27, 36) + SourceIndex(0) +3 >Emitted(26, 24) Source(27, 49) + SourceIndex(0) +4 >Emitted(26, 29) Source(27, 54) + SourceIndex(0) +5 >Emitted(26, 30) Source(27, 55) + SourceIndex(0) --- >>> enum internalEnum { 1 >^^^^ 2 > ^^^^^ 3 > ^^^^^^^^^^^^ 1 > - > /*@internal*/ + > /*@internal*/ 2 > export enum 3 > internalEnum -1 >Emitted(27, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 31) + SourceIndex(0) -3 >Emitted(27, 22) Source(28, 43) + SourceIndex(0) +1 >Emitted(27, 5) Source(28, 23) + SourceIndex(0) +2 >Emitted(27, 10) Source(28, 35) + SourceIndex(0) +3 >Emitted(27, 22) Source(28, 47) + SourceIndex(0) --- >>> a = 0, 1 >^^^^^^^^ @@ -634,9 +634,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(28, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 47) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 47) + SourceIndex(0) +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) --- >>> b = 1, 1->^^^^^^^^ @@ -646,9 +646,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(29, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 50) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 50) + SourceIndex(0) +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) --- >>> c = 2 1->^^^^^^^^ @@ -657,39 +657,39 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(30, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(30, 10) Source(28, 53) + SourceIndex(0) -3 >Emitted(30, 14) Source(28, 53) + SourceIndex(0) +1->Emitted(30, 9) Source(28, 56) + SourceIndex(0) +2 >Emitted(30, 10) Source(28, 57) + SourceIndex(0) +3 >Emitted(30, 14) Source(28, 57) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > } -1 >Emitted(31, 6) Source(28, 55) + SourceIndex(0) +1 >Emitted(31, 6) Source(28, 59) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > - >} -1 >Emitted(32, 2) Source(29, 2) + SourceIndex(0) + > } +1 >Emitted(32, 2) Source(29, 6) + SourceIndex(0) --- >>>declare class internalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^^^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >class 3 > internalC -1->Emitted(33, 1) Source(30, 15) + SourceIndex(0) -2 >Emitted(33, 15) Source(30, 21) + SourceIndex(0) -3 >Emitted(33, 24) Source(30, 30) + SourceIndex(0) +1->Emitted(33, 1) Source(30, 19) + SourceIndex(0) +2 >Emitted(33, 15) Source(30, 25) + SourceIndex(0) +3 >Emitted(33, 24) Source(30, 34) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > {} -1 >Emitted(34, 2) Source(30, 33) + SourceIndex(0) +1 >Emitted(34, 2) Source(30, 37) + SourceIndex(0) --- >>>declare function internalfoo(): void; 1-> @@ -698,14 +698,14 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^^^^^ 5 > ^-> 1-> - >/*@internal*/ + > /*@internal*/ 2 >function 3 > internalfoo 4 > () {} -1->Emitted(35, 1) Source(31, 15) + SourceIndex(0) -2 >Emitted(35, 18) Source(31, 24) + SourceIndex(0) -3 >Emitted(35, 29) Source(31, 35) + SourceIndex(0) -4 >Emitted(35, 38) Source(31, 40) + SourceIndex(0) +1->Emitted(35, 1) Source(31, 19) + SourceIndex(0) +2 >Emitted(35, 18) Source(31, 28) + SourceIndex(0) +3 >Emitted(35, 29) Source(31, 39) + SourceIndex(0) +4 >Emitted(35, 38) Source(31, 44) + SourceIndex(0) --- >>>declare namespace internalNamespace { 1-> @@ -713,14 +713,14 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^ 4 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalNamespace 4 > -1->Emitted(36, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(36, 19) Source(32, 25) + SourceIndex(0) -3 >Emitted(36, 36) Source(32, 42) + SourceIndex(0) -4 >Emitted(36, 37) Source(32, 43) + SourceIndex(0) +1->Emitted(36, 1) Source(32, 19) + SourceIndex(0) +2 >Emitted(36, 19) Source(32, 29) + SourceIndex(0) +3 >Emitted(36, 36) Source(32, 46) + SourceIndex(0) +4 >Emitted(36, 37) Source(32, 47) + SourceIndex(0) --- >>> class someClass { 1 >^^^^ @@ -729,20 +729,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(37, 5) Source(32, 45) + SourceIndex(0) -2 >Emitted(37, 11) Source(32, 58) + SourceIndex(0) -3 >Emitted(37, 20) Source(32, 67) + SourceIndex(0) +1 >Emitted(37, 5) Source(32, 49) + SourceIndex(0) +2 >Emitted(37, 11) Source(32, 62) + SourceIndex(0) +3 >Emitted(37, 20) Source(32, 71) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(38, 6) Source(32, 70) + SourceIndex(0) +1 >Emitted(38, 6) Source(32, 74) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(39, 2) Source(32, 72) + SourceIndex(0) +1 >Emitted(39, 2) Source(32, 76) + SourceIndex(0) --- >>>declare namespace internalOther.something { 1-> @@ -752,18 +752,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >namespace 3 > internalOther 4 > . 5 > something 6 > -1->Emitted(40, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(40, 19) Source(33, 25) + SourceIndex(0) -3 >Emitted(40, 32) Source(33, 38) + SourceIndex(0) -4 >Emitted(40, 33) Source(33, 39) + SourceIndex(0) -5 >Emitted(40, 42) Source(33, 48) + SourceIndex(0) -6 >Emitted(40, 43) Source(33, 49) + SourceIndex(0) +1->Emitted(40, 1) Source(33, 19) + SourceIndex(0) +2 >Emitted(40, 19) Source(33, 29) + SourceIndex(0) +3 >Emitted(40, 32) Source(33, 42) + SourceIndex(0) +4 >Emitted(40, 33) Source(33, 43) + SourceIndex(0) +5 >Emitted(40, 42) Source(33, 52) + SourceIndex(0) +6 >Emitted(40, 43) Source(33, 53) + SourceIndex(0) --- >>> class someClass { 1 >^^^^ @@ -772,20 +772,20 @@ sourceFile:../second/second_part1.ts 1 >{ 2 > export class 3 > someClass -1 >Emitted(41, 5) Source(33, 51) + SourceIndex(0) -2 >Emitted(41, 11) Source(33, 64) + SourceIndex(0) -3 >Emitted(41, 20) Source(33, 73) + SourceIndex(0) +1 >Emitted(41, 5) Source(33, 55) + SourceIndex(0) +2 >Emitted(41, 11) Source(33, 68) + SourceIndex(0) +3 >Emitted(41, 20) Source(33, 77) + SourceIndex(0) --- >>> } 1 >^^^^^ 1 > {} -1 >Emitted(42, 6) Source(33, 76) + SourceIndex(0) +1 >Emitted(42, 6) Source(33, 80) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(43, 2) Source(33, 78) + SourceIndex(0) +1 >Emitted(43, 2) Source(33, 82) + SourceIndex(0) --- >>>import internalImport = internalNamespace.someClass; 1-> @@ -797,7 +797,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -805,14 +805,14 @@ sourceFile:../second/second_part1.ts 6 > . 7 > someClass 8 > ; -1->Emitted(44, 1) Source(34, 15) + SourceIndex(0) -2 >Emitted(44, 8) Source(34, 22) + SourceIndex(0) -3 >Emitted(44, 22) Source(34, 36) + SourceIndex(0) -4 >Emitted(44, 25) Source(34, 39) + SourceIndex(0) -5 >Emitted(44, 42) Source(34, 56) + SourceIndex(0) -6 >Emitted(44, 43) Source(34, 57) + SourceIndex(0) -7 >Emitted(44, 52) Source(34, 66) + SourceIndex(0) -8 >Emitted(44, 53) Source(34, 67) + SourceIndex(0) +1->Emitted(44, 1) Source(34, 19) + SourceIndex(0) +2 >Emitted(44, 8) Source(34, 26) + SourceIndex(0) +3 >Emitted(44, 22) Source(34, 40) + SourceIndex(0) +4 >Emitted(44, 25) Source(34, 43) + SourceIndex(0) +5 >Emitted(44, 42) Source(34, 60) + SourceIndex(0) +6 >Emitted(44, 43) Source(34, 61) + SourceIndex(0) +7 >Emitted(44, 52) Source(34, 70) + SourceIndex(0) +8 >Emitted(44, 53) Source(34, 71) + SourceIndex(0) --- >>>declare type internalType = internalC; 1 > @@ -822,18 +822,18 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >type 3 > internalType 4 > = 5 > internalC 6 > ; -1 >Emitted(45, 1) Source(35, 15) + SourceIndex(0) -2 >Emitted(45, 14) Source(35, 20) + SourceIndex(0) -3 >Emitted(45, 26) Source(35, 32) + SourceIndex(0) -4 >Emitted(45, 29) Source(35, 35) + SourceIndex(0) -5 >Emitted(45, 38) Source(35, 44) + SourceIndex(0) -6 >Emitted(45, 39) Source(35, 45) + SourceIndex(0) +1 >Emitted(45, 1) Source(35, 19) + SourceIndex(0) +2 >Emitted(45, 14) Source(35, 24) + SourceIndex(0) +3 >Emitted(45, 26) Source(35, 36) + SourceIndex(0) +4 >Emitted(45, 29) Source(35, 39) + SourceIndex(0) +5 >Emitted(45, 38) Source(35, 48) + SourceIndex(0) +6 >Emitted(45, 39) Source(35, 49) + SourceIndex(0) --- >>>declare const internalConst = 10; 1 > @@ -843,30 +843,30 @@ sourceFile:../second/second_part1.ts 5 > ^^^^^ 6 > ^ 1 > - >/*@internal*/ + > /*@internal*/ 2 > 3 > const 4 > internalConst 5 > = 10 6 > ; -1 >Emitted(46, 1) Source(36, 15) + SourceIndex(0) -2 >Emitted(46, 9) Source(36, 15) + SourceIndex(0) -3 >Emitted(46, 15) Source(36, 21) + SourceIndex(0) -4 >Emitted(46, 28) Source(36, 34) + SourceIndex(0) -5 >Emitted(46, 33) Source(36, 39) + SourceIndex(0) -6 >Emitted(46, 34) Source(36, 40) + SourceIndex(0) +1 >Emitted(46, 1) Source(36, 19) + SourceIndex(0) +2 >Emitted(46, 9) Source(36, 19) + SourceIndex(0) +3 >Emitted(46, 15) Source(36, 25) + SourceIndex(0) +4 >Emitted(46, 28) Source(36, 38) + SourceIndex(0) +5 >Emitted(46, 33) Source(36, 43) + SourceIndex(0) +6 >Emitted(46, 34) Source(36, 44) + SourceIndex(0) --- >>>declare enum internalEnum { 1 > 2 >^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^ 1 > - >/*@internal*/ + > /*@internal*/ 2 >enum 3 > internalEnum -1 >Emitted(47, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(47, 14) Source(37, 20) + SourceIndex(0) -3 >Emitted(47, 26) Source(37, 32) + SourceIndex(0) +1 >Emitted(47, 1) Source(37, 19) + SourceIndex(0) +2 >Emitted(47, 14) Source(37, 24) + SourceIndex(0) +3 >Emitted(47, 26) Source(37, 36) + SourceIndex(0) --- >>> a = 0, 1 >^^^^ @@ -876,9 +876,9 @@ sourceFile:../second/second_part1.ts 1 > { 2 > a 3 > -1 >Emitted(48, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 36) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 36) + SourceIndex(0) +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) --- >>> b = 1, 1->^^^^ @@ -888,9 +888,9 @@ sourceFile:../second/second_part1.ts 1->, 2 > b 3 > -1->Emitted(49, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 39) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 39) + SourceIndex(0) +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) --- >>> c = 2 1->^^^^ @@ -899,15 +899,15 @@ sourceFile:../second/second_part1.ts 1->, 2 > c 3 > -1->Emitted(50, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(50, 6) Source(37, 42) + SourceIndex(0) -3 >Emitted(50, 10) Source(37, 42) + SourceIndex(0) +1->Emitted(50, 5) Source(37, 45) + SourceIndex(0) +2 >Emitted(50, 6) Source(37, 46) + SourceIndex(0) +3 >Emitted(50, 10) Source(37, 46) + SourceIndex(0) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > } -1 >Emitted(51, 2) Source(37, 44) + SourceIndex(0) +1 >Emitted(51, 2) Source(37, 48) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts @@ -1051,7 +1051,7 @@ var C = (function () { //# 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -1204,15 +1204,15 @@ sourceFile:../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) + > +1->Emitted(8, 1) Source(13, 5) + SourceIndex(0) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(9, 5) Source(14, 19) + SourceIndex(0) + > /*@internal*/ +1->Emitted(9, 5) Source(14, 23) + SourceIndex(0) --- >>> } 1->^^^^ @@ -1220,8 +1220,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(10, 5) Source(14, 35) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 36) + SourceIndex(0) +1->Emitted(10, 5) Source(14, 39) + SourceIndex(0) +2 >Emitted(10, 6) Source(14, 40) + SourceIndex(0) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -1231,29 +1231,29 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(11, 5) Source(16, 23) + SourceIndex(0) +2 >Emitted(11, 29) Source(16, 29) + SourceIndex(0) +3 >Emitted(11, 32) Source(16, 23) + SourceIndex(0) +4 >Emitted(11, 46) Source(16, 34) + SourceIndex(0) +5 >Emitted(11, 47) Source(16, 35) + SourceIndex(0) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(12, 5) Source(17, 23) + SourceIndex(0) +2 >Emitted(12, 27) Source(17, 27) + SourceIndex(0) +3 >Emitted(12, 49) Source(17, 28) + SourceIndex(0) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -1270,13 +1270,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(13, 14) Source(17, 23) + SourceIndex(0) +2 >Emitted(13, 28) Source(17, 33) + SourceIndex(0) +3 >Emitted(13, 35) Source(17, 40) + SourceIndex(0) +4 >Emitted(13, 37) Source(17, 42) + SourceIndex(0) +5 >Emitted(13, 38) Source(17, 43) + SourceIndex(0) +6 >Emitted(13, 39) Source(17, 44) + SourceIndex(0) +7 >Emitted(13, 40) Source(17, 45) + SourceIndex(0) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -1285,16 +1285,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(14, 14) Source(18, 23) + SourceIndex(0) +2 >Emitted(14, 24) Source(18, 29) + SourceIndex(0) +3 >Emitted(14, 27) Source(18, 40) + SourceIndex(0) +4 >Emitted(14, 31) Source(18, 44) + SourceIndex(0) +5 >Emitted(14, 32) Source(18, 45) + SourceIndex(0) --- >>> enumerable: false, >>> configurable: true @@ -1302,17 +1302,17 @@ sourceFile:../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(17, 8) Source(17, 41) + SourceIndex(0) +1 >Emitted(17, 8) Source(17, 45) + SourceIndex(0) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(18, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(18, 19) Source(19, 6) + SourceIndex(0) --- >>>}()); 1 > @@ -1324,16 +1324,16 @@ sourceFile:../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(19, 1) Source(19, 5) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 6) + SourceIndex(0) +3 >Emitted(19, 2) Source(13, 5) + SourceIndex(0) +4 >Emitted(19, 6) Source(19, 6) + SourceIndex(0) --- >>>var normalN; 1-> @@ -1342,23 +1342,23 @@ sourceFile:../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 15) + SourceIndex(0) +3 >Emitted(20, 12) Source(20, 22) + SourceIndex(0) +4 >Emitted(20, 13) Source(29, 6) + SourceIndex(0) --- >>>(function (normalN) { 1-> @@ -1368,22 +1368,22 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(21, 1) Source(20, 5) + SourceIndex(0) +2 >Emitted(21, 12) Source(20, 15) + SourceIndex(0) +3 >Emitted(21, 19) Source(20, 22) + SourceIndex(0) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(22, 5) Source(21, 19) + SourceIndex(0) + > /*@internal*/ +1->Emitted(22, 5) Source(21, 23) + SourceIndex(0) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(23, 9) Source(21, 19) + SourceIndex(0) +1->Emitted(23, 9) Source(21, 23) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -1391,16 +1391,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(24, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 37) + SourceIndex(0) +1->Emitted(24, 9) Source(21, 40) + SourceIndex(0) +2 >Emitted(24, 10) Source(21, 41) + 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->Emitted(25, 9) Source(21, 40) + SourceIndex(0) +2 >Emitted(25, 17) Source(21, 41) + SourceIndex(0) --- >>> }()); 1 >^^^^ @@ -1412,10 +1412,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(26, 5) Source(21, 40) + SourceIndex(0) +2 >Emitted(26, 6) Source(21, 41) + SourceIndex(0) +3 >Emitted(26, 6) Source(21, 23) + SourceIndex(0) +4 >Emitted(26, 10) Source(21, 41) + SourceIndex(0) --- >>> normalN.C = C; 1->^^^^ @@ -1427,10 +1427,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 5) Source(21, 36) + SourceIndex(0) +2 >Emitted(27, 14) Source(21, 37) + SourceIndex(0) +3 >Emitted(27, 18) Source(21, 41) + SourceIndex(0) +4 >Emitted(27, 19) Source(21, 41) + SourceIndex(0) --- >>> function foo() { } 1->^^^^ @@ -1440,16 +1440,16 @@ sourceFile:../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(28, 5) Source(22, 23) + SourceIndex(0) +2 >Emitted(28, 14) Source(22, 39) + SourceIndex(0) +3 >Emitted(28, 17) Source(22, 42) + SourceIndex(0) +4 >Emitted(28, 22) Source(22, 46) + SourceIndex(0) +5 >Emitted(28, 23) Source(22, 47) + SourceIndex(0) --- >>> normalN.foo = foo; 1->^^^^ @@ -1461,10 +1461,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(29, 5) Source(22, 39) + SourceIndex(0) +2 >Emitted(29, 16) Source(22, 42) + SourceIndex(0) +3 >Emitted(29, 22) Source(22, 47) + SourceIndex(0) +4 >Emitted(29, 23) Source(22, 47) + SourceIndex(0) --- >>> var someNamespace; 1->^^^^ @@ -1473,14 +1473,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(30, 5) Source(23, 23) + SourceIndex(0) +2 >Emitted(30, 9) Source(23, 40) + SourceIndex(0) +3 >Emitted(30, 22) Source(23, 53) + SourceIndex(0) +4 >Emitted(30, 23) Source(23, 75) + SourceIndex(0) --- >>> (function (someNamespace) { 1->^^^^ @@ -1490,21 +1490,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(31, 5) Source(23, 23) + SourceIndex(0) +2 >Emitted(31, 16) Source(23, 40) + SourceIndex(0) +3 >Emitted(31, 29) Source(23, 53) + SourceIndex(0) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(32, 9) Source(23, 52) + SourceIndex(0) +1->Emitted(32, 9) Source(23, 56) + SourceIndex(0) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(33, 13) Source(23, 52) + SourceIndex(0) +1->Emitted(33, 13) Source(23, 56) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -1512,16 +1512,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(34, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 69) + SourceIndex(0) +1->Emitted(34, 13) Source(23, 72) + SourceIndex(0) +2 >Emitted(34, 14) Source(23, 73) + 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->Emitted(35, 13) Source(23, 72) + SourceIndex(0) +2 >Emitted(35, 21) Source(23, 73) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -1533,10 +1533,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(36, 9) Source(23, 72) + SourceIndex(0) +2 >Emitted(36, 10) Source(23, 73) + SourceIndex(0) +3 >Emitted(36, 10) Source(23, 56) + SourceIndex(0) +4 >Emitted(36, 14) Source(23, 73) + SourceIndex(0) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -1548,10 +1548,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(37, 9) Source(23, 69) + SourceIndex(0) +2 >Emitted(37, 24) Source(23, 70) + SourceIndex(0) +3 >Emitted(37, 28) Source(23, 73) + SourceIndex(0) +4 >Emitted(37, 29) Source(23, 73) + SourceIndex(0) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -1572,15 +1572,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(38, 5) Source(23, 74) + SourceIndex(0) +2 >Emitted(38, 6) Source(23, 75) + SourceIndex(0) +3 >Emitted(38, 8) Source(23, 40) + SourceIndex(0) +4 >Emitted(38, 21) Source(23, 53) + SourceIndex(0) +5 >Emitted(38, 24) Source(23, 40) + SourceIndex(0) +6 >Emitted(38, 45) Source(23, 53) + SourceIndex(0) +7 >Emitted(38, 50) Source(23, 40) + SourceIndex(0) +8 >Emitted(38, 71) Source(23, 53) + SourceIndex(0) +9 >Emitted(38, 79) Source(23, 75) + SourceIndex(0) --- >>> var someOther; 1 >^^^^ @@ -1589,14 +1589,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(39, 5) Source(24, 23) + SourceIndex(0) +2 >Emitted(39, 9) Source(24, 40) + SourceIndex(0) +3 >Emitted(39, 18) Source(24, 49) + SourceIndex(0) +4 >Emitted(39, 19) Source(24, 89) + SourceIndex(0) --- >>> (function (someOther) { 1->^^^^ @@ -1605,9 +1605,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(40, 5) Source(24, 23) + SourceIndex(0) +2 >Emitted(40, 16) Source(24, 40) + SourceIndex(0) +3 >Emitted(40, 25) Source(24, 49) + SourceIndex(0) --- >>> var something; 1 >^^^^^^^^ @@ -1619,10 +1619,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(41, 9) Source(24, 50) + SourceIndex(0) +2 >Emitted(41, 13) Source(24, 50) + SourceIndex(0) +3 >Emitted(41, 22) Source(24, 59) + SourceIndex(0) +4 >Emitted(41, 23) Source(24, 89) + SourceIndex(0) --- >>> (function (something) { 1->^^^^^^^^ @@ -1632,21 +1632,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(42, 9) Source(24, 50) + SourceIndex(0) +2 >Emitted(42, 20) Source(24, 50) + SourceIndex(0) +3 >Emitted(42, 29) Source(24, 59) + SourceIndex(0) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(43, 13) Source(24, 58) + SourceIndex(0) +1->Emitted(43, 13) Source(24, 62) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(44, 17) Source(24, 58) + SourceIndex(0) +1->Emitted(44, 17) Source(24, 62) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -1654,16 +1654,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(45, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 83) + SourceIndex(0) +1->Emitted(45, 17) Source(24, 86) + SourceIndex(0) +2 >Emitted(45, 18) Source(24, 87) + 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->Emitted(46, 17) Source(24, 86) + SourceIndex(0) +2 >Emitted(46, 33) Source(24, 87) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1675,10 +1675,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(47, 13) Source(24, 86) + SourceIndex(0) +2 >Emitted(47, 14) Source(24, 87) + SourceIndex(0) +3 >Emitted(47, 14) Source(24, 62) + SourceIndex(0) +4 >Emitted(47, 18) Source(24, 87) + SourceIndex(0) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -1690,10 +1690,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(48, 13) Source(24, 75) + SourceIndex(0) +2 >Emitted(48, 32) Source(24, 84) + SourceIndex(0) +3 >Emitted(48, 44) Source(24, 87) + SourceIndex(0) +4 >Emitted(48, 45) Source(24, 87) + SourceIndex(0) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -1714,15 +1714,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(49, 9) Source(24, 88) + SourceIndex(0) +2 >Emitted(49, 10) Source(24, 89) + SourceIndex(0) +3 >Emitted(49, 12) Source(24, 50) + SourceIndex(0) +4 >Emitted(49, 21) Source(24, 59) + SourceIndex(0) +5 >Emitted(49, 24) Source(24, 50) + SourceIndex(0) +6 >Emitted(49, 43) Source(24, 59) + SourceIndex(0) +7 >Emitted(49, 48) Source(24, 50) + SourceIndex(0) +8 >Emitted(49, 67) Source(24, 59) + SourceIndex(0) +9 >Emitted(49, 75) Source(24, 89) + SourceIndex(0) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -1743,15 +1743,15 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(50, 5) Source(24, 88) + SourceIndex(0) +2 >Emitted(50, 6) Source(24, 89) + SourceIndex(0) +3 >Emitted(50, 8) Source(24, 40) + SourceIndex(0) +4 >Emitted(50, 17) Source(24, 49) + SourceIndex(0) +5 >Emitted(50, 20) Source(24, 40) + SourceIndex(0) +6 >Emitted(50, 37) Source(24, 49) + SourceIndex(0) +7 >Emitted(50, 42) Source(24, 40) + SourceIndex(0) +8 >Emitted(50, 59) Source(24, 49) + SourceIndex(0) +9 >Emitted(50, 67) Source(24, 89) + SourceIndex(0) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -1762,20 +1762,20 @@ sourceFile:../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(51, 5) Source(25, 37) + SourceIndex(0) +2 >Emitted(51, 23) Source(25, 47) + SourceIndex(0) +3 >Emitted(51, 26) Source(25, 50) + SourceIndex(0) +4 >Emitted(51, 39) Source(25, 63) + SourceIndex(0) +5 >Emitted(51, 40) Source(25, 64) + SourceIndex(0) +6 >Emitted(51, 41) Source(25, 65) + SourceIndex(0) +7 >Emitted(51, 42) Source(25, 66) + SourceIndex(0) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -1784,17 +1784,17 @@ sourceFile:../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(52, 5) Source(27, 36) + SourceIndex(0) +2 >Emitted(52, 26) Source(27, 49) + SourceIndex(0) +3 >Emitted(52, 29) Source(27, 52) + SourceIndex(0) +4 >Emitted(52, 31) Source(27, 54) + SourceIndex(0) +5 >Emitted(52, 32) Source(27, 55) + SourceIndex(0) --- >>> var internalEnum; 1 >^^^^ @@ -1802,12 +1802,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(53, 5) Source(28, 23) + SourceIndex(0) +2 >Emitted(53, 9) Source(28, 35) + SourceIndex(0) +3 >Emitted(53, 21) Source(28, 59) + SourceIndex(0) --- >>> (function (internalEnum) { 1->^^^^ @@ -1817,9 +1817,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(54, 5) Source(28, 23) + SourceIndex(0) +2 >Emitted(54, 16) Source(28, 35) + SourceIndex(0) +3 >Emitted(54, 28) Source(28, 47) + SourceIndex(0) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -1829,9 +1829,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(55, 9) Source(28, 50) + SourceIndex(0) +2 >Emitted(55, 50) Source(28, 51) + SourceIndex(0) +3 >Emitted(55, 51) Source(28, 51) + SourceIndex(0) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -1841,9 +1841,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(56, 9) Source(28, 53) + SourceIndex(0) +2 >Emitted(56, 50) Source(28, 54) + SourceIndex(0) +3 >Emitted(56, 51) Source(28, 54) + SourceIndex(0) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -1853,9 +1853,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(57, 9) Source(28, 56) + SourceIndex(0) +2 >Emitted(57, 50) Source(28, 57) + SourceIndex(0) +3 >Emitted(57, 51) Source(28, 57) + SourceIndex(0) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -1876,15 +1876,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(58, 5) Source(28, 58) + SourceIndex(0) +2 >Emitted(58, 6) Source(28, 59) + SourceIndex(0) +3 >Emitted(58, 8) Source(28, 35) + SourceIndex(0) +4 >Emitted(58, 20) Source(28, 47) + SourceIndex(0) +5 >Emitted(58, 23) Source(28, 35) + SourceIndex(0) +6 >Emitted(58, 43) Source(28, 47) + SourceIndex(0) +7 >Emitted(58, 48) Source(28, 35) + SourceIndex(0) +8 >Emitted(58, 68) Source(28, 47) + SourceIndex(0) +9 >Emitted(58, 76) Source(28, 59) + SourceIndex(0) --- >>>})(normalN || (normalN = {})); 1 > @@ -1896,42 +1896,42 @@ sourceFile:../second/second_part1.ts 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*/ 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, 5) + SourceIndex(0) +2 >Emitted(59, 2) Source(29, 6) + SourceIndex(0) +3 >Emitted(59, 4) Source(20, 15) + SourceIndex(0) +4 >Emitted(59, 11) Source(20, 22) + SourceIndex(0) +5 >Emitted(59, 16) Source(20, 15) + SourceIndex(0) +6 >Emitted(59, 23) Source(20, 22) + SourceIndex(0) +7 >Emitted(59, 31) Source(29, 6) + SourceIndex(0) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(60, 1) Source(30, 15) + SourceIndex(0) + > /*@internal*/ +1->Emitted(60, 1) Source(30, 19) + SourceIndex(0) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(61, 5) Source(30, 15) + SourceIndex(0) +1->Emitted(61, 5) Source(30, 19) + SourceIndex(0) --- >>> } 1->^^^^ @@ -1939,16 +1939,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(62, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 33) + SourceIndex(0) +1->Emitted(62, 5) Source(30, 36) + SourceIndex(0) +2 >Emitted(62, 6) Source(30, 37) + 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->Emitted(63, 5) Source(30, 36) + SourceIndex(0) +2 >Emitted(63, 21) Source(30, 37) + SourceIndex(0) --- >>>}()); 1 > @@ -1960,10 +1960,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(64, 1) Source(30, 36) + SourceIndex(0) +2 >Emitted(64, 2) Source(30, 37) + SourceIndex(0) +3 >Emitted(64, 2) Source(30, 19) + SourceIndex(0) +4 >Emitted(64, 6) Source(30, 37) + SourceIndex(0) --- >>>function internalfoo() { } 1-> @@ -1972,16 +1972,16 @@ sourceFile:../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(65, 1) Source(31, 19) + SourceIndex(0) +2 >Emitted(65, 10) Source(31, 28) + SourceIndex(0) +3 >Emitted(65, 21) Source(31, 39) + SourceIndex(0) +4 >Emitted(65, 26) Source(31, 43) + SourceIndex(0) +5 >Emitted(65, 27) Source(31, 44) + SourceIndex(0) --- >>>var internalNamespace; 1 > @@ -1990,14 +1990,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(66, 1) Source(32, 19) + SourceIndex(0) +2 >Emitted(66, 5) Source(32, 29) + SourceIndex(0) +3 >Emitted(66, 22) Source(32, 46) + SourceIndex(0) +4 >Emitted(66, 23) Source(32, 76) + SourceIndex(0) --- >>>(function (internalNamespace) { 1-> @@ -2007,21 +2007,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(67, 1) Source(32, 19) + SourceIndex(0) +2 >Emitted(67, 12) Source(32, 29) + SourceIndex(0) +3 >Emitted(67, 29) Source(32, 46) + SourceIndex(0) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(68, 5) Source(32, 45) + SourceIndex(0) +1->Emitted(68, 5) Source(32, 49) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(69, 9) Source(32, 45) + SourceIndex(0) +1->Emitted(69, 9) Source(32, 49) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -2029,16 +2029,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(70, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 70) + SourceIndex(0) +1->Emitted(70, 9) Source(32, 73) + SourceIndex(0) +2 >Emitted(70, 10) Source(32, 74) + 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->Emitted(71, 9) Source(32, 73) + SourceIndex(0) +2 >Emitted(71, 25) Source(32, 74) + SourceIndex(0) --- >>> }()); 1 >^^^^ @@ -2050,10 +2050,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(72, 5) Source(32, 73) + SourceIndex(0) +2 >Emitted(72, 6) Source(32, 74) + SourceIndex(0) +3 >Emitted(72, 6) Source(32, 49) + SourceIndex(0) +4 >Emitted(72, 10) Source(32, 74) + SourceIndex(0) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -2065,10 +2065,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(73, 5) Source(32, 62) + SourceIndex(0) +2 >Emitted(73, 32) Source(32, 71) + SourceIndex(0) +3 >Emitted(73, 44) Source(32, 74) + SourceIndex(0) +4 >Emitted(73, 45) Source(32, 74) + SourceIndex(0) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -2085,13 +2085,13 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(74, 1) Source(32, 75) + SourceIndex(0) +2 >Emitted(74, 2) Source(32, 76) + SourceIndex(0) +3 >Emitted(74, 4) Source(32, 29) + SourceIndex(0) +4 >Emitted(74, 21) Source(32, 46) + SourceIndex(0) +5 >Emitted(74, 26) Source(32, 29) + SourceIndex(0) +6 >Emitted(74, 43) Source(32, 46) + SourceIndex(0) +7 >Emitted(74, 51) Source(32, 76) + SourceIndex(0) --- >>>var internalOther; 1 > @@ -2100,14 +2100,14 @@ sourceFile:../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(75, 1) Source(33, 19) + SourceIndex(0) +2 >Emitted(75, 5) Source(33, 29) + SourceIndex(0) +3 >Emitted(75, 18) Source(33, 42) + SourceIndex(0) +4 >Emitted(75, 19) Source(33, 82) + SourceIndex(0) --- >>>(function (internalOther) { 1-> @@ -2116,9 +2116,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(76, 1) Source(33, 19) + SourceIndex(0) +2 >Emitted(76, 12) Source(33, 29) + SourceIndex(0) +3 >Emitted(76, 25) Source(33, 42) + SourceIndex(0) --- >>> var something; 1 >^^^^ @@ -2130,10 +2130,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(77, 5) Source(33, 43) + SourceIndex(0) +2 >Emitted(77, 9) Source(33, 43) + SourceIndex(0) +3 >Emitted(77, 18) Source(33, 52) + SourceIndex(0) +4 >Emitted(77, 19) Source(33, 82) + SourceIndex(0) --- >>> (function (something) { 1->^^^^ @@ -2143,21 +2143,21 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(78, 5) Source(33, 43) + SourceIndex(0) +2 >Emitted(78, 16) Source(33, 43) + SourceIndex(0) +3 >Emitted(78, 25) Source(33, 52) + SourceIndex(0) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(79, 9) Source(33, 51) + SourceIndex(0) +1->Emitted(79, 9) Source(33, 55) + SourceIndex(0) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(80, 13) Source(33, 51) + SourceIndex(0) +1->Emitted(80, 13) Source(33, 55) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -2165,16 +2165,16 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(81, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 76) + SourceIndex(0) +1->Emitted(81, 13) Source(33, 79) + SourceIndex(0) +2 >Emitted(81, 14) Source(33, 80) + 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->Emitted(82, 13) Source(33, 79) + SourceIndex(0) +2 >Emitted(82, 29) Source(33, 80) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -2186,10 +2186,10 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(83, 9) Source(33, 79) + SourceIndex(0) +2 >Emitted(83, 10) Source(33, 80) + SourceIndex(0) +3 >Emitted(83, 10) Source(33, 55) + SourceIndex(0) +4 >Emitted(83, 14) Source(33, 80) + SourceIndex(0) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -2201,10 +2201,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(84, 9) Source(33, 68) + SourceIndex(0) +2 >Emitted(84, 28) Source(33, 77) + SourceIndex(0) +3 >Emitted(84, 40) Source(33, 80) + SourceIndex(0) +4 >Emitted(84, 41) Source(33, 80) + SourceIndex(0) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -2225,15 +2225,15 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(85, 5) Source(33, 81) + SourceIndex(0) +2 >Emitted(85, 6) Source(33, 82) + SourceIndex(0) +3 >Emitted(85, 8) Source(33, 43) + SourceIndex(0) +4 >Emitted(85, 17) Source(33, 52) + SourceIndex(0) +5 >Emitted(85, 20) Source(33, 43) + SourceIndex(0) +6 >Emitted(85, 43) Source(33, 52) + SourceIndex(0) +7 >Emitted(85, 48) Source(33, 43) + SourceIndex(0) +8 >Emitted(85, 71) Source(33, 52) + SourceIndex(0) +9 >Emitted(85, 79) Source(33, 82) + SourceIndex(0) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -2251,13 +2251,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(86, 1) Source(33, 81) + SourceIndex(0) +2 >Emitted(86, 2) Source(33, 82) + SourceIndex(0) +3 >Emitted(86, 4) Source(33, 29) + SourceIndex(0) +4 >Emitted(86, 17) Source(33, 42) + SourceIndex(0) +5 >Emitted(86, 22) Source(33, 29) + SourceIndex(0) +6 >Emitted(86, 35) Source(33, 42) + SourceIndex(0) +7 >Emitted(86, 43) Source(33, 82) + SourceIndex(0) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -2269,7 +2269,7 @@ sourceFile:../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -2277,14 +2277,14 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(87, 1) Source(34, 19) + SourceIndex(0) +2 >Emitted(87, 5) Source(34, 26) + SourceIndex(0) +3 >Emitted(87, 19) Source(34, 40) + SourceIndex(0) +4 >Emitted(87, 22) Source(34, 43) + SourceIndex(0) +5 >Emitted(87, 39) Source(34, 60) + SourceIndex(0) +6 >Emitted(87, 40) Source(34, 61) + SourceIndex(0) +7 >Emitted(87, 49) Source(34, 70) + SourceIndex(0) +8 >Emitted(87, 50) Source(34, 71) + SourceIndex(0) --- >>>var internalConst = 10; 1 > @@ -2294,19 +2294,19 @@ sourceFile:../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(88, 1) Source(36, 19) + SourceIndex(0) +2 >Emitted(88, 5) Source(36, 25) + SourceIndex(0) +3 >Emitted(88, 18) Source(36, 38) + SourceIndex(0) +4 >Emitted(88, 21) Source(36, 41) + SourceIndex(0) +5 >Emitted(88, 23) Source(36, 43) + SourceIndex(0) +6 >Emitted(88, 24) Source(36, 44) + SourceIndex(0) --- >>>var internalEnum; 1 > @@ -2314,12 +2314,12 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(89, 1) Source(37, 19) + SourceIndex(0) +2 >Emitted(89, 5) Source(37, 24) + SourceIndex(0) +3 >Emitted(89, 17) Source(37, 48) + SourceIndex(0) --- >>>(function (internalEnum) { 1-> @@ -2329,9 +2329,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(90, 1) Source(37, 19) + SourceIndex(0) +2 >Emitted(90, 12) Source(37, 24) + SourceIndex(0) +3 >Emitted(90, 24) Source(37, 36) + SourceIndex(0) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -2341,9 +2341,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(91, 5) Source(37, 39) + SourceIndex(0) +2 >Emitted(91, 46) Source(37, 40) + SourceIndex(0) +3 >Emitted(91, 47) Source(37, 40) + SourceIndex(0) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -2353,9 +2353,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(92, 5) Source(37, 42) + SourceIndex(0) +2 >Emitted(92, 46) Source(37, 43) + SourceIndex(0) +3 >Emitted(92, 47) Source(37, 43) + SourceIndex(0) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -2364,9 +2364,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(93, 5) Source(37, 45) + SourceIndex(0) +2 >Emitted(93, 46) Source(37, 46) + SourceIndex(0) +3 >Emitted(93, 47) Source(37, 46) + SourceIndex(0) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -2383,13 +2383,13 @@ sourceFile:../second/second_part1.ts 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) +1 >Emitted(94, 1) Source(37, 47) + SourceIndex(0) +2 >Emitted(94, 2) Source(37, 48) + SourceIndex(0) +3 >Emitted(94, 4) Source(37, 24) + SourceIndex(0) +4 >Emitted(94, 16) Source(37, 36) + SourceIndex(0) +5 >Emitted(94, 21) Source(37, 24) + SourceIndex(0) +6 >Emitted(94, 33) Source(37, 36) + SourceIndex(0) +7 >Emitted(94, 41) Source(37, 48) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -3131,7 +3131,7 @@ 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"} +{"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;AAEG,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BL,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -3286,24 +3286,24 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(10, 1) Source(13, 5) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 11) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 18) + 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(11, 2) Source(19, 6) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3311,29 +3311,29 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(12, 1) Source(20, 5) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 15) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 22) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 23) + 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) + > /*@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, 6) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3510,7 +3510,7 @@ 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"} +{"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;AAEG;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;ACpC/C;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] =================================================================== @@ -3798,15 +3798,15 @@ sourceFile:../../../second/second_part1.ts 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) + > +1->Emitted(14, 1) Source(13, 5) + SourceIndex(3) --- >>> function normalC() { 1->^^^^ 2 > ^^-> 1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(15, 5) Source(14, 23) + SourceIndex(3) --- >>> } 1->^^^^ @@ -3814,8 +3814,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { 2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +1->Emitted(16, 5) Source(14, 39) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 40) + SourceIndex(3) --- >>> normalC.prototype.method = function () { }; 1->^^^^ @@ -3825,29 +3825,29 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^^^^^^-> 1-> - > /*@internal*/ prop: string; - > /*@internal*/ + > /*@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) +1->Emitted(17, 5) Source(16, 23) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 29) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 23) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 34) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 35) + SourceIndex(3) --- >>> Object.defineProperty(normalC.prototype, "c", { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> - > /*@internal*/ + > /*@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) +1->Emitted(18, 5) Source(17, 23) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 27) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 28) + SourceIndex(3) --- >>> get: function () { return 10; }, 1 >^^^^^^^^^^^^^ @@ -3864,13 +3864,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(19, 14) Source(17, 23) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 33) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 40) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 42) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 43) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 44) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 45) + SourceIndex(3) --- >>> set: function (val) { }, 1 >^^^^^^^^^^^^^ @@ -3879,16 +3879,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^ 5 > ^ 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(20, 14) Source(18, 23) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 29) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 40) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 44) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 45) + SourceIndex(3) --- >>> enumerable: false, >>> configurable: true @@ -3896,17 +3896,17 @@ sourceFile:../../../second/second_part1.ts 1 >^^^^^^^ 2 > ^^^^^^^^^^^^^-> 1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +1 >Emitted(23, 8) Source(17, 45) + SourceIndex(3) --- >>> return normalC; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> - > /*@internal*/ set c(val: number) { } - > + > /*@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->Emitted(24, 5) Source(19, 5) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 6) + SourceIndex(3) --- >>>}()); 1 > @@ -3918,16 +3918,16 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 5) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 6) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 5) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 6) + SourceIndex(3) --- >>>var normalN; 1-> @@ -3936,23 +3936,23 @@ sourceFile:../../../second/second_part1.ts 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) + > /*@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, 5) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 15) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 22) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 6) + SourceIndex(3) --- >>>(function (normalN) { 1-> @@ -3962,22 +3962,22 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(27, 1) Source(20, 5) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 15) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 22) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) + > /*@internal*/ +1->Emitted(28, 5) Source(21, 23) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +1->Emitted(29, 9) Source(21, 23) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -3985,16 +3985,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +1->Emitted(30, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 41) + 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->Emitted(31, 9) Source(21, 40) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 41) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4006,10 +4006,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(32, 5) Source(21, 40) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 41) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 23) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 41) + SourceIndex(3) --- >>> normalN.C = C; 1->^^^^ @@ -4021,10 +4021,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 41) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 41) + SourceIndex(3) --- >>> function foo() { } 1->^^^^ @@ -4034,16 +4034,16 @@ sourceFile:../../../second/second_part1.ts 5 > ^ 6 > ^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(34, 5) Source(22, 23) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 39) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 42) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 46) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 47) + SourceIndex(3) --- >>> normalN.foo = foo; 1->^^^^ @@ -4055,10 +4055,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(35, 5) Source(22, 39) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 42) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 47) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 47) + SourceIndex(3) --- >>> var someNamespace; 1->^^^^ @@ -4067,14 +4067,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1-> - > /*@internal*/ + > /*@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) +1->Emitted(36, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 40) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 53) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 75) + SourceIndex(3) --- >>> (function (someNamespace) { 1->^^^^ @@ -4084,21 +4084,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(37, 5) Source(23, 23) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 40) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 53) + SourceIndex(3) --- >>> var C = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +1->Emitted(38, 9) Source(23, 56) + SourceIndex(3) --- >>> function C() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +1->Emitted(39, 13) Source(23, 56) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4106,16 +4106,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^-> 1->export class C { 2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +1->Emitted(40, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 73) + 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->Emitted(41, 13) Source(23, 72) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 73) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4127,10 +4127,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(42, 9) Source(23, 72) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 73) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 56) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 73) + SourceIndex(3) --- >>> someNamespace.C = C; 1->^^^^^^^^ @@ -4142,10 +4142,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 73) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 73) + SourceIndex(3) --- >>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); 1->^^^^ @@ -4166,15 +4166,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(44, 5) Source(23, 74) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 75) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 40) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 53) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 40) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 53) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 40) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 53) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 75) + SourceIndex(3) --- >>> var someOther; 1 >^^^^ @@ -4183,14 +4183,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(45, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 40) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 49) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 89) + SourceIndex(3) --- >>> (function (someOther) { 1->^^^^ @@ -4199,9 +4199,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(46, 5) Source(24, 23) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 40) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 49) + SourceIndex(3) --- >>> var something; 1 >^^^^^^^^ @@ -4213,10 +4213,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(47, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 50) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 59) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 89) + SourceIndex(3) --- >>> (function (something) { 1->^^^^^^^^ @@ -4226,21 +4226,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(48, 9) Source(24, 50) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 50) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 59) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +1->Emitted(49, 13) Source(24, 62) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +1->Emitted(50, 17) Source(24, 62) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -4248,16 +4248,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +1->Emitted(51, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 87) + 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->Emitted(52, 17) Source(24, 86) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 87) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -4269,10 +4269,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(53, 13) Source(24, 86) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 87) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 62) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 87) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^^^^^ @@ -4284,10 +4284,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(54, 13) Source(24, 75) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 87) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 87) + SourceIndex(3) --- >>> })(something = someOther.something || (someOther.something = {})); 1->^^^^^^^^ @@ -4308,15 +4308,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(55, 9) Source(24, 88) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 89) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 50) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 59) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 50) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 59) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 50) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 59) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 89) + SourceIndex(3) --- >>> })(someOther = normalN.someOther || (normalN.someOther = {})); 1 >^^^^ @@ -4337,15 +4337,15 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(56, 5) Source(24, 88) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 89) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 40) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 49) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 40) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 49) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 40) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 49) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 89) + SourceIndex(3) --- >>> normalN.someImport = someNamespace.C; 1 >^^^^ @@ -4356,20 +4356,20 @@ sourceFile:../../../second/second_part1.ts 6 > ^ 7 > ^ 1 > - > /*@internal*/ export import + > /*@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) +1 >Emitted(57, 5) Source(25, 37) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 47) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 50) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 63) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 64) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 65) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 66) + SourceIndex(3) --- >>> normalN.internalConst = 10; 1 >^^^^ @@ -4378,17 +4378,17 @@ sourceFile:../../../second/second_part1.ts 4 > ^^ 5 > ^ 1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const + > /*@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) +1 >Emitted(58, 5) Source(27, 36) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 49) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 52) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 54) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 55) + SourceIndex(3) --- >>> var internalEnum; 1 >^^^^ @@ -4396,12 +4396,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - > /*@internal*/ + > /*@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) +1 >Emitted(59, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 35) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 59) + SourceIndex(3) --- >>> (function (internalEnum) { 1->^^^^ @@ -4411,9 +4411,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(60, 5) Source(28, 23) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 35) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 47) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^^^^^ @@ -4423,9 +4423,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(61, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 51) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^^^^^ @@ -4435,9 +4435,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(62, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 54) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^^^^^ @@ -4447,9 +4447,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(63, 9) Source(28, 56) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 57) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 57) + SourceIndex(3) --- >>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); 1->^^^^ @@ -4470,15 +4470,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(64, 5) Source(28, 58) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 59) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 35) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 47) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 35) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 47) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 35) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 47) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 59) + SourceIndex(3) --- >>>})(normalN || (normalN = {})); 1 > @@ -4490,42 +4490,42 @@ sourceFile:../../../second/second_part1.ts 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*/ 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, 5) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 6) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 15) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 22) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 15) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 22) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 6) + SourceIndex(3) --- >>>var internalC = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) + > /*@internal*/ +1->Emitted(66, 1) Source(30, 19) + SourceIndex(3) --- >>> function internalC() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +1->Emitted(67, 5) Source(30, 19) + SourceIndex(3) --- >>> } 1->^^^^ @@ -4533,16 +4533,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->class internalC { 2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +1->Emitted(68, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 37) + 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->Emitted(69, 5) Source(30, 36) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 37) + SourceIndex(3) --- >>>}()); 1 > @@ -4554,10 +4554,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(70, 1) Source(30, 36) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 37) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 19) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 37) + SourceIndex(3) --- >>>function internalfoo() { } 1-> @@ -4566,16 +4566,16 @@ sourceFile:../../../second/second_part1.ts 4 > ^^^^^ 5 > ^ 1-> - >/*@internal*/ + > /*@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) +1->Emitted(71, 1) Source(31, 19) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 28) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 39) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 43) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 44) + SourceIndex(3) --- >>>var internalNamespace; 1 > @@ -4584,14 +4584,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(72, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 29) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 46) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 76) + SourceIndex(3) --- >>>(function (internalNamespace) { 1-> @@ -4601,21 +4601,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(73, 1) Source(32, 19) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 29) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 46) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +1->Emitted(74, 5) Source(32, 49) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +1->Emitted(75, 9) Source(32, 49) + SourceIndex(3) --- >>> } 1->^^^^^^^^ @@ -4623,16 +4623,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +1->Emitted(76, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 74) + 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->Emitted(77, 9) Source(32, 73) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 74) + SourceIndex(3) --- >>> }()); 1 >^^^^ @@ -4644,10 +4644,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(78, 5) Source(32, 73) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 74) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 49) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 74) + SourceIndex(3) --- >>> internalNamespace.someClass = someClass; 1->^^^^ @@ -4659,10 +4659,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(79, 5) Source(32, 62) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 74) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 74) + SourceIndex(3) --- >>>})(internalNamespace || (internalNamespace = {})); 1-> @@ -4679,13 +4679,13 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(80, 1) Source(32, 75) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 76) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 29) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 46) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 29) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 46) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 76) + SourceIndex(3) --- >>>var internalOther; 1 > @@ -4694,14 +4694,14 @@ sourceFile:../../../second/second_part1.ts 4 > ^ 5 > ^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(81, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 29) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 42) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 82) + SourceIndex(3) --- >>>(function (internalOther) { 1-> @@ -4710,9 +4710,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(82, 1) Source(33, 19) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 29) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 42) + SourceIndex(3) --- >>> var something; 1 >^^^^ @@ -4724,10 +4724,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(83, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 43) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 52) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 82) + SourceIndex(3) --- >>> (function (something) { 1->^^^^ @@ -4737,21 +4737,21 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(84, 5) Source(33, 43) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 43) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 52) + SourceIndex(3) --- >>> var someClass = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +1->Emitted(85, 9) Source(33, 55) + SourceIndex(3) --- >>> function someClass() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +1->Emitted(86, 13) Source(33, 55) + SourceIndex(3) --- >>> } 1->^^^^^^^^^^^^ @@ -4759,16 +4759,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^-> 1->export class someClass { 2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +1->Emitted(87, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 80) + 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->Emitted(88, 13) Source(33, 79) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 80) + SourceIndex(3) --- >>> }()); 1 >^^^^^^^^ @@ -4780,10 +4780,10 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(89, 9) Source(33, 79) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 80) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 55) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 80) + SourceIndex(3) --- >>> something.someClass = someClass; 1->^^^^^^^^ @@ -4795,10 +4795,10 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(90, 9) Source(33, 68) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 80) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 80) + SourceIndex(3) --- >>> })(something = internalOther.something || (internalOther.something = {})); 1->^^^^ @@ -4819,15 +4819,15 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(91, 5) Source(33, 81) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 82) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 43) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 52) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 43) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 52) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 43) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 52) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 82) + SourceIndex(3) --- >>>})(internalOther || (internalOther = {})); 1 > @@ -4845,13 +4845,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(92, 1) Source(33, 81) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 82) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 29) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 42) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 29) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 42) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 82) + SourceIndex(3) --- >>>var internalImport = internalNamespace.someClass; 1-> @@ -4863,7 +4863,7 @@ sourceFile:../../../second/second_part1.ts 7 > ^^^^^^^^^ 8 > ^ 1-> - >/*@internal*/ + > /*@internal*/ 2 >import 3 > internalImport 4 > = @@ -4871,14 +4871,14 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(93, 1) Source(34, 19) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 26) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 40) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 43) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 60) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 61) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 70) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 71) + SourceIndex(3) --- >>>var internalConst = 10; 1 > @@ -4888,19 +4888,19 @@ sourceFile:../../../second/second_part1.ts 5 > ^^ 6 > ^ 1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ + > /*@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) +1 >Emitted(94, 1) Source(36, 19) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 25) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 38) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 41) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 43) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 44) + SourceIndex(3) --- >>>var internalEnum; 1 > @@ -4908,12 +4908,12 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^ 4 > ^^^^^^^^^^^-> 1 > - >/*@internal*/ + > /*@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) +1 >Emitted(95, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 24) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 48) + SourceIndex(3) --- >>>(function (internalEnum) { 1-> @@ -4923,9 +4923,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(96, 1) Source(37, 19) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 24) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 36) + SourceIndex(3) --- >>> internalEnum[internalEnum["a"] = 0] = "a"; 1->^^^^ @@ -4935,9 +4935,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(97, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 40) + SourceIndex(3) --- >>> internalEnum[internalEnum["b"] = 1] = "b"; 1->^^^^ @@ -4947,9 +4947,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(98, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 43) + SourceIndex(3) --- >>> internalEnum[internalEnum["c"] = 2] = "c"; 1->^^^^ @@ -4958,9 +4958,9 @@ sourceFile:../../../second/second_part1.ts 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) +1->Emitted(99, 5) Source(37, 45) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 46) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 46) + SourceIndex(3) --- >>>})(internalEnum || (internalEnum = {})); 1 > @@ -4977,13 +4977,13 @@ sourceFile:../../../second/second_part1.ts 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) +1 >Emitted(100, 1) Source(37, 47) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 48) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 24) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 36) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 24) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 36) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 48) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js diff --git a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js index cc54ce3b6d9fb..13d3087e27fad 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js @@ -70,7 +70,6 @@ Input:: {"version":"1.65.1","types":"types/somefile.define.d.ts"} //// [/user/username/projects/myproject/node_modules/@myapp/ts-types/types/somefile.define.d.ts] - declare namespace myapp { function component(str: string): number; }